mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Fix handling of cross-fork messages in op pool
This commit is contained in:
@@ -18,6 +18,13 @@ pub struct ProposerSlashing {
|
||||
pub signed_header_2: SignedBeaconBlockHeader,
|
||||
}
|
||||
|
||||
impl ProposerSlashing {
|
||||
/// Get proposer index, assuming slashing validity has already been checked.
|
||||
pub fn proposer_index(&self) -> u64 {
|
||||
self.signed_header_1.message.proposer_index
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user