Skip to content

Commit edea835

Browse files
authored
Merge pull request #47 from GalaxyPay/dev
fix: isIncentiveReady
2 parents b7c3ea8 + c4e1adf commit edea835

File tree

11 files changed

+21
-15
lines changed

11 files changed

+21
-15
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,5 +266,5 @@ jobs:
266266
uses: ncipollo/release-action@v1
267267
with:
268268
allowUpdates: true
269-
tag: v3.1.0
269+
tag: v3.1.1
270270
artifacts: "Output/*"

FUNC.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "FUNC"
5-
#define MyAppVersion "3.1.0"
5+
#define MyAppVersion "3.1.1"
66
#define MyAppPublisher "Galaxy Pay, LLC"
77
#define MyAppPublisherURL "https://galaxy-pay.com"
88
#define MyPublishPath "publish"

create-package-deb.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rm -r Output
22

3-
PKG=Output/func_3.1.0_linux-$1
3+
PKG=Output/func_3.1.1_linux-$1
44

55
mkdir -p $PKG/lib/systemd/system
66
mkdir -p $PKG/opt/func

create-package-pkg.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pkgbuild --root publish \
55
--install-location /opt/func \
66
--scripts pkg/scripts \
77
--identifier func.app \
8-
Output/func_3.1.0_darwin-$1.pkg
8+
Output/func_3.1.1_darwin-$1.pkg

deb/amd64/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 3.1.0
2+
Version: 3.1.1
33
Section: base
44
Priority: optional
55
Architecture: amd64

deb/arm64/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 3.1.0
2+
Version: 3.1.1
33
Section: base
44
Priority: optional
55
Architecture: arm64

webui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "func-webui",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",

webui/src/components/Config.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
variant="outlined"
1818
density="comfortable"
1919
:items="[...Array(6).keys()]"
20-
hint="Must be 3 or greater for telemetry to work. For best performance, set to 0."
20+
hint="Must be 4 or greater for telemetry to work. For best performance, set to 0."
2121
persistent-hint
2222
class="pb-2"
2323
/>

webui/src/components/Node.vue

+9
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,15 @@ const algodClient = computed(() => {
327327
);
328328
});
329329
330+
watch(
331+
() => algodStatus.value,
332+
(val) => {
333+
if (!val?.["last-version"].includes("/925a464")) {
334+
store.isIncentiveReady = true;
335+
}
336+
}
337+
);
338+
330339
onBeforeMount(async () => {
331340
await getNodeStatus();
332341
});

webui/src/components/Participation.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const props = defineProps({
252252
const emit = defineEmits(["partDetails", "generatingKey"]);
253253
254254
const store = useAppStore();
255-
const { activeAccount, transactionSigner } = useWallet();
255+
const { activeAccount, activeNetwork, transactionSigner } = useWallet();
256256
257257
const loading = ref();
258258
const keys = ref<Participation[]>();
@@ -383,7 +383,8 @@ function isKeyActive(item: Participation) {
383383
}
384384
385385
function incentiveIneligible(addr: string) {
386-
if (!store.isIncentiveReady) return false;
386+
if (!store.isIncentiveReady || activeNetwork.value !== "mainnet")
387+
return false;
387388
const acctInfo = acctInfos.value.find((ai) => ai.address === addr);
388389
return (
389390
(acctInfo?.amount || 0) >= 3 * 10 ** 10 &&

webui/src/stores/app.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ export const useAppStore = defineStore("app", {
2020
stoppingReti: false,
2121
goalVersion: undefined as GoalVersion | undefined,
2222
showNetworks: localStorage.getItem("showNetworks") === "true",
23+
isIncentiveReady: false,
2324
}),
24-
getters: {
25-
isIncentiveReady(state) {
26-
return Number(state.goalVersion?.installed.split(".")[0]) >= 4;
27-
},
28-
},
2925
actions: {
3026
async setSnackbar(text: string, color = "info", timeout = 4000) {
3127
if (color == "error") timeout = 15000;

0 commit comments

Comments
 (0)