aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-25 15:41:32 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 11:08:15 +0000
commit7c657bb2dd7b7dfaf5b3c8443c75f6b0e52fd0e9 (patch)
tree1f0f956fb64adb2741b2520ae8068e3768bc3d9f /utils/python-rpc/framework
parentfunctional_tests: add wallet creation language tests (diff)
downloadmonero-7c657bb2dd7b7dfaf5b3c8443c75f6b0e52fd0e9.tar.xz
functional_tests: add alt chains tests
Diffstat (limited to 'utils/python-rpc/framework')
-rw-r--r--utils/python-rpc/framework/daemon.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index d4fd7d5b6..7968ef7fd 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -312,3 +312,18 @@ class Daemon(object):
'categories': categories,
}
return self.rpc.send_request('/set_log_categories', set_log_categories)
+
+ def get_alt_blocks_hashes(self):
+ get_alt_blocks_hashes = {
+ }
+ return self.rpc.send_request('/get_alt_blocks_hashes', get_alt_blocks_hashes)
+
+ def get_alternate_chains(self):
+ get_alternate_chains = {
+ 'method': 'get_alternate_chains',
+ 'params': {
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_alternate_chains)