lighthouse/beacon_node
Michael Sproul fcf8419c90 Allow truncation of pubkey cache on creation (#1686)
## Issue Addressed

Closes #1680

## Proposed Changes

This PR fixes a race condition in beacon node start-up whereby the pubkey cache could be created by the beacon chain builder before the `PersistedBeaconChain` was stored to disk. When the node restarted, it would find the persisted chain missing, and attempt to start from scratch, creating a new pubkey cache in the process. This call to `ValidatorPubkeyCache::new` would fail if the file already existed (which it did). I changed the behaviour so that pubkey cache initialization now doesn't care whether there's a file already in existence (it's only a cache after all). Instead it will truncate and recreate the file in the race scenario described.
2020-09-30 04:42:52 +00:00
..
beacon_chain Allow truncation of pubkey cache on creation (#1686) 2020-09-30 04:42:52 +00:00
client Beacon node does not quit on eth1 errors (#1663) 2020-09-25 00:43:45 +00:00
eth1 Beacon node does not quit on eth1 errors (#1663) 2020-09-25 00:43:45 +00:00
eth2_libp2p Update boot-node and discovery (#1682) 2020-09-29 18:28:29 +10:00
genesis Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
network Networking bug fixes (#1684) 2020-09-29 18:28:15 +10:00
operation_pool Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
rest_api minimize the number of places we are calling update_pubkey_cache (#1626) 2020-09-23 01:19:56 +00:00
src Add --staking flag (#1641) 2020-09-23 01:19:58 +00:00
store Update LevelDB to v0.8.6, removing patch (#1636) 2020-09-21 11:53:53 +00:00
tests Improve tokio task execution (#1181) 2020-06-04 21:48:05 +10:00
timer Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
websocket_server Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
Cargo.toml Version bump and cargo update (#1683) 2020-09-29 18:29:04 +10:00