KomodoPlatform / zebra

An ongoing Rust implementation of a Komodo node. 🦓
Apache License 2.0
3 stars 5 forks source link

Add genesis notaries simplified validation support #12

Open dimxy opened 1 year ago

dimxy commented 1 year ago

Before ht=250,000 embedded genesis notary pubkeys were used. Although these heights are covered by checkpoints the difficulty check still is applied in zebra code (currently temp disabled). For those heights we need to check if a block is a special one and notarised by genesis notaries, to enable this difficulty rule and allow easy mined difficulty values for special blocks.

dimxy commented 1 year ago

Some notes about this issue: Although heights <= 250,000 are covered with checkpoints zebra still checks valid block difficulty for checkpoint block range. However for genesis notaries it is not easy to determine blocks allowed for easy-mining as I could not find rust implementation for the hashing algorithm uthash used for calculating the next notary for easy mining. So for now for ht<=250,000 difficulty check switched off