mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 13:47:47 +00:00
Merge pull request #6033
da2ffd6
python-rpc: add missing daemon RPC (moneromooo-monero)
This commit is contained in:
commit
3b0a43a8d4
1 changed files with 26 additions and 0 deletions
|
@ -280,6 +280,32 @@ class Daemon(object):
|
||||||
}
|
}
|
||||||
return self.rpc.send_json_rpc_request(set_bans)
|
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 = ""):
|
def get_transactions(self, txs_hashes = [], decode_as_json = False, prune = False, split = False, client = ""):
|
||||||
get_transactions = {
|
get_transactions = {
|
||||||
'client': client,
|
'client': client,
|
||||||
|
|
Loading…
Reference in a new issue