Development feature flag - Disable backfill (#4537)

Often when testing I have to create a hack which is annoying to maintain. 

I think it might be handy to add a custom compile-time flag that developers can use if they want to test things locally without having to backfill a bunch of blocks.

There is probably an argument to have a feature called "backfill" which is enabled by default and can be disabled. I didn't go this route because I think it's counter-intuitive to have a feature that enables a core and necessary behaviour.
This commit is contained in:
Age Manning
2023-07-31 01:53:08 +00:00
parent 117802cef1
commit 8654f20028
3 changed files with 14 additions and 1 deletions

View File

@@ -48,4 +48,8 @@ operation_pool = { path = "../operation_pool" }
execution_layer = { path = "../execution_layer" }
beacon_processor = { path = "../beacon_processor" }
parking_lot = "0.12.0"
environment = { path = "../../lighthouse/environment" }
environment = { path = "../../lighthouse/environment" }
[features]
# NOTE: This can be run via cargo build --bin lighthouse --features network/disable-backfill
disable-backfill = []