(self, node)
| 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". |
no outgoing calls