From 6672ecf547cf5e41d25018b5b20abd5104881bbf Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman Date: Wed, 4 Sep 2019 09:00:33 -0500 Subject: [PATCH] Add trace debugging after parsing statediff --- libraries/shared/fetcher/geth_rpc_storage_fetcher.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/shared/fetcher/geth_rpc_storage_fetcher.go b/libraries/shared/fetcher/geth_rpc_storage_fetcher.go index a6de437a..96e94da3 100644 --- a/libraries/shared/fetcher/geth_rpc_storage_fetcher.go +++ b/libraries/shared/fetcher/geth_rpc_storage_fetcher.go @@ -59,8 +59,12 @@ func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageD for _, account := range accounts { logrus.Trace(fmt.Sprintf("iterating through %d Storage values on account", len(account.Storage))) for _, storage := range account.Storage { - logrus.Trace("adding storage diff to out channel") diff, formatErr := utils.FromGethStateDiff(account, stateDiff, storage) + logrus.Trace("adding storage diff to out channel", + "keccak of address: ", diff.KeccakOfContractAddress.Hex(), + "block height: ", diff.BlockHeight, + "storage key: ", diff.StorageKey.Hex(), + "storage value: ", diff.StorageValue.Hex()) if formatErr != nil { errs <- formatErr }