aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-03-14 22:58:14 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-03-24 06:02:44 +0800
commit5f92606be2f7ddc53c9449770f5c96e5741e5c57 (patch)
tree39da2f295595a10ad3bebab436e48d47f5f9fbb3
parent3601320ccd0b3db59d1f720c8a2a2383f5c8435f (diff)
downloaddexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.tar
dexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.tar.gz
dexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.tar.bz2
dexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.tar.lz
dexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.tar.xz
dexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.tar.zst
dexon-5f92606be2f7ddc53c9449770f5c96e5741e5c57.zip
eth/api: added root to the receipts
-rw-r--r--eth/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/eth/api.go b/eth/api.go
index fbaa280f4..6a6ab6f43 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -979,6 +979,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(txHash common.Hash) (ma
}
fields := map[string]interface{}{
+ "root": common.Bytes2Hex(receipt.PostState),
"blockHash": txBlock,
"blockNumber": rpc.NewHexNumber(blockIndex),
"transactionHash": txHash,
@@ -1637,6 +1638,7 @@ type structLogRes struct {
Op string `json:"op"`
Gas *big.Int `json:"gas"`
GasCost *big.Int `json:"gasCost"`
+ Depth int `json:"depth"`
Error error `json:"error"`
Stack []string `json:"stack"`
Memory []string `json:"memory"`
@@ -1661,6 +1663,7 @@ func formatLogs(structLogs []vm.StructLog) []structLogRes {
Op: trace.Op.String(),
Gas: trace.Gas,
GasCost: trace.GasCost,
+ Depth: trace.Depth,
Error: trace.Err,
Stack: make([]string, len(trace.Stack)),
Storage: make(map[string]string),