diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-06-07 18:25:10 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-06-07 18:25:13 +0200 |
commit | 79004d4ae67164d980fdaab4de9d9d467cdb9b88 (patch) | |
tree | 7e02c296c5f64dd9ae69d8e07fd926848535b522 /qa/rpc-tests/rawtransactions.py | |
parent | 22e0b35676230961aeb848a4f5c6b007cb8a43c9 (diff) | |
parent | ae357d5ab940dea5e2640361ae17fd8722a93c9f (diff) |
Merge #7957: [RPC][Bitcoin-TX] Add support for sequence number
ae357d5 [Bitcoin-Tx] Add tests for sequence number support (Jonas Schnelli)
e59336f [bitcoin-tx] allow to set nSequence number over the in= command (Jonas Schnelli)
a946bb6 [RPC] createrawtransaction: add option to set the sequence number per input (Jonas Schnelli)
Diffstat (limited to 'qa/rpc-tests/rawtransactions.py')
-rwxr-xr-x | qa/rpc-tests/rawtransactions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/rpc-tests/rawtransactions.py b/qa/rpc-tests/rawtransactions.py index df02c1697f..aa403f058c 100755 --- a/qa/rpc-tests/rawtransactions.py +++ b/qa/rpc-tests/rawtransactions.py @@ -138,5 +138,11 @@ class RawTransactionsTest(BitcoinTestFramework): self.sync_all() assert_equal(self.nodes[0].getbalance(), bal+Decimal('50.00000000')+Decimal('2.19000000')) #block reward + tx + inputs = [ {'txid' : "1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000", 'vout' : 1, 'sequence' : 1000}] + outputs = { self.nodes[0].getnewaddress() : 1 } + rawtx = self.nodes[0].createrawtransaction(inputs, outputs) + decrawtx= self.nodes[0].decoderawtransaction(rawtx) + assert_equal(decrawtx['vin'][0]['sequence'], 1000) + if __name__ == '__main__': RawTransactionsTest().main() |