Automatically relay transactions (note: the flag is not documented)

This commit is contained in:
Michał Sałaban 2018-01-16 01:27:07 +01:00
parent f8bb84c458
commit 8e6970ea38
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ class JSONRPCDaemon(object):
return info
def send_transaction(self, blob):
res = self.raw_request('/sendrawtransaction', {'tx_as_hex': blob})
res = self.raw_request('/sendrawtransaction', {
'tx_as_hex': blob,
'do_not_relay': False})
if res['status'] == 'OK':
return res
raise exceptions.TransactionBroadcastError(