(self)
| 566 | assert_equal(self.nodes[0].getbestblockhash(), subscribers[1].receive().hex()) |
| 567 | |
| 568 | def test_ipv6(self): |
| 569 | if not test_ipv6_local(): |
| 570 | self.log.info("Skipping IPv6 test, because IPv6 is not supported.") |
| 571 | return |
| 572 | self.log.info("Testing IPv6") |
| 573 | # Set up subscriber using IPv6 loopback address |
| 574 | subscribers = self.setup_zmq_test([ |
| 575 | ("hashblock", "tcp://[::1]:28332") |
| 576 | ], ipv6=True) |
| 577 | |
| 578 | # Generate 1 block in nodes[0] |
| 579 | self.generatetoaddress(self.nodes[0], 1, ADDRESS_BCRT1_UNSPENDABLE) |
| 580 | |
| 581 | # Should receive the same block hash |
| 582 | assert_equal(self.nodes[0].getbestblockhash(), subscribers[0].receive().hex()) |
| 583 | |
| 584 | |
| 585 | if __name__ == '__main__': |
no test coverage detected