@@ -207,9 +207,8 @@ type BlockChain struct {
207207 processor Processor // Block transaction processor interface
208208 vmConfig vm.Config
209209
210- shouldPreserve func (* types.Block ) bool // Function used to determine whether should preserve the given block.
211- terminateInsert func (common.Hash , uint64 ) bool // Testing hook used to terminate ancient receipt chain insertion.
212- writeLegacyJournal bool // Testing flag used to flush the snapshot journal in legacy format.
210+ shouldPreserve func (* types.Block ) bool // Function used to determine whether should preserve the given block.
211+ terminateInsert func (common.Hash , uint64 ) bool // Testing hook used to terminate ancient receipt chain insertion.
213212}
214213
215214// NewBlockChain returns a fully initialised block chain using information
@@ -1002,14 +1001,8 @@ func (bc *BlockChain) Stop() {
10021001 var snapBase common.Hash
10031002 if bc .snaps != nil {
10041003 var err error
1005- if bc .writeLegacyJournal {
1006- if snapBase , err = bc .snaps .LegacyJournal (bc .CurrentBlock ().Root ()); err != nil {
1007- log .Error ("Failed to journal state snapshot" , "err" , err )
1008- }
1009- } else {
1010- if snapBase , err = bc .snaps .Journal (bc .CurrentBlock ().Root ()); err != nil {
1011- log .Error ("Failed to journal state snapshot" , "err" , err )
1012- }
1004+ if snapBase , err = bc .snaps .Journal (bc .CurrentBlock ().Root ()); err != nil {
1005+ log .Error ("Failed to journal state snapshot" , "err" , err )
10131006 }
10141007 }
10151008 // Ensure the state of a recent block is also stored to disk before exiting.
0 commit comments