Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Releases: ethereumjs/ethereumjs-blockchain

v3.2.0 - Feature Release

13 Aug 13:13
8100e62
Compare
Choose a tag to compare
  • Added support for setting network and performing hardfork-specific validation by integrating with ethereumjs-common, PR #59
  • Added Blockchain.putHeader() and Blockchain.putHeaders() functions to provide header-chain functionality (needed by ethereumjs-client), PR #59
  • Fixed a bug with caching, PR #59
  • Fixed error propagation in Blockchain.iterator(), PR #60

v3.1.0 - Feature/Bugfix Release

24 May 08:02
d9d5fd5
Compare
Choose a tag to compare
  • New getLatestHeader() and getLatestBlock() methods for retrieving the latest header
    respectively full block in the canonical chain, PR #52
  • Fixed saveHeads() bug not storing the internal headHeader/headBlock header cursors
    to the DB, PR #52
  • Updated API docs

v3.0.0 - Feature Release (Geth DB Compatibilty)

18 May 09:13
c4fca13
Compare
Choose a tag to compare

This release comes with heavy internal changes bringing Geth DB compatibility to the
ethereumjs-blockchain library. For a full list of changes and associated discussion
see PR #47
(thanks to @vpulim for this amazing work!). To test iterating through your local Geth
chaindata DB you can run the example
in the README file.

This allows for various new use cases of the library in the areas of testing, simulation or
running actual blockchain data from a Geth node through the VM. The Geth data model used is
not compatible with the old format where chaindata and metadata have been stored separately on two leveldb
instances, so it is not possible to load an old DB with the new library version (if this causes
problems for you get in touch on GitHub or Gitter!).

Summary of the changes:

  • New unified constructor where detailsDB and blockDB are replaced by a single db reference
  • Deprecation of the getDetails() method now returning an empty object
  • td and height are not stored in the db as meta info but computed as needed
  • Block headers and body are stored under two separate keys
  • Changes have been made to properly rebuild the chain and number/hash mappings as a result of forks and deletions
  • A write-through cache has been added to reduce database reads
  • Similar to geth, we now defend against selfish mining vulnerability
  • Added many more tests to increase coverage to over 90%
  • Updated docs to reflect the API changes
  • Updated library dependencies

v2.0.2 - Bugfix Release

19 Sep 20:15
Compare
Choose a tag to compare

Tightened dependencies to prevent the 2.0.x version of the library to break after ethereumjs Byzantium library updates

v2.0.1 - Bugfix Release

14 Sep 19:20
Compare
Choose a tag to compare

Fixed severe bug adding blocks before blockchain init is complete