This commit is contained in:
alex.sharov 2023-04-19 12:27:36 +07:00
parent ff3e6e629b
commit b8d974028d

View File

@ -11,6 +11,7 @@ import (
"github.com/ledgerwatch/erigon/core/types" "github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/core/types/accounts" "github.com/ledgerwatch/erigon/core/types/accounts"
"github.com/ledgerwatch/erigon/core/vm/evmtypes" "github.com/ledgerwatch/erigon/core/vm/evmtypes"
"github.com/ledgerwatch/log/v3"
) )
// ReadWriteSet contains ReadSet, WriteSet and BalanceIncrease of a transaction, // ReadWriteSet contains ReadSet, WriteSet and BalanceIncrease of a transaction,
@ -157,6 +158,7 @@ func (q *QueueWithRetry) ReTry(t *TxTask) {
// Next - blocks until new task available // Next - blocks until new task available
func (q *QueueWithRetry) Next(ctx context.Context) (*TxTask, bool) { func (q *QueueWithRetry) Next(ctx context.Context) (*TxTask, bool) {
log.Warn("[dbg] before next", "newTasks", q.NewTasksLen(), "retires", q.RetriesLen())
task, ok := q.popNoWait() task, ok := q.popNoWait()
if ok { if ok {
return task, true return task, true