This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
Update ethereumjs-block to the latest version 🚀 #58
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.
Version 2.0.0 of ethereumjs-block was just published.
[ethereumjs-block](https://github.com/ethereumjs/ethereumjs-block)
The version 2.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of ethereumjs-block.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v2.0.0 - Chain and Hardfork SupportThis release introduces both support for different
chains
(mainnet
,ropsten
, ...)and
hardforks
up to the latest applied HF (byzantium
). Parameters and genesis valuesare provided by the new ethereumjs-common
library which also defines the set of supported chains and forks.
Changes in detail:
opts.chain
(default:mainnet
) andopts.hardfork
(default:
null
, block number-based behaviour), PR #44Common
class object can be provided directly with theopts.common
parameter,see API docs
#47, if no hardfork is set validation logic
is determined by block number in combination with the
chain
setchain
set (seeethereumjs-common
for supported chains)nonce
(empty buffer -><Buffer 00 00 00 00 00 00 00 00>
), PR #42Commits
The new version differs by 13 commits.
16aba3e
Merge pull request #48 from ethereumjs/new-release-v200
c415b35
Bumped version to v2.0.0, added CHANGELOG entry
6eed134
Merge pull request #47 from ethereumjs/multiple-hardfork-support
4451ac1
Validate blocks correctly for all known hardforks
3159849
Merge pull request #44 from ethereumjs/add-support-for-different-chains
d21ce6c
Added additional tests for header setGenesisParams() function and difficulty calculation
71c776d
Added setGenesisParams() method for Block header class
cdf94c6
Also allow passing Common object in constructor, added hardfork option, limit difficulty calls to byzantium
2c10267
Added additional tests for ropsten genesis parameters
7e30eeb
Updated build:docs command to also include BlockHeader class, rebuild docs
109007b
Use new ethereumjs-common library, added chain as an optional constructor option for Block and BlockHeader classes
5450ad9
Merge pull request #42 from NoteGio/full-size-nonce
4833c54
Nonce should never be 0 bytes
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴