fix: compare bls changes in op-pool (#8465)

Co-Authored-By: sashass1315 <sashass1315@gmail.com>

Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
This commit is contained in:
sashass1315
2025-11-28 06:09:13 +02:00
committed by GitHub
parent 713e477912
commit 9394663155
2 changed files with 2 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ pub enum ReceivedPreCapella {
///
/// Using the LIFO queue for block production disincentivises spam on P2P at the Capella fork,
/// and is less-relevant after that.
#[derive(Debug, Default)]
#[derive(Debug, Default, PartialEq, Eq)]
pub struct BlsToExecutionChanges<E: EthSpec> {
/// Map from validator index to BLS to execution change.
by_validator_index: HashMap<u64, Arc<SigVerifiedOp<SignedBlsToExecutionChange, E>>>,

View File

@@ -782,6 +782,7 @@ impl<E: EthSpec + Default> PartialEq for OperationPool<E> {
&& *self.attester_slashings.read() == *other.attester_slashings.read()
&& *self.proposer_slashings.read() == *other.proposer_slashings.read()
&& *self.voluntary_exits.read() == *other.voluntary_exits.read()
&& *self.bls_to_execution_changes.read() == *other.bls_to_execution_changes.read()
}
}