From 7006e1568dca7128954cda88d4fc526f577b7704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CGheisMohammadi=E2=80=9D?= <36589218+GheisMohammadi@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:22:23 +0800 Subject: [PATCH] goimports staged sync files --- api/service/stagedstreamsync/stage_receipts.go | 6 +++--- api/service/stagedstreamsync/stage_state.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/service/stagedstreamsync/stage_receipts.go b/api/service/stagedstreamsync/stage_receipts.go index 71a46e0d2..692222c6c 100644 --- a/api/service/stagedstreamsync/stage_receipts.go +++ b/api/service/stagedstreamsync/stage_receipts.go @@ -149,9 +149,9 @@ func (b *StageReceipts) runReceiptWorkerLoop(ctx context.Context, rdm *receiptDo var hashes []common.Hash for _, bn := range batch { /* - // TODO: check if we can directly use bc rather than receipt hashes map - header := b.configs.bc.GetHeaderByNumber(bn) - hashes = append(hashes, header.ReceiptHash()) + // TODO: check if we can directly use bc rather than receipt hashes map + header := b.configs.bc.GetHeaderByNumber(bn) + hashes = append(hashes, header.ReceiptHash()) */ receiptHash := s.state.currentCycle.ReceiptHashes[bn] hashes = append(hashes, receiptHash) diff --git a/api/service/stagedstreamsync/stage_state.go b/api/service/stagedstreamsync/stage_state.go index ea4775d1f..e5cab702f 100644 --- a/api/service/stagedstreamsync/stage_state.go +++ b/api/service/stagedstreamsync/stage_state.go @@ -176,7 +176,7 @@ func (stg *StageStates) Exec(ctx context.Context, firstCycle bool, invalidBlockR // TODO: only for fast sync // add receipt hash for next stage - s.state.currentCycle.ReceiptHashes[block.NumberU64()]=block.Header().ReceiptHash() + s.state.currentCycle.ReceiptHashes[block.NumberU64()] = block.Header().ReceiptHash() if invalidBlockRevert { if s.state.invalidBlock.Number == i {