pub fn verify_block_for_gossip(
        &self,
        block: SignedBeaconBlock<T::EthSpec>,
    ) -> Result<GossipVerifiedBlock<T>, BlockError<T::EthSpec>> {
        let slot = block.message.slot;
        let graffiti_string = block.message.body.graffiti.as_utf8_lossy();

        match GossipVerifiedBlock::new(block, self) {
            Ok(verified) => {
                debug!(
                    self.log,
                    "Successfully processed gossip block";
                    "graffiti" => graffiti_string,
                    "slot" => slot,
                    "root" => ?verified.block_root(),
                );

                Ok(verified)
            }
            Err(e) => {
                debug!(
                    self.log,
                    "Rejected gossip block";
                    "error" => e.to_string(),
                    "graffiti" => graffiti_string,
                    "slot" => slot,
                );

                Err(e)
            }
        }
    }
/// Returns `Ok(GossipVerifiedBlock)` if the supplied `block` should be forwarded onto the
/// gossip network. The block is not imported into the chain, it is just partially verified.
///
/// The returned `GossipVerifiedBlock` should be provided to `Self::process_block` immediately
/// after it is returned, unless some other circumstance decides it should not be imported at
/// all.
///
/// ## Errors
///
/// Returns an `Err` if the given block was invalid, or an error was encountered during
Returns `Ok(GossipVerifiedBlock)` if the supplied `block` should be forwarded onto the
gossip network. The block is not imported into the chain, it is just partially verified.

The returned `GossipVerifiedBlock` should be provided to `Self::process_block` immediately
after it is returned, unless some other circumstance decides it should not be imported at
all.
Returns ` Ok ( GossipVerifiedBlock ) ` if the supplied ` block ` should be forwarded onto the gossip network . The block is not imported into the chain it is just partially verified . The returned ` GossipVerifiedBlock ` should be provided to ` Self :: process_block ` immediately after it is returned unless some other circumstance decides it should not be imported at all .
pub fn verify_block_for_gossip(
        &self,
        block: SignedBeaconBlock<T::EthSpec>,
    ) -> Result<GossipVerifiedBlock<T>, BlockError<T::EthSpec>> {
        let slot = block.message.slot;
        let graffiti_string = block.message.body.graffiti.as_utf8_lossy();
        match GossipVerifiedBlock::new(block, self) {
            Ok(verified) => {
                debug!(
                    self.log,
                    "Successfully processed gossip block";
                    "graffiti" => graffiti_string,
                    "slot" => slot,
                    "root" => ?verified.block_root(),
                );
                Ok(verified)
            }
            Err(e) => {
                debug!(
                    self.log,
                    "Rejected gossip block";
                    "error" => e.to_string(),
                    "graffiti" => graffiti_string,
                    "slot" => slot,
                );
                Err(e)
            }
        }
    }
pub fn verify_block_for_gossip ( & self , block : SignedBeaconBlock < T :: EthSpec > , ) -> Result < GossipVerifiedBlock < T > , BlockError < T :: EthSpec > > { let slot = block . message . slot ; let graffiti_string = block . message . body . graffiti . as_utf8_lossy ( ) ; match GossipVerifiedBlock :: new ( block , self ) { Ok ( verified ) => { debug ! ( self log " " " " graffiti_string " " slot " " verified block_root ( ) ) ; Ok ( verified ) } Err ( e ) => { debug ! ( self log " " " " e to_string ( ) " " graffiti_string " " slot ) ; Err ( e ) } } }
Returns `Ok(GossipVerifiedBlock)` if the supplied `block` should be forwarded onto the
gossip network.
Returns ` Ok ( GossipVerifiedBlock ) ` if the supplied ` block ` should be forwarded onto the gossip network .
&self
block
SignedBeaconBlock<T::EthSpec>
errors
Returns an `Err` if the given block was invalid, or an error was encountered during
Returns an ` Err ` if the given block was invalid or an error was encountered during