mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
Merge pull request #885 from JukLee0ira/rm_duplicate_func
core: remove the duplicate function `getProcInterrupt()`
This commit is contained in:
commit
7c9df61bd9
1 changed files with 1 additions and 5 deletions
|
|
@ -258,7 +258,7 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, chainConfig *par
|
||||||
bc.SetProcessor(NewStateProcessor(chainConfig, bc, engine))
|
bc.SetProcessor(NewStateProcessor(chainConfig, bc, engine))
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
bc.hc, err = NewHeaderChain(db, chainConfig, engine, bc.getProcInterrupt)
|
bc.hc, err = NewHeaderChain(db, chainConfig, engine, bc.insertStopped)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
@ -311,10 +311,6 @@ func NewBlockChainEx(db ethdb.Database, XDCxDb ethdb.XDCxDatabase, cacheConfig *
|
||||||
return blockchain, nil
|
return blockchain, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bc *BlockChain) getProcInterrupt() bool {
|
|
||||||
return atomic.LoadInt32(&bc.procInterrupt) == 1
|
|
||||||
}
|
|
||||||
|
|
||||||
func (bc *BlockChain) addXDCxDb(XDCxDb ethdb.XDCxDatabase) {
|
func (bc *BlockChain) addXDCxDb(XDCxDb ethdb.XDCxDatabase) {
|
||||||
bc.XDCxDb = XDCxDb
|
bc.XDCxDb = XDCxDb
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue