reth_basic_payload_builder

Function is_better_payload

Source
pub fn is_better_payload<T: BuiltPayload>(
    best_payload: Option<&T>,
    new_fees: U256,
) -> bool
Expand description

Checks if the new payload is better than the current best.

This compares the total fees of the blocks, higher is better.