diff --git a/accountresolver/processor.go b/accountresolver/processor.go index 690dfa68..654461d6 100644 --- a/accountresolver/processor.go +++ b/accountresolver/processor.go @@ -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("trx", getTransactionHash(trx.Transaction.Signatures)), zap.String("account", base58.Encode(addressTableLookup.AccountKey)), zap.Int("count", len(accs)), zap.Bool("cached", cached)) + //p.logger.Debug("Resolve address table lookup", zap.String("trx", getTransactionHash(trx.Transaction.Signatures)), zap.String("account", base58.Encode(addressTableLookup.AccountKey)), zap.Int("count", len(accs)), zap.Bool("cached", cached)) trx.Transaction.Message.AccountKeys = append(trx.Transaction.Message.AccountKeys, accs.ToBytesArray()...) } totalDuration := time.Since(start) diff --git a/accountresolver/resolver.go b/accountresolver/resolver.go index 29b3e611..e38ddbf1 100644 --- a/accountresolver/resolver.go +++ b/accountresolver/resolver.go @@ -72,12 +72,12 @@ func (r *KVDBAccountsResolver) Extend(ctx context.Context, blockNum uint64, trxH func (r *KVDBAccountsResolver) Resolve(ctx context.Context, atBlockNum uint64, key Account) (Accounts, bool, error) { if cacheItems, ok := r.cache[key.base58()]; ok { - for _, cacheItem := range cacheItems { - r.logger.Debug("cached item", zap.Uint64("block_num", cacheItem.blockNum), zap.Uint64("at_block_num", atBlockNum), zap.String("key", key.base58())) - } + //for _, cacheItem := range cacheItems { + // r.logger.Debug("cached item", zap.Uint64("block_num", cacheItem.blockNum), zap.Uint64("at_block_num", atBlockNum), zap.String("key", key.base58())) + //} for _, cacheItem := range cacheItems { if cacheItem.blockNum <= atBlockNum { - r.logger.Debug("match cache item", zap.Uint64("block_num", cacheItem.blockNum), zap.Uint64("at_block_num", atBlockNum), zap.String("key", key.base58())) + //r.logger.Debug("match cache item", zap.Uint64("block_num", cacheItem.blockNum), zap.Uint64("at_block_num", atBlockNum), zap.String("key", key.base58())) return cacheItem.accounts, true, nil } } @@ -99,7 +99,7 @@ func (r *KVDBAccountsResolver) Resolve(ctx context.Context, atBlockNum uint64, k blockNum: keyBlockNum, accounts: accounts, }) - r.logger.Debug("caching item", zap.Uint64("key_block_num", keyBlockNum), zap.String("key", key.base58())) + //r.logger.Debug("caching item", zap.Uint64("key_block_num", keyBlockNum), zap.String("key", key.base58())) if keyBlockNum <= atBlockNum && resolvedAccounts == nil { resolvedAccounts = accounts