rpc: new sanity check on relayed transactions

This will weed out some transactions with silly rings
This commit is contained in:
moneromooo-monero 2019-04-12 20:20:20 +00:00
parent 9c77dbf376
commit ccb996afc6
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
7 changed files with 154 additions and 1 deletions

View file

@ -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)