mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
consensus/bor: log err when commit span fails (#1413)
* consensus/bor: log err in commit span * consensus/bor: fix lint
This commit is contained in:
parent
3a3e619d4c
commit
4ef49519f0
1 changed files with 5 additions and 0 deletions
|
|
@ -100,6 +100,11 @@ func ApplyMessage(
|
||||||
log.Error("message execution failed on contract", "msgData", msg.Data)
|
log.Error("message execution failed on contract", "msgData", msg.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If there's error committing span, log it here. It won't be reported before because the return value is empty.
|
||||||
|
if bytes.Equal(msg.To().Bytes(), validatorContract.Bytes()) && err != nil {
|
||||||
|
log.Error("message execution failed on contract", "err", err)
|
||||||
|
}
|
||||||
|
|
||||||
// Update the state with pending changes
|
// Update the state with pending changes
|
||||||
if err != nil {
|
if err != nil {
|
||||||
state.Finalise(true)
|
state.Finalise(true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue