mirror of
https://github.com/monero-project/monero.git
synced 2024-12-22 19:49:30 +00:00
Add python method
This commit is contained in:
parent
c09054bbf9
commit
6f80a46afa
1 changed files with 14 additions and 0 deletions
|
@ -61,6 +61,20 @@ class Daemon(object):
|
||||||
}
|
}
|
||||||
return self.rpc.send_json_rpc_request(get_miner_data)
|
return self.rpc.send_json_rpc_request(get_miner_data)
|
||||||
|
|
||||||
|
def calc_pow(self, major_version, height, block_blob, seed_hash = ''):
|
||||||
|
calc_pow = {
|
||||||
|
'method': 'calc_pow',
|
||||||
|
'params': {
|
||||||
|
'major_version': major_version,
|
||||||
|
'height': height,
|
||||||
|
'block_blob' : block_blob,
|
||||||
|
'seed_hash' : seed_hash,
|
||||||
|
},
|
||||||
|
'jsonrpc': '2.0',
|
||||||
|
'id': '0'
|
||||||
|
}
|
||||||
|
return self.rpc.send_json_rpc_request(calc_pow)
|
||||||
|
|
||||||
def send_raw_transaction(self, tx_as_hex, do_not_relay = False, do_sanity_checks = True, client = ""):
|
def send_raw_transaction(self, tx_as_hex, do_not_relay = False, do_sanity_checks = True, client = ""):
|
||||||
send_raw_transaction = {
|
send_raw_transaction = {
|
||||||
'client': client,
|
'client': client,
|
||||||
|
|
Loading…
Reference in a new issue