Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
improvements to the blockchain's block structure, validation logic, and light node support, as well as updates to dependency management.
Added
SlotNumberto theBlockstruct to support deterministic block timing and updated block creation, serialization, and hash computation to include this field. Block validation now checks for strictly increasing slot numbers.Enhanced block validation to require all expected domain expirations (via
expiryChecker) to be present in the block, enforcing strict checks on expiration transactions.Added
BlockHeaderandMerkleProoftypes, with methods for extracting lightweight block headers and generating/verifying compact Merkle proofs for transaction inclusion, enabling efficient light node operation.Introduced a new
spent_txsbucket to the blockchain database for tracking spent transactions.Improved
AddBlocklogic to ensure chain tip is only updated if the new block properly extends the current chain, preventing index gaps and forks from incorrectly updating the tip.