Skip to content

Commit

Permalink
Merge pull request #3454 from TrueBlocks/fix/improved-slurp
Browse files Browse the repository at this point in the history
Improved logging for chifra slurp
  • Loading branch information
tjayrush authored Dec 13, 2023
2 parents f512777 + 11ebeec commit ff121c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apps/chifra/internal/slurp/handle_appearances.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/output"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/rpc"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/types"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/utils"
)

func (opts *SlurpOptions) HandleAppearances() error {
Expand All @@ -35,6 +36,7 @@ func (opts *SlurpOptions) HandleAppearances() error {
Type: logger.Expanding,
Enabled: !testMode,
Total: 250, // estimate since we have no idea how many there are
Prefix: fmt.Sprintf("%s %s", utils.FormattedHash(false, addr), tt),
})

for !done {
Expand Down
2 changes: 2 additions & 0 deletions src/apps/chifra/internal/slurp/handle_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/output"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/rpc"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/types"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/utils"
)

func (opts *SlurpOptions) HandleShow() error {
Expand Down Expand Up @@ -39,6 +40,7 @@ func (opts *SlurpOptions) HandleShow() error {
Type: logger.Expanding,
Enabled: !testMode,
Total: 250, // estimate since we have no idea how many there are
Prefix: fmt.Sprintf("%s %s", utils.FormattedHash(false, addr), tt),
})
for !done {
txs, nFetched, err := opts.Conn.GetESTransactionByAddress(opts.Globals.Chain, addr, tt, &paginator)
Expand Down

0 comments on commit ff121c0

Please sign in to comment.