Closed frolosofsky closed 5 years ago
I had a look at it. The issue is caused by the bidirectional connections we have. Here what I see in logs:
node4 08:17:32.499560 UpdateTip: new best=479432abf8d0ff6f3e97bcea6e819312e4baf34dd205184841f758860d3a529c height=18 version=0x20000000 log2_work=5.2479275 tx=34 date='2019-03-21 08:17:34' progress=1.000000 cache=0.0MiB(0txo) [0m
node0 08:17:32.501461 UpdateTip: new best=479432abf8d0ff6f3e97bcea6e819312e4baf34dd205184841f758860d3a529c height=18 version=0x20000000 log2_work=5.2479275 tx=34 date='2019-03-21 08:17:34' progress=1.000000 cache=0.0MiB(0txo) [0m
node1 08:17:32.509251 UpdateTip: new best=479432abf8d0ff6f3e97bcea6e819312e4baf34dd205184841f758860d3a529c height=18 version=0x20000000 log2_work=5.2479275 tx=34 date='2019-03-21 08:17:34' progress=1.000000 cache=0.0MiB(0txo) [0m
node2 08:17:32.511159 UpdateTip: new best=479432abf8d0ff6f3e97bcea6e819312e4baf34dd205184841f758860d3a529c height=18 version=0x20000000 log2_work=5.2479275 tx=34 date='2019-03-21 08:17:34' progress=1.000000 cache=0.0MiB(0txo) [0m
node3 08:17:32.515410 ERROR: IsVotable: vote for wrong target_epoch=8. validator=6cb00591c9da64afc2930d2151bb7bb4e0c1cd09 current_epoch=8
node3 08:17:32.530314 UpdateTip: new best=479432abf8d0ff6f3e97bcea6e819312e4baf34dd205184841f758860d3a529c height=18 version=0x20000000 log2_work=5.2479275 tx=34 date='2019-03-21 08:17:34' progress=1.000000 cache=0.0MiB(0txo) [0m
Node3 receives vote earlier than it processed the block. It can be fixed by using unidirectional connections in the test but when I tried to do it, noticed that we have an issue with syncing blocks. Here is the reproducible test: https://github.com/dtr-org/unit-e/pull/824
Once we resolve it, I'll change connect_nodes_bi
to connect_nodes
and it should resolve the floating problem that occurred.
Dear Mergeable, please shut up and stop spamming.
log.txt