mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-22 15:19:11 +00:00
btc notification tx fix
This commit is contained in:
parent
95ff076d3d
commit
2e7d55bda4
1 changed files with 7 additions and 2 deletions
|
@ -588,6 +588,8 @@ mixin PaynymWalletInterface {
|
||||||
txb.addInput(
|
txb.addInput(
|
||||||
utxo.txid,
|
utxo.txid,
|
||||||
txPointIndex,
|
txPointIndex,
|
||||||
|
null,
|
||||||
|
utxoSigningData[utxo.txid]["output"] as Uint8List,
|
||||||
);
|
);
|
||||||
|
|
||||||
// todo: modify address once segwit support is in our bip47
|
// todo: modify address once segwit support is in our bip47
|
||||||
|
@ -606,15 +608,18 @@ mixin PaynymWalletInterface {
|
||||||
txb.sign(
|
txb.sign(
|
||||||
vin: 0,
|
vin: 0,
|
||||||
keyPair: myKeyPair,
|
keyPair: myKeyPair,
|
||||||
|
witnessValue: utxo.value,
|
||||||
|
witnessScript: utxoSigningData[utxo.txid]["redeemScript"] as Uint8List?,
|
||||||
);
|
);
|
||||||
|
|
||||||
// sign rest of possible inputs
|
// sign rest of possible inputs
|
||||||
for (var i = 1; i < utxosToUse.length - 1; i++) {
|
for (var i = 1; i < utxosToUse.length; i++) {
|
||||||
final txid = utxosToUse[i].txid;
|
final txid = utxosToUse[i].txid;
|
||||||
txb.sign(
|
txb.sign(
|
||||||
vin: i,
|
vin: i,
|
||||||
keyPair: utxoSigningData[txid]["keyPair"] as btc_dart.ECPair,
|
keyPair: utxoSigningData[txid]["keyPair"] as btc_dart.ECPair,
|
||||||
// witnessValue: utxosToUse[i].value,
|
witnessValue: utxosToUse[i].value,
|
||||||
|
witnessScript: utxoSigningData[utxo.txid]["redeemScript"] as Uint8List?,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue