MCPcopy Create free account
hub / github.com/ElementsProject/elements / init_blockinfo

Method init_blockinfo

test/functional/feature_taproot.py:1433–1439  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

1431 assert node.getbestblockhash() == self.lastblockhash, "Failed to reject: " + msg
1432
1433 def init_blockinfo(self, node):
1434 # Initialize variables used by block_submit().
1435 self.lastblockhash = node.getbestblockhash()
1436 self.tip = int(self.lastblockhash, 16)
1437 block = node.getblock(self.lastblockhash)
1438 self.lastblockheight = block['height']
1439 self.lastblocktime = block['time']
1440
1441 def test_spenders(self, node, spenders, input_counts):
1442 """Run randomized tests with a number of "spenders".

Callers 2

test_spendersMethod · 0.95
gen_test_vectorsMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_spendersMethod · 0.76