diff options
Diffstat (limited to 'tests/functional_tests/test_framework/daemon.py')
-rw-r--r-- | tests/functional_tests/test_framework/daemon.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional_tests/test_framework/daemon.py b/tests/functional_tests/test_framework/daemon.py index 0d0eda7dc..11d5f5845 100644 --- a/tests/functional_tests/test_framework/daemon.py +++ b/tests/functional_tests/test_framework/daemon.py @@ -47,6 +47,13 @@ class Daemon(object): } return self.rpc.send_json_rpc_request(getblocktemplate) + def send_raw_transaction(self, tx_as_hex, do_not_relay = False): + send_raw_transaction = { + 'tx_as_hex': tx_as_hex, + 'do_not_relay': do_not_relay, + } + return self.rpc.send_request("/send_raw_transaction", send_raw_transaction) + def submitblock(self, block): submitblock = { 'method': 'submitblock', |