ci: whitelist some RPCs on the functional test coverage check

This commit is contained in:
Andrew Poelstra 2020-12-16 16:17:09 +00:00
parent 1f068f8bd9
commit e801e951df

View file

@ -786,7 +786,9 @@ class RPCCoverage():
all_cmds = set()
# Consider RPC generate covered, because it is overloaded in
# test_framework/test_node.py and not seen by the coverage check.
covered_cmds = set({'generate'})
# ELEMENTS: also consider `getdifficulty` and `getnetworkhashps` covered, which should be removed as they are meaningless on a signed-block chain
# ELEMENTS: also consider `pruneblockchain` covered since its test is temporarily disabled
covered_cmds = set({'generate', 'getdifficulty', 'getnetworkhashps', 'pruneblockchain'})
if not os.path.isfile(coverage_ref_filename):
raise RuntimeError("No coverage reference found")