mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Merge remote-tracking branch 'origin/unstable' into tree-states
This commit is contained in:
@@ -2025,17 +2025,17 @@ async fn garbage_collect_temp_states_from_failed_block() {
|
||||
let block_slot = Slot::new(2 * slots_per_epoch);
|
||||
let ((signed_block, _), state) = harness.make_block(genesis_state, block_slot).await;
|
||||
|
||||
let (mut block, _) = signed_block.deconstruct();
|
||||
let (mut block, _) = (*signed_block).clone().deconstruct();
|
||||
|
||||
// Mutate the block to make it invalid, and re-sign it.
|
||||
*block.state_root_mut() = Hash256::repeat_byte(0xff);
|
||||
let proposer_index = block.proposer_index() as usize;
|
||||
let block = block.sign(
|
||||
let block = Arc::new(block.sign(
|
||||
&harness.validator_keypairs[proposer_index].sk,
|
||||
&state.fork(),
|
||||
state.genesis_validators_root(),
|
||||
&harness.spec,
|
||||
);
|
||||
));
|
||||
|
||||
// The block should be rejected, but should store a bunch of temporary states.
|
||||
harness.set_current_slot(block_slot);
|
||||
@@ -2435,7 +2435,7 @@ async fn process_blocks_and_attestations_for_unaligned_checkpoint() {
|
||||
.chain
|
||||
.process_block(
|
||||
invalid_fork_block.canonical_root(),
|
||||
Arc::new(invalid_fork_block.clone()),
|
||||
invalid_fork_block.clone(),
|
||||
NotifyExecutionLayer::Yes,
|
||||
|| Ok(()),
|
||||
)
|
||||
@@ -2448,7 +2448,7 @@ async fn process_blocks_and_attestations_for_unaligned_checkpoint() {
|
||||
.chain
|
||||
.process_block(
|
||||
valid_fork_block.canonical_root(),
|
||||
Arc::new(valid_fork_block.clone()),
|
||||
valid_fork_block.clone(),
|
||||
NotifyExecutionLayer::Yes,
|
||||
|| Ok(()),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user