Skip to content

Commit 73a9bad

Browse files
committed
small fix
1 parent ffca555 commit 73a9bad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ledger/evalIndexer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ func EvalForIndexer(il indexerLedgerForEval, block *bookkeeping.Block, proto con
172172
ilc, block.BlockHeader, proto, len(block.Payset), false, false)
173173
if err != nil {
174174
return ledgercore.StateDelta{}, []transactions.SignedTxnInBlock{},
175-
fmt.Errorf("Eval() err: %w", err)
175+
fmt.Errorf("EvalForIndexer() err: %w", err)
176176
}
177177

178178
// Preload most needed accounts.
179179
{
180180
accountDataMap, err := il.LookupWithoutRewards(getBlockAddresses(block))
181181
if err != nil {
182182
return ledgercore.StateDelta{}, []transactions.SignedTxnInBlock{},
183-
fmt.Errorf("Eval() err: %w", err)
183+
fmt.Errorf("EvalForIndexer() err: %w", err)
184184
}
185185
base := eval.state.lookupParent.(*roundCowBase)
186186
for address, accountData := range accountDataMap {
@@ -195,22 +195,22 @@ func EvalForIndexer(il indexerLedgerForEval, block *bookkeeping.Block, proto con
195195
paysetgroups, err := block.DecodePaysetGroups()
196196
if err != nil {
197197
return ledgercore.StateDelta{}, []transactions.SignedTxnInBlock{},
198-
fmt.Errorf("Eval() err: %w", err)
198+
fmt.Errorf("EvalForIndexer() err: %w", err)
199199
}
200200

201201
for _, group := range paysetgroups {
202202
err = eval.TransactionGroup(group)
203203
if err != nil {
204204
return ledgercore.StateDelta{}, []transactions.SignedTxnInBlock{},
205-
fmt.Errorf("Eval() err: %w", err)
205+
fmt.Errorf("EvalForIndexer() err: %w", err)
206206
}
207207
}
208208

209209
// Finally, process any pending end-of-block state changes.
210210
err = eval.endOfBlock()
211211
if err != nil {
212212
return ledgercore.StateDelta{}, []transactions.SignedTxnInBlock{},
213-
fmt.Errorf("Eval() err: %w", err)
213+
fmt.Errorf("EvalForIndexer() err: %w", err)
214214
}
215215

216216
return eval.state.deltas(), eval.block.Payset, nil

0 commit comments

Comments
 (0)