Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 498 Bytes

NOTES.md

File metadata and controls

33 lines (29 loc) · 498 Bytes

// potential summary event schema

{ type: 'call', params: { to: null, data: null, value: null, }, summary: [], result: null, error: null, }

{ type: 'storageGet', key: null, value: null, }

{ type: 'storagePut', key: null, value: null, }

function generateTxSummary(blockHash, txHash) { var blockchain = new BlockChain(blockDb) var trie = new StorageTrie(stateDb) blockchain.getBlock(blockHash, function(err, block){ trie.root = block.stateRoot }) }