feat: Consensus crate and verification functions. (#152)

* wip executor

* wip

* Cleanup added some checks and structure to executor

* adding additional block/header checks

* add basefee calculation and check

* some cleanup

* Sanity check test

* Test for sanity check

* move verification to consensus crate

* cleanup

* Better Error handling
This commit is contained in:
rakita
2022-11-02 12:59:51 +01:00
committed by GitHub
parent 1ea98d40cf
commit ac2f3fcd8a
26 changed files with 755 additions and 59 deletions

View File

@@ -2,7 +2,7 @@
pub type Result<T> = std::result::Result<T, Error>;
/// Core error variants possible when interacting with the blockchain
#[derive(Debug, thiserror::Error)]
#[derive(Debug, thiserror::Error, Clone, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]