MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / generatetodescriptor

Method generatetodescriptor

test/functional/test_framework/test_node.py:440–442  ·  view source on GitHub ↗
(self, *args, called_by_framework, **kwargs)

Source from the content-addressed store, hash-verified

438 return self.__getattr__('generatetoaddress')(*args, **kwargs)
439
440 def generatetodescriptor(self, *args, called_by_framework, **kwargs):
441 assert called_by_framework, "Direct call of this mining RPC is discouraged. Please use one of the self.generate* methods on the test framework, which sync the nodes to avoid intermittent test issues. You may use sync_fun=self.no_op to disable the sync explicitly."
442 return self.__getattr__('generatetodescriptor')(*args, **kwargs)
443
444 def setmocktime(self, timestamp):
445 """Wrapper for setmocktime RPC, sets self.mocktime"""

Callers 4

test_pk_coinbasesMethod · 0.45
run_testMethod · 0.45
generateMethod · 0.45

Calls 1

__getattr__Method · 0.95

Tested by

no test coverage detected