Skip to content

Commit

Permalink
Fix bootstrap unit tests (#4383)
Browse files Browse the repository at this point in the history
* Introduce nano::test::system::make_disconnected_node()

It makes it easy to craete a disconnected node and it also makes the
intention clear, that the node is meant to be special and disconnected

* Fix bootstrap_processor.process_none

* Introduce  nano::test::account_info and nano::test::account_height

* Improve bootstrap_processor.process_one

* Fix bootstrap_processor.process_two

* Improve test bootstrap_processor.process_state

* Improve bootstrap_processor.process_new

* Improve bootstrap_processor.pull_diamond

* Improve bootstrap_processor.DISABLED_pull_requeue_network_error

* Improve bootstrap_processor.DISABLED_push_diamond

* Improve bootstrap_processor.DISABLED_push_diamond_pruning

* Improve bootstrap_processor.push_one

* Fix bootstrap_processor.lazy_hash

* Fix and improve bootstrap_processor.lazy_hash_bootstrap_id

* Fix and improve bootstrap_processor.lazy_hash_pruning

* Fix and improve bootstrap_processor.lazy_max_pull_count

* Improve bootstrap_processor.lazy_unclear_state_link_not_existing

* Improve bootstrap_processor.lazy_cancel

* Fix bootstrap_processor.wallet_lazy_frontier

* Improve bootstrap_processor.wallet_lazy_frontier

* Fix bootstrap_processor.wallet_lazy_pending

* Fix and improve bootstrap_processor.multiple_attempts

* Improve bulk.genesis

* Fix and improve bulk.offline_send

* Fix bootstrap_processor.lazy_destinations

* Fix bootstrap_processor.lazy_unclear_state_link_not_existing

* Improve and re-enable bootstrap_processor.lazy_unclear_state_link

* Fix bootstrap_processor.lazy_pruning_missing_block

* Introduce function nano::test::print_all_blocks()

* Fix, improve and re-enable bulk.genesis_pruning

* Fix, improve and re-enable bootstrap_processor.lazy_unclear_state_link

* Fix, improve and re-enable bootstrap_processor.push_diamond

* Fix, improve and re-enable bootstrap_processor.push_diamond_pruning

* Disable ascending and ongoing bootstrap in tests that test lazy bootstrap

* Reinstate resetting of node_config.peering_port when config is reused

This is needed for NANO_TEST_BASE_PORT to work.

* Fix race condition in bulk.genesis_pruning

* Fix a race condition in bootstrap_processor.process_new
  • Loading branch information
dsiganos authored Jan 26, 2024
1 parent 67841b6 commit efe41ee
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 214 deletions.
Loading

0 comments on commit efe41ee

Please sign in to comment.