Skip to content

Commit

Permalink
more logs ++ ++
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Sep 21, 2023
1 parent 9e73f77 commit 21fa535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion accountresolver/bundlerreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (r *BundleReader) PushBlock(block *bstream.Block) error {
}

func (r *BundleReader) Read(p []byte) (bytesRead int, err error) {
r.logger.Debug("read called", zap.Duration("since_last_read", time.Since(r.lastRead)))
//r.logger.Debug("read called", zap.Duration("since_last_read", time.Since(r.lastRead)))
if r.readBuffer == nil {
if err := r.fillBuffer(); err != nil {
return 0, err
Expand Down
2 changes: 1 addition & 1 deletion accountresolver/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (p *Processor) applyTableLookup(ctx context.Context, blockNum uint64, trx *
if cached {
p.stats.cacheHit += 1
}
p.logger.Debug("Resolve address table lookup", zap.String("account", base58.Encode(addressTableLookup.AccountKey)), zap.Int("count", len(accs)))
p.logger.Debug("Resolve address table lookup", zap.String("trx", base58.Encode(getTransactionHash(trx.Transaction.Signatures))), zap.String("account", base58.Encode(addressTableLookup.AccountKey)), zap.Int("count", len(accs)))

Check failure on line 283 in accountresolver/processor.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

cannot use getTransactionHash(trx.Transaction.Signatures) (value of type string) as []byte value in argument to base58.Encode
trx.Transaction.Message.AccountKeys = append(trx.Transaction.Message.AccountKeys, accs.ToBytesArray()...)
}
totalDuration := time.Since(start)
Expand Down

0 comments on commit 21fa535

Please sign in to comment.