Small changes to helper method names/arg names

This commit is contained in:
Elizabeth Engelman
2019-09-25 16:36:08 -05:00
parent 2ff88de859
commit e1de3afdfc
2 changed files with 4 additions and 4 deletions
@@ -54,7 +54,7 @@ func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageD
errs <- decodeErr
}
accounts := getAccountDiffs(*stateDiff)
accounts := getAccountsFromDiff(*stateDiff)
logrus.Trace(fmt.Sprintf("iterating through %d accounts on stateDiff for block %d", len(accounts), stateDiff.BlockNumber))
for _, account := range accounts {
logrus.Trace(fmt.Sprintf("iterating through %d Storage values on account", len(account.Storage)))
@@ -66,7 +66,7 @@ func (fetcher GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.StorageD
}
}
func getAccountDiffs(stateDiff statediff.StateDiff) []statediff.AccountDiff {
func getAccountsFromDiff(stateDiff statediff.StateDiff) []statediff.AccountDiff {
accounts := append(stateDiff.CreatedAccounts, stateDiff.UpdatedAccounts...)
return append(accounts, stateDiff.DeletedAccounts...)
}