Skip to content

Commit ff47e3a

Browse files
committed
Fix the guard clause for sweep that incorrectly required minimum 500 outputs
1 parent 2c5afb7 commit ff47e3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Features/Blockcore.Features.Wallet/WalletManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ public IEnumerable<string> Sweep(IEnumerable<string> privateKeys, string destAdd
21512151
// Not many wallets will have this many inputs, but we have to ensure that the resulting transactions are
21522152
// small enough to be broadcast without standardness problems.
21532153
// Since there is only 1 output the size of the inputs is the only consideration.
2154-
if (total == 0 || currentOutputCount < 500)
2154+
if (total == 0 || currentOutputCount > 500)
21552155
continue;
21562156

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

0 commit comments

Comments
 (0)