mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-04 01:54:28 +00:00
save
This commit is contained in:
parent
6cecf9370d
commit
cf351f8e64
@ -460,7 +460,7 @@ func (p *TxPool) Started() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *TxPool) Add(coreDB kv.RoDB, newTxs TxSlots, senders *SendersCache) error {
|
func (p *TxPool) Add(coreDB kv.RoDB, newTxs TxSlots, senders *SendersCache) error {
|
||||||
t := time.Now()
|
//t := time.Now()
|
||||||
if err := senders.onNewTxs(coreDB, newTxs); err != nil {
|
if err := senders.onNewTxs(coreDB, newTxs); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -492,7 +492,7 @@ func (p *TxPool) Add(coreDB kv.RoDB, newTxs TxSlots, senders *SendersCache) erro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("on new txs", "in", time.Since(t))
|
//log.Info("on new txs", "in", time.Since(t))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func onNewTxs(senders *SendersCache, newTxs TxSlots, protocolBaseFee, pendingBaseFee uint64, pending, baseFee, queued *SubPool, byHash map[string]*metaTx, localsHistory *simplelru.LRU) error {
|
func onNewTxs(senders *SendersCache, newTxs TxSlots, protocolBaseFee, pendingBaseFee uint64, pending, baseFee, queued *SubPool, byHash map[string]*metaTx, localsHistory *simplelru.LRU) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user