Skip to content

Commit

Permalink
Best version yet
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Jul 21, 2024
1 parent 8af5cb8 commit 8ebbabf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,13 @@ func (a *App) GetHistory(addr string, first, pageSize int) []TransactionEx {
continue
}
txEx := NewTransactionEx(a, tx)
// if strings.HasPrefix(txEx.ToName, "0x") {
addrToHistoryMap[address] = append(addrToHistoryMap[address], *txEx)
if len(addrToHistoryMap[address])%pageSize == 0 {
a.SendMessage(address, Progress, &ProgressMsg{
Have: int64(len(addrToHistoryMap[address])),
Want: nItems,
})
}
// }
case err := <-opts.RenderCtx.ErrorChan:
a.SendMessage(address, Error, err.Error())
default:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ replace (
require (
git.sr.ht/~sbinet/gg v0.5.0
github.com/TrueBlocks/trueblocks-core/sdk/v3 v3.0.0-20240718213142-3cffd1bf17f0
github.com/TrueBlocks/trueblocks-core/src/apps/chifra v0.0.0-20240718044519-2c9304344dd6
github.com/TrueBlocks/trueblocks-core/src/apps/chifra v0.0.0-20240718213142-3cffd1bf17f0
github.com/joho/godotenv v1.5.1
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/wailsapp/wails/v2 v2.8.2
Expand Down

0 comments on commit 8ebbabf

Please sign in to comment.