From 583a753e13dc46c6ba093f97e045825c7546a4f1 Mon Sep 17 00:00:00 2001
From: Alex Sharov <AskAlexSharov@gmail.com>
Date: Thu, 21 Oct 2021 16:01:34 +0700
Subject: [PATCH] start_pool_at_genesis_on_devnet (#2856)

---
 turbo/stages/stageloop.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/turbo/stages/stageloop.go b/turbo/stages/stageloop.go
index 2c96f28640..a700544174 100644
--- a/turbo/stages/stageloop.go
+++ b/turbo/stages/stageloop.go
@@ -209,6 +209,9 @@ func StageLoopStep(
 			}
 
 			pendingBaseFee := misc.CalcBaseFee(notifications.Accumulator.ChainConfig(), header)
+			if header.Number.Uint64() == 0 {
+				notifications.Accumulator.StartChange(0, header.Hash(), nil, false)
+			}
 			notifications.Accumulator.SendAndReset(ctx, notifications.StateChangesConsumer, pendingBaseFee.Uint64())
 
 			return stagedsync.NotifyNewHeaders(ctx, finishProgressBefore, head, sync.PrevUnwindPoint(), notifications.Events, tx)
-- 
GitLab