Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Jun 25, 2018

Version 2.0.0 of ethereumjs-block was just published.

Dependency [ethereumjs-block](https://github.com/ethereumjs/ethereumjs-block)
Current Version 1.7.1
Type dependency

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 Support

This release introduces both support for different chains (mainnet, ropsten, ...)
and hardforks up to the latest applied HF (byzantium). Parameters and genesis values
are provided by the new ethereumjs-common
library which also defines the set of supported chains and forks.

Changes in detail:

  • New initialization parameters opts.chain (default: mainnet) and opts.hardfork
    (default: null, block number-based behaviour), PR #44
  • Alternatively a Common class object can be provided directly with the opts.common parameter,
    see API docs
  • Correct block validation for all know hardforks, PR
    #47, if no hardfork is set validation logic
    is determined by block number in combination with the chain set
  • Genesis block initialization depending on the chain set (see ethereumjs-common for supported chains)
  • Extensive test additions to cover the newly introduced capabilities and changes
  • Fix default value for nonce (empty buffer -> <Buffer 00 00 00 00 00 00 00 00>), PR #42
Commits

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 🌴

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.84% when pulling eee1819 on greenkeeper/ethereumjs-block-2.0.0 into d9d5fd5 on master.

@axic
Copy link
Member

axic commented Jul 28, 2018

@holgerd77 does this needs to be addressed? I think blockchain should support block 2.x

@vpulim
Copy link
Contributor

vpulim commented Jul 28, 2018

See #59 which uses block 2.0.0. However, there is a bug in block 2.0.0 Header.validate() that needs to be fixed first (this._common needs to be changed to self._common)

@axic
Copy link
Member

axic commented Jul 28, 2018

Great! Lets close this PR then.

@axic axic closed this Jul 28, 2018
@axic axic deleted the greenkeeper/ethereumjs-block-2.0.0 branch July 28, 2018 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants