mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-01 11:54:40 +00:00
Clean up useless fn
This commit is contained in:
@@ -214,15 +214,19 @@ impl TestContext {
|
|||||||
value: u64,
|
value: u64,
|
||||||
parent_block_root: Hash256,
|
parent_block_root: Hash256,
|
||||||
) -> Arc<SignedExecutionPayloadBid<E>> {
|
) -> Arc<SignedExecutionPayloadBid<E>> {
|
||||||
make_signed_bid(
|
Arc::new(SignedExecutionPayloadBid {
|
||||||
slot,
|
message: ExecutionPayloadBid {
|
||||||
builder_index,
|
slot,
|
||||||
fee_recipient,
|
builder_index,
|
||||||
gas_limit,
|
fee_recipient,
|
||||||
value,
|
gas_limit,
|
||||||
parent_block_root,
|
value,
|
||||||
self.expected_prev_randao(),
|
parent_block_root,
|
||||||
)
|
prev_randao: self.expected_prev_randao(),
|
||||||
|
..ExecutionPayloadBid::default()
|
||||||
|
},
|
||||||
|
signature: Signature::empty(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn insert_non_canonical_block(&self) -> Hash256 {
|
fn insert_non_canonical_block(&self) -> Hash256 {
|
||||||
@@ -267,30 +271,6 @@ impl TestContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_signed_bid(
|
|
||||||
slot: Slot,
|
|
||||||
builder_index: u64,
|
|
||||||
fee_recipient: Address,
|
|
||||||
gas_limit: u64,
|
|
||||||
value: u64,
|
|
||||||
parent_block_root: Hash256,
|
|
||||||
prev_randao: Hash256,
|
|
||||||
) -> Arc<SignedExecutionPayloadBid<E>> {
|
|
||||||
Arc::new(SignedExecutionPayloadBid {
|
|
||||||
message: ExecutionPayloadBid {
|
|
||||||
slot,
|
|
||||||
builder_index,
|
|
||||||
fee_recipient,
|
|
||||||
gas_limit,
|
|
||||||
value,
|
|
||||||
parent_block_root,
|
|
||||||
prev_randao,
|
|
||||||
..ExecutionPayloadBid::default()
|
|
||||||
},
|
|
||||||
signature: Signature::empty(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
fn make_signed_preferences(
|
fn make_signed_preferences(
|
||||||
proposal_slot: Slot,
|
proposal_slot: Slot,
|
||||||
validator_index: u64,
|
validator_index: u64,
|
||||||
|
|||||||
Reference in New Issue
Block a user