Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Hackishly remove Elysium support.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Jan 2, 2024
1 parent b1fe309 commit 3b66154
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/renderer/components/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
</select>
</div>

<!--
<div class="checkbox-option" @click="enableElysium = !enableElysium">
<label>Enable Experimental Elysium Features (Requires Rescan)</label>
<input id="enable-elysium-checkbox" type="checkbox" :checked="enableElysium" />
</div>
-->

<div class="checkbox-option" @click="useTor = !useTor">
<label>Connect to other nodes via Tor</label>
Expand Down
7 changes: 4 additions & 3 deletions src/renderer/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ window.addEventListener('beforeunload', async () => await $daemon?.closeSockets(
store.commit('App/setColorTheme', settings.colorTheme);
}

if (settings.enableElysium) {
store.commit('App/setEnableElysium', settings.enableElysium);
}
// if (settings.enableElysium) {
// store.commit('App/setEnableElysium', settings.enableElysium);
// }
store.commit('App/setEnableElysium', false);

if (settings.selectedElysiumTokens) {
store.commit('Elysium/initSelectedTokens', settings.selectedElysiumTokens);
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/Elysium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const getters = {
txo.elysium.type != "Grant Property Tokens"
) continue;

r[p] = (r[p] || 0n) + (txo.elysium.amount || 0n);
r[p] = (r[p] || 0n) + (txo?.elysium.amount || 0n);
}
return r;
},
Expand Down
6 changes: 4 additions & 2 deletions src/store/modules/Transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function txosFromTx(tx: Transaction, mySparkOutputAmounts: Map<string, bigint>,
}

// This is for txouts of multi-recipient transactions that we've received funds from that go to other wallets.
if (!isFromMe && !txout.isToMe && !tx.elysium.isToMe) continue;
if (!isFromMe && !txout.isToMe && !tx.elysium?.isToMe) continue;

let privacyUse: PrivacyType;
let spendSize = undefined;
Expand Down Expand Up @@ -202,7 +202,9 @@ function selectUTXOs(privacy: PrivacyType, amount: bigint, feePerKb: bigint, sub
else if (privacy == 'lelantus')
constantSize = 1234n;
else if (privacy == 'spark')
constantSize = 1281n;
constantSize = 1281n;
else if (privacy == 'exchange')
constantSize = 11n;

if (coinControl) {
let totalSize = 0n;
Expand Down

0 comments on commit 3b66154

Please sign in to comment.