Page MenuHomePhabricator

[avalanche] Poll tip candidate rather than eagerly
ClosedPublic

Authored by deadalnix on Apr 5 2020, 15:51.

Details

Summary

No point in polling for block that may not end up as tip anyways. The next step is to poll all valid blocks.

Depends on D5673

Test Plan

Updated intergration test to reflect that the chain we poll must now be longer.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avapolltip
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10133
Build 18093: Default Diff Build & Tests
Build 18092: arc lint + arc unit

Event Timeline

Fabien requested changes to this revision.Apr 6 2020, 13:43
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/validation.cpp
2843

You need to filter if the block is invalid as well, there is no need to poll for it.

This revision now requires changes to proceed.Apr 6 2020, 13:43
deadalnix added inline comments.
src/validation.cpp
2843
This revision is now accepted and ready to land.Apr 7 2020, 07:48
This revision was landed with ongoing or failed builds.Apr 8 2020, 13:01
This revision was automatically updated to reflect the committed changes.