mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-24 03:15:50 +00:00
btc send exact value of output fix
This commit is contained in:
parent
2e7d55bda4
commit
6df782647e
1 changed files with 5 additions and 1 deletions
|
@ -2360,7 +2360,10 @@ class BitcoinWallet extends CoinServiceAPI
|
||||||
],
|
],
|
||||||
satoshiAmounts: [
|
satoshiAmounts: [
|
||||||
satoshiAmountToSend,
|
satoshiAmountToSend,
|
||||||
satoshisBeingUsed - satoshiAmountToSend - 1
|
// this can cause a problem where the output value is negative so commenting out for now
|
||||||
|
// satoshisBeingUsed - satoshiAmountToSend - 1
|
||||||
|
// and using dust limit instead
|
||||||
|
DUST_LIMIT,
|
||||||
], // dust limit is the minimum amount a change output should be
|
], // dust limit is the minimum amount a change output should be
|
||||||
))["vSize"] as int;
|
))["vSize"] as int;
|
||||||
|
|
||||||
|
@ -2825,6 +2828,7 @@ class BitcoinWallet extends CoinServiceAPI
|
||||||
|
|
||||||
// Add transaction output
|
// Add transaction output
|
||||||
for (var i = 0; i < recipients.length; i++) {
|
for (var i = 0; i < recipients.length; i++) {
|
||||||
|
print("OURPUT VALUW: ${satoshiAmounts[i]}");
|
||||||
txb.addOutput(recipients[i], satoshiAmounts[i]);
|
txb.addOutput(recipients[i], satoshiAmounts[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue