chainnfts/btcdnotify: update test to upstream API change.
rpctest.Harness.CoinbaseSpend now takes a list of outputs rather, than a map from address to output amount.
This commit is contained in:
parent
d09f858501
commit
f78283a438
@ -30,11 +30,15 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func getTestTxId(miner *rpctest.Harness) (*wire.ShaHash, error) {
|
func getTestTxId(miner *rpctest.Harness) (*wire.ShaHash, error) {
|
||||||
// First, parse the test priv key in order to obtain a key we'll use
|
script, err := txscript.PayToAddrScript(testAddr)
|
||||||
// for the confirmation notification test.
|
if err != nil {
|
||||||
outputMap := map[string]btcutil.Amount{testAddr.String(): 2e8}
|
return nil, err
|
||||||
return miner.CoinbaseSpend(outputMap)
|
}
|
||||||
|
|
||||||
|
outputs := []*wire.TxOut{&wire.TxOut{2e8, script}}
|
||||||
|
return miner.CoinbaseSpend(outputs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func testSingleConfirmationNotification(miner *rpctest.Harness,
|
func testSingleConfirmationNotification(miner *rpctest.Harness,
|
||||||
notifier chainntnfs.ChainNotifier, t *testing.T) {
|
notifier chainntnfs.ChainNotifier, t *testing.T) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user