diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-09-27 18:13:13 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-09-28 16:27:31 +0800 |
commit | 710435b51b97b4c688b70bda35ab9d1aa704a988 (patch) | |
tree | 154eb1fc771c9d809dc537a5ae45418263ad0770 /internal/ethapi | |
parent | cd791bd855b55b95afc8a5c8f56b8bf67863d099 (diff) | |
download | go-tangerine-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.gz go-tangerine-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.zst go-tangerine-710435b51b97b4c688b70bda35ab9d1aa704a988.zip |
core, eth, trie: reuse trie journals in all our code
Diffstat (limited to 'internal/ethapi')
-rw-r--r-- | internal/ethapi/api.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 6480085dd..9a97be25f 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -454,6 +454,8 @@ type CallArgs struct { } func (s *PublicBlockChainAPI) doCall(ctx context.Context, args CallArgs, blockNr rpc.BlockNumber) (string, *big.Int, error) { + defer func(start time.Time) { glog.V(logger.Debug).Infof("call took %v", time.Since(start)) }(time.Now()) + state, header, err := s.b.StateAndHeaderByNumber(blockNr) if state == nil || err != nil { return "0x", common.Big0, err |