File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -421,29 +421,7 @@ func (keystore *keystore) signBTCTransaction(btcProposedTx *btc.ProposedTransact
421
421
if err != nil {
422
422
return err
423
423
}
424
-
425
- prevTxInputs := make ([]* messages.BTCPrevTxInputRequest , len (prevTx .TxIn ))
426
- for prevInputIndex , prevTxIn := range prevTx .TxIn {
427
- prevTxInputs [prevInputIndex ] = & messages.BTCPrevTxInputRequest {
428
- PrevOutHash : prevTxIn .PreviousOutPoint .Hash [:],
429
- PrevOutIndex : prevTxIn .PreviousOutPoint .Index ,
430
- SignatureScript : prevTxIn .SignatureScript ,
431
- Sequence : prevTxIn .Sequence ,
432
- }
433
- }
434
- prevTxOuputs := make ([]* messages.BTCPrevTxOutputRequest , len (prevTx .TxOut ))
435
- for prevOutputIndex , prevTxOut := range prevTx .TxOut {
436
- prevTxOuputs [prevOutputIndex ] = & messages.BTCPrevTxOutputRequest {
437
- Value : uint64 (prevTxOut .Value ),
438
- PubkeyScript : prevTxOut .PkScript ,
439
- }
440
- }
441
- inputs [inputIndex ].PrevTx = & firmware.BTCPrevTx {
442
- Version : uint32 (prevTx .Version ),
443
- Inputs : prevTxInputs ,
444
- Outputs : prevTxOuputs ,
445
- Locktime : prevTx .LockTime ,
446
- }
424
+ inputs [inputIndex ].PrevTx = firmware .NewBTCPrevTxFromBtcd (prevTx )
447
425
}
448
426
}
449
427
You can’t perform that action at this time.
0 commit comments