Zebra/zebrad/tests/common
teor 04e96c2526
feat(net): Cache a list of useful peers on disk (#6739)
* Rewrite some state cache docs to clarify

* Add a zebra_network::Config.cache_dir for peer address caches

* Add new config test files and fix config test failure message

* Create some zebra-chain and zebra-network convenience functions

* Add methods for reading and writing the peer address cache

* Add cached disk peers to the initial peers list

* Add metrics and logging for loading and storing the peer cache

* Replace log of useless redacted peer IP addresses

* Limit the peer cache minimum and maximum size, don't write empty caches

* Add a cacheable_peers() method to the address book

* Add a peer disk cache updater task to the peer set tasks

* Document that the peer cache is shared by multiple instances unless configured otherwise

* Disable peer cache read/write in disconnected tests

* Make initial peer cache updater sleep shorter for tests

* Add unit tests for reading and writing the peer cache

* Update the task list in the start command docs

* Modify the existing persistent acceptance test to check for peer caches

* Update the peer cache directory when writing test configs

* Add a CacheDir type so the default config can be enabled, but tests can disable it

* Update tests to use the CacheDir config type

* Rename some CacheDir internals

* Add config file test cases for each kind of CacheDir config

* Panic if the config contains invalid socket addresses, rather than continuing

* Add a network directory to state cache directory contents tests

* Add new network.cache_dir config to the config parsing tests
2023-06-06 08:28:14 +00:00
..
configs feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
get_block_template_rpcs fix(log): Limit RPC failure log length, add details to RPC failure logs (#6754) 2023-05-25 18:28:25 +00:00
lightwalletd fix(ci): Reduce number of sent transactions in tests (#6736) 2023-05-22 12:05:40 +00:00
cached_state.rs change(utils): Add a direct connection mode to zebra-checkpoints (#6516) 2023-04-26 23:35:53 +00:00
check.rs T0. refactor(test): split zebrad acceptance tests into sub-modules (#3901) 2022-03-18 16:02:22 +00:00
checkpoints.rs change(ci): Generate mainnet checkpoints in CI (#6550) 2023-04-27 04:39:43 +00:00
config.rs fix(tests): add submitblock test to CI, and avoid copying the cached state directory in other tests (#5589) 2022-11-10 03:40:21 +00:00
failure_messages.rs feat(zebrad): Refuse to run zebrad when release is too old (#6351) 2023-04-28 14:13:21 +00:00
get_block_template_rpcs.rs change(rpc): Add getpeerinfo RPC method (#5951) 2023-01-17 07:09:07 +00:00
launch.rs feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
lightwalletd.rs change(ci): Generate mainnet checkpoints in CI (#6550) 2023-04-27 04:39:43 +00:00
mod.rs change(ci): Generate mainnet checkpoints in CI (#6550) 2023-04-27 04:39:43 +00:00
sync.rs rename(state): Rename state verifiers and related code (#6762) 2023-06-01 12:29:03 +00:00
test_type.rs change(rpc): Add getpeerinfo RPC method (#5951) 2023-01-17 07:09:07 +00:00