From 4d49436bafd87e1ad0e32d8713ad4834c1c67bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Fri, 20 Sep 2024 16:22:23 +0300 Subject: [PATCH 1/3] fix: initialize pending block with an empty block --- miner/scroll_worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/scroll_worker.go b/miner/scroll_worker.go index 293c4398f2bc..1b466d793bd4 100644 --- a/miner/scroll_worker.go +++ b/miner/scroll_worker.go @@ -507,6 +507,8 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r reorging: reorging, reorgReason: reorgReason, } + + w.updateSnapshot() return nil } From 6f1e601bc2e6273ec799b9b4ab094cf864163027 Mon Sep 17 00:00:00 2001 From: omerfirmak Date: Fri, 20 Sep 2024 13:29:16 +0000 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20auto=20version=20bump=E2=80=89[bot?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- params/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/params/version.go b/params/version.go index ec3dfc492eef..dec887edfcb2 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 7 // Minor version component of the current release - VersionPatch = 20 // Patch version component of the current release + VersionPatch = 21 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string ) From 86f01b8f3c6d50c6af72c6c4e67c6948ba656283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Fri, 20 Sep 2024 16:56:52 +0300 Subject: [PATCH 3/3] add comment --- miner/scroll_worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/scroll_worker.go b/miner/scroll_worker.go index 1b466d793bd4..02f331bc200a 100644 --- a/miner/scroll_worker.go +++ b/miner/scroll_worker.go @@ -508,6 +508,8 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r reorgReason: reorgReason, } + // initiliaze pending block with an empty block to make sure we always have + // a pending block to serve RPC requests w.updateSnapshot() return nil }