diff --git a/block/executor.go b/block/executor.go index 00eca0380..a83e0e8d4 100644 --- a/block/executor.go +++ b/block/executor.go @@ -261,7 +261,7 @@ func (e *Executor) ExecuteBlock(block *types.Block) (*tmstate.ABCIResponses, err Votes: nil, }, ByzantineValidators: nil, - //ConsensusMessages: block.Data.ConsensusMessages, + ConsensusMessages: block.Data.ConsensusMessages, }) if err != nil { return nil, err diff --git a/block/submit.go b/block/submit.go index 19f245dff..ee672108c 100644 --- a/block/submit.go +++ b/block/submit.go @@ -62,6 +62,13 @@ func SubmitLoopInner( // 'trigger': this thread is responsible for waking up the submitter when a new block arrives, and back-pressures the block production loop // if it gets too far ahead. for { + select { + case <-ctx.Done(): + return ctx.Err() + case n := <-bytesProduced: + pendingBytes.Add(uint64(n)) + logger.Debug("Added bytes produced to bytes pending submission counter.", "bytes added", n, "pending", pendingBytes.Load()) + } if maxBatchSkew < skewTime() { // too much stuff is pending submission // we block here until we get a progress nudge from the submitter thread @@ -70,14 +77,6 @@ func SubmitLoopInner( return ctx.Err() case <-trigger.C: } - } else { - select { - case <-ctx.Done(): - return ctx.Err() - case n := <-bytesProduced: - pendingBytes.Add(uint64(n)) - logger.Debug("Added bytes produced to bytes pending submission counter.", "bytes added", n, "pending", pendingBytes.Load()) - } } types.RollappPendingSubmissionsSkewBytes.Set(float64(pendingBytes.Load()))