Fix failing tests
This commit is contained in:
parent
81c9af5aaf
commit
18347231b1
@ -2130,18 +2130,6 @@ where
|
|||||||
self.chain.slot_clock.set_current_time(time);
|
self.chain.slot_clock.set_current_time(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Deprecated: Use make_block() instead
|
|
||||||
///
|
|
||||||
/// Returns a newly created block, signed by the proposer for the given slot.
|
|
||||||
pub async fn build_block(
|
|
||||||
&self,
|
|
||||||
state: BeaconState<E>,
|
|
||||||
slot: Slot,
|
|
||||||
_block_strategy: BlockStrategy,
|
|
||||||
) -> (BlockContentsTuple<E, FullPayload<E>>, BeaconState<E>) {
|
|
||||||
self.make_block(state, slot).await
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Uses `Self::extend_chain` to build the chain out to the `target_slot`.
|
/// Uses `Self::extend_chain` to build the chain out to the `target_slot`.
|
||||||
pub async fn extend_to_slot(&self, target_slot: Slot) -> Hash256 {
|
pub async fn extend_to_slot(&self, target_slot: Slot) -> Hash256 {
|
||||||
if self.chain.slot().unwrap() == self.chain.canonical_head.cached_head().head_slot() {
|
if self.chain.slot().unwrap() == self.chain.canonical_head.cached_head().head_slot() {
|
||||||
|
@ -99,9 +99,10 @@ async fn el_error_on_new_payload() {
|
|||||||
|
|
||||||
// Make a block.
|
// Make a block.
|
||||||
let pre_state = harness.get_current_state();
|
let pre_state = harness.get_current_state();
|
||||||
let (block, _) = harness
|
let (block_contents, _) = harness
|
||||||
.make_block(pre_state, Slot::new(num_blocks + 1))
|
.make_block(pre_state, Slot::new(num_blocks + 1))
|
||||||
.await;
|
.await;
|
||||||
|
let block = block_contents.0;
|
||||||
let block_hash = block
|
let block_hash = block
|
||||||
.message()
|
.message()
|
||||||
.body()
|
.body()
|
||||||
|
Loading…
Reference in New Issue
Block a user