core: fixed race condition in the transaction pool
Removed `Stop/Start` mechanism from the transaction pool.
This commit is contained in:
@ -466,8 +466,6 @@ func (s *Ethereum) Start() error {
|
||||
s.StartAutoDAG()
|
||||
}
|
||||
|
||||
// Start services
|
||||
go s.txPool.Start()
|
||||
s.protocolManager.Start()
|
||||
|
||||
if s.whisper != nil {
|
||||
@ -513,9 +511,6 @@ func (s *Ethereum) StartForTest() {
|
||||
ClientString: s.net.Name,
|
||||
ProtocolVersion: ProtocolVersion,
|
||||
})
|
||||
|
||||
// Start services
|
||||
s.txPool.Start()
|
||||
}
|
||||
|
||||
// AddPeer connects to the given node and maintains the connection until the
|
||||
|
Reference in New Issue
Block a user