integration/rpctest: update API usage due to segwit
This commit is contained in:
parent
fad0d1d56c
commit
1405670930
2 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ func CreateBlock(prevBlock *btcutil.Block, inclusionTxs []*btcutil.Tx,
|
||||||
if inclusionTxs != nil {
|
if inclusionTxs != nil {
|
||||||
blockTxns = append(blockTxns, inclusionTxs...)
|
blockTxns = append(blockTxns, inclusionTxs...)
|
||||||
}
|
}
|
||||||
merkles := blockchain.BuildMerkleTreeStore(blockTxns)
|
merkles := blockchain.BuildMerkleTreeStore(blockTxns, false)
|
||||||
var block wire.MsgBlock
|
var block wire.MsgBlock
|
||||||
block.Header = wire.BlockHeader{
|
block.Header = wire.BlockHeader{
|
||||||
Version: blockVersion,
|
Version: blockVersion,
|
||||||
|
|
|
@ -376,7 +376,7 @@ func (m *memWallet) fundTx(tx *wire.MsgTx, amt btcutil.Amount, feeRate btcutil.A
|
||||||
// Add the selected output to the transaction, updating the
|
// Add the selected output to the transaction, updating the
|
||||||
// current tx size while accounting for the size of the future
|
// current tx size while accounting for the size of the future
|
||||||
// sigScript.
|
// sigScript.
|
||||||
tx.AddTxIn(wire.NewTxIn(&outPoint, nil))
|
tx.AddTxIn(wire.NewTxIn(&outPoint, nil, nil))
|
||||||
txSize = tx.SerializeSize() + spendSize*len(tx.TxIn)
|
txSize = tx.SerializeSize() + spendSize*len(tx.TxIn)
|
||||||
|
|
||||||
// Calculate the fee required for the txn at this point
|
// Calculate the fee required for the txn at this point
|
||||||
|
|
Loading…
Reference in a new issue