-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* block -> refactor: reworked header class with static factory instantiation helpers, removed defineProperties usage, fixed header tests * block -> refactoring: added new static factory helpers to block class * block -> refactor: fix build errors, remove unused imports, unpad number-value buffers in header * block -> rename Header to BlockHeader * block/tx -> fix block tests * block -> enforce BNs on fields which are interpreted as numbers * block -> edge case in toBN block -> fix tests, fix util * ethash -> make ethash compatible with block * have validateTransactions return a string[] (#812 (comment)) * let => const * set default param to resolve js runtime check * continue refactoring and simplifying methods freeze both block and header objects use Address for coinbase * api updates * continuing work * inline buffer validations. add checks for extraData, mixHash and nonce * various fixups * continuing various work * continuing work and refactoring added Block.genesis() and BlockHeader.genesis() alias update vm * re-add timestamp to genesis (for rinkeby) * last fixups * update readme, benchmarks * update vm readme, simplify validate * fix timestamp validation * use native eq * make blockchain optional in block.validate() move genTxTrie() inside validateTransactionsTrie() * fixups * remove BLOCK_difficulty_GivenAsList from skip list (#883 (comment)) Co-authored-by: Jochem Brouwer <jochembrouwer96@gmail.com> Co-authored-by: Ryan Ghods <ryan@ryanio.com>
- Loading branch information
1 parent
8fd931c
commit 7f3f4b4
Showing
42 changed files
with
11,281 additions
and
2,826 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.