Skip to content

Commit 4ef4951

Browse files
authored
consensus/bor: log err when commit span fails (#1413)
* consensus/bor: log err in commit span * consensus/bor: fix lint
1 parent 3a3e619 commit 4ef4951

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

consensus/bor/statefull/processor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ func ApplyMessage(
100100
log.Error("message execution failed on contract", "msgData", msg.Data)
101101
}
102102

103+
// If there's error committing span, log it here. It won't be reported before because the return value is empty.
104+
if bytes.Equal(msg.To().Bytes(), validatorContract.Bytes()) && err != nil {
105+
log.Error("message execution failed on contract", "err", err)
106+
}
107+
103108
// Update the state with pending changes
104109
if err != nil {
105110
state.Finalise(true)

0 commit comments

Comments
 (0)