mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
Apply to parent
This commit is contained in:
parent
0c27c5eb7f
commit
2667cb3ab6
@ -123,8 +123,7 @@ func (sm *StateManager) ApplyTransaction(state *State, block *Block, tx *Transac
|
|||||||
} else {
|
} else {
|
||||||
err := sm.Ethereum.TxPool().ProcessTransaction(tx, block, false)
|
err := sm.Ethereum.TxPool().ProcessTransaction(tx, block, false)
|
||||||
contract := state.GetStateObject(tx.Recipient)
|
contract := state.GetStateObject(tx.Recipient)
|
||||||
ethutil.Config.Log.Debugf("contract recip %x\n", tx.Recipient)
|
if err == nil && contract != nil && len(contract.Script()) > 0 {
|
||||||
if err == nil && len(contract.Script()) > 0 {
|
|
||||||
sm.EvalScript(state, contract.Script(), contract, tx, block)
|
sm.EvalScript(state, contract.Script(), contract, tx, block)
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
ethutil.Config.Log.Infoln("[STATE] process:", err)
|
ethutil.Config.Log.Infoln("[STATE] process:", err)
|
||||||
@ -168,7 +167,7 @@ func (sm *StateManager) ProcessBlock(state *State, parent, block *Block, dontRea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process the transactions on to current block
|
// Process the transactions on to current block
|
||||||
sm.ApplyTransactions(state, sm.bc.CurrentBlock, block.Transactions())
|
sm.ApplyTransactions(state, parent, block.Transactions())
|
||||||
|
|
||||||
// Block validation
|
// Block validation
|
||||||
if err := sm.ValidateBlock(block); err != nil {
|
if err := sm.ValidateBlock(block); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user