mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
Error logging on tx processing
This commit is contained in:
parent
507fc7b9d1
commit
ce07d9bb4c
@ -92,12 +92,13 @@ func (bm *BlockManager) WatchAddr(addr []byte) *AddressState {
|
||||
}
|
||||
|
||||
func (bm *BlockManager) GetAddrState(addr []byte) *AddressState {
|
||||
addrState := bm.addrStateStore.Get(addr)
|
||||
if addrState == nil {
|
||||
addrState = bm.WatchAddr(addr)
|
||||
account := bm.addrStateStore.Get(addr)
|
||||
if account == nil {
|
||||
a := bm.bc.CurrentBlock.GetAddr(addr)
|
||||
account = &AddressState{Nonce: a.Nonce, Account: a}
|
||||
}
|
||||
|
||||
return addrState
|
||||
return account
|
||||
}
|
||||
|
||||
func (bm *BlockManager) BlockChain() *BlockChain {
|
||||
@ -114,7 +115,10 @@ func (bm *BlockManager) ApplyTransactions(block *Block, txs []*Transaction) {
|
||||
if contract := block.GetContract(tx.Recipient); contract != nil {
|
||||
bm.ProcessContract(contract, tx, block)
|
||||
} else {
|
||||
bm.TransactionPool.ProcessTransaction(tx, block)
|
||||
err := bm.TransactionPool.ProcessTransaction(tx, block)
|
||||
if err != nil {
|
||||
ethutil.Config.Log.Infoln("[BMGR]", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user