pub fn proposer_shuffling_decision_root(&self, block_root: Hash256) -> Result<Hash256, Error> {
        let decision_slot = self.proposer_shuffling_decision_slot();
        if self.slot == decision_slot {
            Ok(block_root)
        } else {
            self.get_block_root(decision_slot).map(|root| *root)
        }
    }
/// Returns the block root which decided the proposer shuffling for the current epoch. This root
/// can be used to key this proposer shuffling.
///
/// ## Notes
///
/// The `block_root` covers the one-off scenario where the genesis block decides its own
/// shuffling. It should be set to the latest block applied to `self` or the genesis block root.
Returns the block root which decided the proposer shuffling for the current epoch. This root
can be used to key this proposer shuffling.
Returns the block root which decided the proposer shuffling for the current epoch . This root can be used to key this proposer shuffling .
pub fn proposer_shuffling_decision_root(&self, block_root: Hash256) -> Result<Hash256, Error> {
        let decision_slot = self.proposer_shuffling_decision_slot();
        if self.slot == decision_slot {
            Ok(block_root)
        } else {
            self.get_block_root(decision_slot).map(|root| *root)
        }
    }
pub fn proposer_shuffling_decision_root ( & self , block_root : Hash256 ) -> Result < Hash256 , Error > { let decision_slot = self . proposer_shuffling_decision_slot ( ) ; if self . slot == decision_slot { Ok ( block_root ) } else { self . get_block_root ( decision_slot ) . map ( | root | * root ) } }
Returns the block root which decided the proposer shuffling for the current epoch.
Returns the block root which decided the proposer shuffling for the current epoch .
&self
block_root
Hash256
notes
The `block_root` covers the one-off scenario where the genesis block decides its own
shuffling. It should be set to the latest block applied to `self` or the genesis block root.
The ` block_root ` covers the one - off scenario where the genesis block decides its own shuffling . It should be set to the latest block applied to ` self ` or the genesis block root .