How to use the merkle-patricia-tree/ function in merkle-patricia-tree

To help you get started, we’ve selected a few merkle-patricia-tree examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trufflesuite / ganache-core / lib / utils / forkedstoragetrie.js View on Github external
function ForkedStorageBaseTrie(db, root, options) {, db, root);
  this._deleted = Sublevel(this.db).sublevel("deleted");

  this.options = options;
  this.address = options.address;
  this.forkBlockNumber = options.forkBlockNumber;
  this.blockchain = options.blockchain;
  this.fork = options.fork;
  this.web3 = new Web3(this.fork);