chia-blockchain icon indicating copy to clipboard operation
chia-blockchain copied to clipboard

remove contains height from BlocksProtocol

Open almogdepaz opened this issue 5 months ago • 1 comments

Purpose:

remove contains height from blocks protocol

Current Behavior:

we are using contains height that just checks the height_to_hash where we can just check if height is <= peak.height

New Behavior:

add get_peak_height to BlocksProtocol and use that instead of contains_height

Testing Notes:

almogdepaz avatar Sep 10 '24 08:09 almogdepaz