Skip to content

Commit

Permalink
Fix Masternode UTXO detection (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino authored Feb 25, 2024
1 parent 84eb64d commit 86f001f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,10 @@ export async function importMasternode() {
includeLocked: false,
});
for (const u of utxos) {
if (wallet.getPath(u.script) === path) {
if (
u.value === cChainParams.current.collateralInSats &&
wallet.getPath(u.script) === path
) {
masterUtxo = u;
}
}
Expand Down

0 comments on commit 86f001f

Please sign in to comment.