function RemoteTrie(connectFn, opts) { StateTrie.call(this, opts) remoteInterface(this) secureInterface(this) // optional connection-generating fn this._connectFn = connectFn this.connect() }
function ForkedStorageTrie(db, root, options) { MerklePatriciaTree.call(this, db, root); this.address = options.address; this.fork = options.fork; this.fork_block_number = options.fork_block_number; this.blockchain = options.blockchain; this.web3 = new Web3(); this.web3.setProvider(this.fork); this.checkpoints = []; }
function HostTrie(opts) { StateTrie.call(this, opts) hostInterface(this) }