aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-12 20:20:20 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-12 20:22:09 +0000
commitccb996afc6cf650f55ef406eb378e8960a6a4a2d (patch)
tree2c25c8b8498e46157eef2a0ceacf15c31ae2c6cb /utils/python-rpc/framework
parentMerge pull request #5386 (diff)
downloadmonero-ccb996afc6cf650f55ef406eb378e8960a6a4a2d.tar.xz
rpc: new sanity check on relayed transactions
This will weed out some transactions with silly rings
Diffstat (limited to 'utils/python-rpc/framework')
-rw-r--r--utils/python-rpc/framework/daemon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index f4d5e90f0..04fc5b5cf 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -50,10 +50,11 @@ class Daemon(object):
}
return self.rpc.send_json_rpc_request(getblocktemplate)
- def send_raw_transaction(self, tx_as_hex, do_not_relay = False):
+ def send_raw_transaction(self, tx_as_hex, do_not_relay = False, do_sanity_checks = True):
send_raw_transaction = {
'tx_as_hex': tx_as_hex,
'do_not_relay': do_not_relay,
+ 'do_sanity_checks': do_sanity_checks,
}
return self.rpc.send_request("/send_raw_transaction", send_raw_transaction)