Skip to content

Commit 9ee6976

Browse files
0xmountaintopHAOYUatHZ
and
HAOYUatHZ
authored
fix(miner,rpc): fix updateSnapshot (#916)
* fix `updateSnapshot` * fix * chore: auto version bump [bot] --------- Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
1 parent de0385e commit 9ee6976

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

miner/scroll_worker.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,13 @@ func (w *worker) handlePipelineResult(res *pipeline.Result) error {
541541
w.currentPipeline.Release()
542542
w.currentPipeline = nil
543543

544+
if res.FinalBlock != nil {
545+
w.updateSnapshot(res.FinalBlock)
546+
}
547+
544548
// Rows being nil without an OverflowingTx means that block didn't go thru CCC,
545549
// which means that we are not the sequencer. Do not attempt to commit.
546550
if res.Rows == nil && res.OverflowingTx == nil {
547-
if res.FinalBlock != nil {
548-
w.updateSnapshot(res.FinalBlock)
549-
}
550551
return nil
551552
}
552553

params/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 5 // Major version component of the current release
2626
VersionMinor = 5 // Minor version component of the current release
27-
VersionPatch = 14 // Patch version component of the current release
27+
VersionPatch = 15 // Patch version component of the current release
2828
VersionMeta = "mainnet" // Version metadata to append to the version string
2929
)
3030

0 commit comments

Comments
 (0)