pub fn check_best_tip_header(
non_finalized_state: &NonFinalizedState,
db: &ZebraDb,
network: &Network,
header: &Header,
height: Height,
) -> Result<Arc<HistoryTree>, BoxError>Expand description
Checks that header at height is a direct child of the best tip, and that its difficulty
threshold and time are valid in that context.
Returns the history tree of the best tip, which is the parent of the candidate block. This does not check the header’s proof of work.