Skip to content

Commit 9394663

Browse files
fix: compare bls changes in op-pool (#8465)
Co-Authored-By: sashass1315 <[email protected]> Co-Authored-By: Michael Sproul <[email protected]>
1 parent 713e477 commit 9394663

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

beacon_node/operation_pool/src/bls_to_execution_changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub enum ReceivedPreCapella {
1919
///
2020
/// Using the LIFO queue for block production disincentivises spam on P2P at the Capella fork,
2121
/// and is less-relevant after that.
22-
#[derive(Debug, Default)]
22+
#[derive(Debug, Default, PartialEq, Eq)]
2323
pub struct BlsToExecutionChanges<E: EthSpec> {
2424
/// Map from validator index to BLS to execution change.
2525
by_validator_index: HashMap<u64, Arc<SigVerifiedOp<SignedBlsToExecutionChange, E>>>,

beacon_node/operation_pool/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ impl<E: EthSpec + Default> PartialEq for OperationPool<E> {
782782
&& *self.attester_slashings.read() == *other.attester_slashings.read()
783783
&& *self.proposer_slashings.read() == *other.proposer_slashings.read()
784784
&& *self.voluntary_exits.read() == *other.voluntary_exits.read()
785+
&& *self.bls_to_execution_changes.read() == *other.bls_to_execution_changes.read()
785786
}
786787
}
787788

0 commit comments

Comments
 (0)