diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-03-16 17:32:02 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-03-16 17:32:05 +0100 |
| commit | 3d0dfdbf9f26dcda6bc8a397752bdcc59ee474f4 (patch) | |
| tree | 08fae04473f6760c6ac9cd84a61abf24d0bd6fed /qa/rpc-tests/test_framework/util.py | |
| parent | Merge #7621: Fixes ZMQ startup with bad arguments. (diff) | |
| parent | [qa] mininode: Add and use CONSTs (diff) | |
| download | discoin-3d0dfdbf9f26dcda6bc8a397752bdcc59ee474f4.tar.xz discoin-3d0dfdbf9f26dcda6bc8a397752bdcc59ee474f4.zip | |
Merge #7684: [qa] Extend tests
fad8cfb [qa] mininode: Add and use CONSTs (MarcoFalke)
fa8cd46 [qa] Move create_tx() to util.py (MarcoFalke)
fad7dc8 [qa] wallet: speed up tests (MarcoFalke)
fa3a81a [tests] Extend util_ParseMoney test case (MarcoFalke)
Diffstat (limited to 'qa/rpc-tests/test_framework/util.py')
| -rw-r--r-- | qa/rpc-tests/test_framework/util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py index 8c472a518..ce3102988 100644 --- a/qa/rpc-tests/test_framework/util.py +++ b/qa/rpc-tests/test_framework/util.py @@ -493,6 +493,14 @@ def gen_return_txouts(): txouts = txouts + script_pubkey return txouts +def create_tx(node, coinbase, to_address, amount): + inputs = [{ "txid" : coinbase, "vout" : 0}] + outputs = { to_address : amount } + rawtx = node.createrawtransaction(inputs, outputs) + signresult = node.signrawtransaction(rawtx) + assert_equal(signresult["complete"], True) + return signresult["hex"] + def create_lots_of_big_transactions(node, txouts, utxos, fee): addr = node.getnewaddress() txids = [] |