ergoplatform / oracle-core

Core off-chain component of Oracle Pools
Apache License 2.0
61 stars 37 forks source link

Updates after "not found ballot boxes" on voting #292

Closed greenhat closed 1 year ago

greenhat commented 1 year ago

Close #291

Node scan for ballot token returns boxes.

Confirmed that ballot boxes from the previous update have different ergo tree (with previous update nft) due to the update process copying ergo tree from vote ballot boxes.

Todo: - check the ballot box wrapper filters out boxes because of different ergo tree than in pool_config.yaml;

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5399582068


Changes Missing Coverage Covered Lines Changed/Added Lines %
core/src/cli_commands/update_pool.rs 1 2 50.0%
core/src/box_kind/ballot_box.rs 5 7 71.43%
core/src/cli_commands/vote_update_pool.rs 21 32 65.63%
core/src/main.rs 0 11 0.0%
<!-- Total: 29 54 53.7% -->
Files with Coverage Reduction New Missed Lines %
core/src/box_kind/ballot_box.rs 1 86.17%
core/src/cli_commands/vote_update_pool.rs 1 54.44%
<!-- Total: 2 -->
Totals Coverage Status
Change from base Build 5334019994: -0.3%
Covered Lines: 2061
Relevant Lines: 3758

💛 - Coveralls