Skip to content

Commit

Permalink
Fixes a bug with chifra export wherein staging data was being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Dec 17, 2024
1 parent cfb5e6e commit baa1bd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/apps/chifra/pkg/monitor/monitor_freshen.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,11 @@ func getAppearances(addrStr string, lines []string, lastVisited uint32, found in
if !strings.HasPrefix(lines[idx], addrStr) {
break
}
strippedBn := strings.TrimLeft(lines[idx][startOfBlockNum:endOfBlockNum], "0")
strippedTxId := strings.TrimLeft(lines[idx][startOfTxId:endOfTxId], "0")
r := types.AppRecord{
BlockNumber: uint32(base.MustParseUint64(lines[idx][startOfBlockNum:endOfBlockNum])),
TransactionIndex: uint32(base.MustParseUint64(lines[idx][startOfTxId:endOfTxId])),
BlockNumber: uint32(base.MustParseUint64(strippedBn)),
TransactionIndex: uint32(base.MustParseUint64(strippedTxId)),
}
if r.BlockNumber > lastVisited {
results = append(results, r)
Expand Down

0 comments on commit baa1bd6

Please sign in to comment.