Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the txid is dropped by node 1 and the call to sync_all fails.
Solve it by a call to sync_blocks after generate.
Generating a block on node 0 will only get node 0 out of IBD and not node 1. So the inv for the txid is dropped by node 1 and the call to sync_all fails.
Solve it by a call to sync_blocks after generate.
One of the travis failures for reference: https://travis-ci.org/bitcoin/bitcoin/jobs/377321319
utACK faf20a7
20 | @@ -18,8 +21,7 @@ def set_test_params(self): 21 | def run_test(self): 22 | # Generate block to get out of IBD 23 | self.nodes[0].generate(1) 24 | - 25 | - self.log.info("listreceivedbyaddress Test") 26 | + sync_blocks(self.nodes)
You can use self.sync_all() here to avoid the additional import.
20 | @@ -18,8 +21,7 @@ def set_test_params(self): 21 | def run_test(self): 22 | # Generate block to get out of IBD 23 | self.nodes[0].generate(1) 24 | - 25 | - self.log.info("listreceivedbyaddress Test")
No need to remove this. It looks like this log indicates that this part of the test is for listreceivedbyaddress compared with the next parts of the test for getreceivedbyaddress and listreceivedbylabel/getreceivedbylabel.
Thanks. Removing the log statement was incorrect. Fixed up...
Concept ACK
Tested ACK fa865efa4a21ae08be8b4c390b7661182e0b415b