[][src]Function grin_chain::pipe::process_block

pub fn process_block(
    b: &Block,
    ctx: &mut BlockContext<'_>
) -> Result<(Option<Tip>, BlockHeader), Error>

Runs the block processing pipeline, including validation and finding a place for the new block in the chain. Returns new head if chain head updated and the "fork point" rewound to when processing the new block.