Skip to content

Commit

Permalink
Fix the guard clause for sweep that incorrectly required minimum 500 …
Browse files Browse the repository at this point in the history
…outputs
  • Loading branch information
sondreb committed Dec 29, 2020
1 parent 2c5afb7 commit ff47e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/Blockcore.Features.Wallet/WalletManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ public IEnumerable<string> Sweep(IEnumerable<string> privateKeys, string destAdd
// Not many wallets will have this many inputs, but we have to ensure that the resulting transactions are
// small enough to be broadcast without standardness problems.
// Since there is only 1 output the size of the inputs is the only consideration.
if (total == 0 || currentOutputCount < 500)
if (total == 0 || currentOutputCount > 500)
continue;

BitcoinAddress destination = BitcoinAddress.Create(destAddress, this.network);
Expand Down

0 comments on commit ff47e3a

Please sign in to comment.