pub fn is_empty(&self) -> bool {
        match self {
            BlockPayload::BatchAndDealings(batch, dealings) => {
                batch.is_empty() && dealings.messages.is_empty()
            }
            _ => false,
        }
    }
/// Return true if it is a normal block and empty
Return true if it is a normal block and empty
Return true if it is a normal block and empty
pub fn is_empty(&self) -> bool {
        match self {
            BlockPayload::BatchAndDealings(batch, dealings) => {
                batch.is_empty() && dealings.messages.is_empty()
            }
            _ => false,
        }
    }
pub fn is_empty ( & self ) -> bool { match self { BlockPayload :: BatchAndDealings ( batch , dealings ) => { batch . is_empty ( ) && dealings . messages . is_empty ( ) } _ => false , } }
Return true if it is a normal block and empty
Return true if it is a normal block and empty
&self
&self