mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
In-memory tree states (#5533)
* Consensus changes
* EF tests
* lcli
* common and watch
* account manager
* cargo
* fork choice
* promise cache
* beacon chain
* interop genesis
* http api
* lighthouse
* op pool
* beacon chain misc
* parallel state cache
* store
* fix issues in store
* IT COMPILES
* Remove some unnecessary module qualification
* Revert Arced pubkey optimization (#5536)
* Merge remote-tracking branch 'origin/unstable' into tree-states-memory
* Fix caching, rebasing and some tests
* Remove unused deps
* Merge remote-tracking branch 'origin/unstable' into tree-states-memory
* Small cleanups
* Revert shuffling cache/promise cache changes
* Fix state advance bugs
* Fix shuffling tests
* Remove some resolved FIXMEs
* Remove StateProcessingStrategy
* Optimise withdrawals calculation
* Don't reorg if state cache is missed
* Remove inconsistent state func
* Fix beta compiler
* Rebase early, rebase often
* Fix state caching behaviour
* Update to milhouse release
* Fix on-disk consensus context format
* Merge remote-tracking branch 'origin/unstable' into tree-states-memory
* Squashed commit of the following:
commit 3a16649023
Author: Michael Sproul <michael@sigmaprime.io>
Date: Thu Apr 18 14:26:09 2024 +1000
Fix on-disk consensus context format
* Keep indexed attestations, thanks Sean
* Merge branch 'on-disk-consensus-context' into tree-states-memory
* Merge branch 'unstable' into tree-states-memory
* Address half of Sean's review
* More simplifications from Sean's review
* Cache state after get_advanced_hot_state
This commit is contained in:
@@ -1272,7 +1272,7 @@ mod release_tests {
|
||||
// Each validator will have a multiple of 1_000_000_000 wei.
|
||||
// Safe from overflow unless there are about 18B validators (2^64 / 1_000_000_000).
|
||||
for i in 0..state.validators().len() {
|
||||
state.validators_mut()[i].effective_balance = 1_000_000_000 * i as u64;
|
||||
state.validators_mut().get_mut(i).unwrap().effective_balance = 1_000_000_000 * i as u64;
|
||||
}
|
||||
|
||||
let num_validators = num_committees
|
||||
@@ -1530,9 +1530,9 @@ mod release_tests {
|
||||
let spec = &harness.spec;
|
||||
let mut state = harness.get_current_state();
|
||||
let op_pool = OperationPool::<MainnetEthSpec>::new();
|
||||
state.validators_mut()[1].effective_balance = 17_000_000_000;
|
||||
state.validators_mut()[2].effective_balance = 17_000_000_000;
|
||||
state.validators_mut()[3].effective_balance = 17_000_000_000;
|
||||
state.validators_mut().get_mut(1).unwrap().effective_balance = 17_000_000_000;
|
||||
state.validators_mut().get_mut(2).unwrap().effective_balance = 17_000_000_000;
|
||||
state.validators_mut().get_mut(3).unwrap().effective_balance = 17_000_000_000;
|
||||
|
||||
let slashing_1 = harness.make_attester_slashing(vec![1, 2, 3]);
|
||||
let slashing_2 = harness.make_attester_slashing(vec![4, 5, 6]);
|
||||
|
||||
Reference in New Issue
Block a user