goimports staged sync files

pull/4465/head
“GheisMohammadi” 1 year ago
parent 591f223e84
commit 7006e1568d
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 6
      api/service/stagedstreamsync/stage_receipts.go
  2. 2
      api/service/stagedstreamsync/stage_state.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)

@ -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 {

Loading…
Cancel
Save