diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-25 23:10:35 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-25 23:10:35 +0000 |
commit | da2ffd6abeea213e6e006fb215d4fff4eefb740a (patch) | |
tree | 6b1f93f12bc6036ef6582be057ddb2501b9c9b25 /utils/python-rpc/framework | |
parent | Merge pull request #6024 (diff) | |
download | monero-da2ffd6abeea213e6e006fb215d4fff4eefb740a.tar.xz |
python-rpc: add missing daemon RPC
Diffstat (limited to '')
-rw-r--r-- | utils/python-rpc/framework/daemon.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 9f7805dc8..749d9ed88 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -280,6 +280,32 @@ class Daemon(object): } return self.rpc.send_json_rpc_request(set_bans) + def banned(self, address = ''): + banned = { + 'method': 'banned', + 'params': { + 'address': address + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(banned) + + def set_bootstrap_daemon(self, address, username = '', password = ''): + set_bootstrap_daemon = { + 'address': address, + 'username': username, + 'password': password, + } + return self.rpc.send_request('/set_bootstrap_daemon', set_bootstrap_daemon) + + def get_public_nodes(self, gray = False, white = True): + get_public_nodes = { + 'gray': gray, + 'white': white, + } + return self.rpc.send_request('/get_public_nodes', get_public_nodes) + def get_transactions(self, txs_hashes = [], decode_as_json = False, prune = False, split = False, client = ""): get_transactions = { 'client': client, |