Skip to content

Commit

Permalink
Merge pull request #47 from GalaxyPay/dev
Browse files Browse the repository at this point in the history
fix: isIncentiveReady
  • Loading branch information
acfunk authored Jan 14, 2025
2 parents b7c3ea8 + c4e1adf commit edea835
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,5 @@ jobs:
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: v3.1.0
tag: v3.1.1
artifacts: "Output/*"
2 changes: 1 addition & 1 deletion FUNC.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "FUNC"
#define MyAppVersion "3.1.0"
#define MyAppVersion "3.1.1"
#define MyAppPublisher "Galaxy Pay, LLC"
#define MyAppPublisherURL "https://galaxy-pay.com"
#define MyPublishPath "publish"
Expand Down
2 changes: 1 addition & 1 deletion create-package-deb.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -r Output

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

mkdir -p $PKG/lib/systemd/system
mkdir -p $PKG/opt/func
Expand Down
2 changes: 1 addition & 1 deletion create-package-pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pkgbuild --root publish \
--install-location /opt/func \
--scripts pkg/scripts \
--identifier func.app \
Output/func_3.1.0_darwin-$1.pkg
Output/func_3.1.1_darwin-$1.pkg
2 changes: 1 addition & 1 deletion deb/amd64/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: func
Version: 3.1.0
Version: 3.1.1
Section: base
Priority: optional
Architecture: amd64
Expand Down
2 changes: 1 addition & 1 deletion deb/arm64/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: func
Version: 3.1.0
Version: 3.1.1
Section: base
Priority: optional
Architecture: arm64
Expand Down
2 changes: 1 addition & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "func-webui",
"version": "3.1.0",
"version": "3.1.1",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
2 changes: 1 addition & 1 deletion webui/src/components/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
variant="outlined"
density="comfortable"
:items="[...Array(6).keys()]"
hint="Must be 3 or greater for telemetry to work. For best performance, set to 0."
hint="Must be 4 or greater for telemetry to work. For best performance, set to 0."
persistent-hint
class="pb-2"
/>
Expand Down
9 changes: 9 additions & 0 deletions webui/src/components/Node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,15 @@ const algodClient = computed(() => {
);
});
watch(
() => algodStatus.value,
(val) => {
if (!val?.["last-version"].includes("/925a464")) {
store.isIncentiveReady = true;
}
}
);
onBeforeMount(async () => {
await getNodeStatus();
});
Expand Down
5 changes: 3 additions & 2 deletions webui/src/components/Participation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const props = defineProps({
const emit = defineEmits(["partDetails", "generatingKey"]);
const store = useAppStore();
const { activeAccount, transactionSigner } = useWallet();
const { activeAccount, activeNetwork, transactionSigner } = useWallet();
const loading = ref();
const keys = ref<Participation[]>();
Expand Down Expand Up @@ -383,7 +383,8 @@ function isKeyActive(item: Participation) {
}
function incentiveIneligible(addr: string) {
if (!store.isIncentiveReady) return false;
if (!store.isIncentiveReady || activeNetwork.value !== "mainnet")
return false;
const acctInfo = acctInfos.value.find((ai) => ai.address === addr);
return (
(acctInfo?.amount || 0) >= 3 * 10 ** 10 &&
Expand Down
6 changes: 1 addition & 5 deletions webui/src/stores/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ export const useAppStore = defineStore("app", {
stoppingReti: false,
goalVersion: undefined as GoalVersion | undefined,
showNetworks: localStorage.getItem("showNetworks") === "true",
isIncentiveReady: false,
}),
getters: {
isIncentiveReady(state) {
return Number(state.goalVersion?.installed.split(".")[0]) >= 4;
},
},
actions: {
async setSnackbar(text: string, color = "info", timeout = 4000) {
if (color == "error") timeout = 15000;
Expand Down

0 comments on commit edea835

Please sign in to comment.