mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 08:16:07 -04:00
rpc: new sanity check on relayed transactions
This will weed out some transactions with silly rings
This commit is contained in:
parent
9c77dbf376
commit
ccb996afc6
7 changed files with 154 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue