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

Method generatetoaddress

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

Source from the content-addressed store, hash-verified

434 return self.__getattr__('generateblock')(*args, **kwargs)
435
436 def generatetoaddress(self, *args, called_by_framework, **kwargs):
437 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."
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."

Callers 15

generateMethod · 0.95
mine_blocksMethod · 0.45
mine_reorgMethod · 0.45
test_null_locatorsMethod · 0.45
reindexMethod · 0.45
run_testMethod · 0.45
run_testMethod · 0.45
run_testMethod · 0.45
run_testMethod · 0.45

Calls 1

__getattr__Method · 0.95

Tested by

no test coverage detected