aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/test_framework/daemon.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-19 16:21:06 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-21 19:28:44 +0000
commita3144bd7c8dd428c523fcd0c4db521dc7f4cf3c2 (patch)
tree5fc7f114dda2c24723078fe991ac3a8b3b6e661d /tests/functional_tests/test_framework/daemon.py
parentfunctional_tests: add get_bulk_transfer tests (diff)
downloadmonero-a3144bd7c8dd428c523fcd0c4db521dc7f4cf3c2.tar.xz
functional_tests: add more transfer tests
manual relay, transfer to integrated address, and a few negative transfer tests
Diffstat (limited to 'tests/functional_tests/test_framework/daemon.py')
-rw-r--r--tests/functional_tests/test_framework/daemon.py7
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',