From 7c657bb2dd7b7dfaf5b3c8443c75f6b0e52fd0e9 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 25 Mar 2019 15:41:32 +0000 Subject: functional_tests: add alt chains tests --- utils/python-rpc/framework/daemon.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'utils/python-rpc/framework') 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) -- cgit v1.2.3