Skip to content

Commit

Permalink
Adjust debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Jun 19, 2024
1 parent 90baed9 commit d11b662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions txcache/debugging.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
var debuggingPeriod = 6 * time.Second
var addressConverter, _ = pubkeyConverter.NewBech32PubkeyConverter(32, "erd")
var debuggingFolder = "txcache_debugging"
var debuggingFolderSizeLimitInBytes = uint64(5_000_000_000)
var debuggingFolderSizeLimitInBytes = uint64(10_000_000_000)
var numOldestFilesToRemove = 100

// MaxNumOfTxsToSelect defines the maximum number of transactions that should be selected from the cache
Expand Down Expand Up @@ -85,8 +85,8 @@ func (cache *TxCache) continuouslyDebug() {
log.Error("error limiting debugging files", "error", err)
}

// Simulate selection
cache.SelectTransactionsWithBandwidth(MaxNumOfTxsToSelect, NumTxPerSenderBatchForFillingMiniblock, MaxGasBandwidthPerBatchPerSender)
// // Simulate selection
// cache.SelectTransactionsWithBandwidth(MaxNumOfTxsToSelect, NumTxPerSenderBatchForFillingMiniblock, MaxGasBandwidthPerBatchPerSender)

time.Sleep(debuggingPeriod)
}
Expand Down
2 changes: 1 addition & 1 deletion txcache/txCache.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewTxCache(config ConfigSourceMe, txGasHandler TxGasHandler) (*TxCache, err
}

txCache.initSweepable()
// go txCache.continuouslyDebug()
go txCache.continuouslyDebug()

return txCache, nil
}
Expand Down

0 comments on commit d11b662

Please sign in to comment.