diff --git a/api/service/stagedstreamsync/stage_bodies.go b/api/service/stagedstreamsync/stage_bodies.go index 401a8bc6c..6b2fb65ed 100644 --- a/api/service/stagedstreamsync/stage_bodies.go +++ b/api/service/stagedstreamsync/stage_bodies.go @@ -21,14 +21,14 @@ type StageBodies struct { } type StageBodiesCfg struct { - bc core.BlockChain - db kv.RwDB - blockDBs []kv.RwDB - concurrency int - protocol syncProtocol - isBeacon bool + bc core.BlockChain + db kv.RwDB + blockDBs []kv.RwDB + concurrency int + protocol syncProtocol + isBeacon bool extractReceiptHashes bool - logProgress bool + logProgress bool } func NewStageBodies(cfg StageBodiesCfg) *StageBodies { @@ -39,14 +39,14 @@ func NewStageBodies(cfg StageBodiesCfg) *StageBodies { func NewStageBodiesCfg(bc core.BlockChain, db kv.RwDB, blockDBs []kv.RwDB, concurrency int, protocol syncProtocol, isBeacon bool, extractReceiptHashes bool, logProgress bool) StageBodiesCfg { return StageBodiesCfg{ - bc: bc, - db: db, - blockDBs: blockDBs, - concurrency: concurrency, - protocol: protocol, - isBeacon: isBeacon, + bc: bc, + db: db, + blockDBs: blockDBs, + concurrency: concurrency, + protocol: protocol, + isBeacon: isBeacon, extractReceiptHashes: extractReceiptHashes, - logProgress: logProgress, + logProgress: logProgress, } } diff --git a/core/blockchain_impl.go b/core/blockchain_impl.go index 8d9de8dbc..efb26df07 100644 --- a/core/blockchain_impl.go +++ b/core/blockchain_impl.go @@ -1659,7 +1659,7 @@ func (bc *BlockChainImpl) insertChainWithBlockExecution(chain types.Blocks, veri return 0, events, coalescedLogs, nil } -//receiptChain []types.Receipts, +// insertChainWithoutBlockExecution adds a set of blocks to blockchain without adding states func (bc *BlockChainImpl) insertChainWithoutBlockExecution(chain types.Blocks, verifyHeaders bool) (int, []interface{}, []*types.Log, error) { // Sanity check that we have something meaningful to import if len(chain) == 0 {