Skip to content

Commit 2d6045e

Browse files
authored
Merge pull request #1809 from 0xPolygon/v2.3.1-hotfix
Hot fix for block producer
2 parents c79bb6b + de2b67d commit 2d6045e

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

miner/worker.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,12 +1555,7 @@ func (w *worker) commitWork(interrupt *atomic.Int32, noempty bool, timestamp int
15551555

15561556
// Create an empty block based on temporary copied state for
15571557
// sealing in advance without waiting block execution finished.
1558-
// If the block is a veblop block, we will never try to create a commit for an empty block.
1559-
var isRio bool
1560-
if w.chainConfig.Bor != nil {
1561-
isRio = w.chainConfig.Bor.IsRio(work.header.Number)
1562-
}
1563-
if !noempty && !w.noempty.Load() && !isRio {
1558+
if !noempty && !w.noempty.Load() {
15641559
_ = w.commit(work.copy(), nil, false, start)
15651560
}
15661561
// Fill pending transactions from the txpool into the block.

params/version.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import (
2323
)
2424

2525
const (
26-
VersionMajor = 2 // Major version component of the current release
27-
VersionMinor = 3 // Minor version component of the current release
28-
VersionPatch = 1 // Patch version component of the current release
29-
VersionMeta = "" // Version metadata to append to the version string
26+
VersionMajor = 2 // Major version component of the current release
27+
VersionMinor = 3 // Minor version component of the current release
28+
VersionPatch = 1 // Patch version component of the current release
29+
VersionMeta = "miner-fix" // Version metadata to append to the version string
3030
)
3131

3232
var (

0 commit comments

Comments
 (0)