diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-09-23 22:10:03 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-09-23 22:10:03 -0500 |
| commit | 298c9a357f6e57eccf28db1f3e734eb6da080d9a (patch) | |
| tree | cece5d9e4c744a8c115c255b89cc3ff0c4d9b0ef /utils/python-rpc/framework/daemon.py | |
| parent | 237acd120e0da39913bd7b195e2309eff06d639e (diff) | |
| parent | dfee15eee18a97be5a8fb9822527f98ebd1b33e9 (diff) | |
| download | monzero-core-298c9a357f6e57eccf28db1f3e734eb6da080d9a.tar.gz monzero-core-298c9a357f6e57eccf28db1f3e734eb6da080d9a.tar.xz monzero-core-298c9a357f6e57eccf28db1f3e734eb6da080d9a.zip | |
Merge pull request #7891
dfee15e RPC and ZeroMQ APIs to support p2pool (SChernykh)
Diffstat (limited to 'utils/python-rpc/framework/daemon.py')
| -rw-r--r-- | utils/python-rpc/framework/daemon.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 207565e6f..435459f6d 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -53,6 +53,14 @@ class Daemon(object): return self.rpc.send_json_rpc_request(getblocktemplate) get_block_template = getblocktemplate + def get_miner_data(self): + get_miner_data = { + 'method': 'get_miner_data', + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_miner_data) + def add_aux_pow(self, blocktemplate_blob, aux_pow, client = ""): add_aux_pow = { 'method': 'add_aux_pow', |
