aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-09-03 16:22:19 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-02-09 11:58:21 +0000
commit19b228393fdc0899104934538edfb0cfd665cdf0 (patch)
tree7df2203e564b32e456395b125bb1c5e6d1e23a9d /utils
parentMerge pull request #7260 (diff)
downloadmonero-19b228393fdc0899104934538edfb0cfd665cdf0.tar.xz
New add_aux_pow RPC to support merge mining
Diffstat (limited to 'utils')
-rw-r--r--utils/python-rpc/framework/daemon.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index 435bc93f8..207565e6f 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -53,6 +53,19 @@ class Daemon(object):
return self.rpc.send_json_rpc_request(getblocktemplate)
get_block_template = getblocktemplate
+ def add_aux_pow(self, blocktemplate_blob, aux_pow, client = ""):
+ add_aux_pow = {
+ 'method': 'add_aux_pow',
+ 'params': {
+ 'blocktemplate_blob': blocktemplate_blob,
+ 'aux_pow' : aux_pow,
+ 'client' : client,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(add_aux_pow)
+
def send_raw_transaction(self, tx_as_hex, do_not_relay = False, do_sanity_checks = True, client = ""):
send_raw_transaction = {
'client': client,