You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x/epoching/abci.go
+3-18Lines changed: 3 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -89,20 +89,20 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) ([]abci.ValidatorUpdate, e
89
89
queuedMsgs:=k.GetCurrentEpochMsgs(ctx)
90
90
// forward each msg in the msg queue to the right keeper
91
91
for_, msg:=rangequeuedMsgs {
92
-
res, err:=k.HandleQueuedMsg(ctx, msg)
92
+
_, errMsg:=k.HandleQueuedMsg(ctx, msg)
93
93
// skip this failed msg and emit and event signalling it
94
94
// we do not panic here as some users may wrap an invalid message
95
95
// (e.g., self-delegate coins more than its balance, wrong coding of addresses, ...)
96
96
// honest validators will have consistent execution results on the queued messages
97
-
iferr!=nil {
97
+
iferrMsg!=nil {
98
98
// emit an event signalling the failed execution
99
99
err:=sdkCtx.EventManager().EmitTypedEvent(
100
100
&types.EventHandleQueuedMsg{
101
101
EpochNumber: epoch.EpochNumber,
102
102
Height: msg.BlockHeight,
103
103
TxId: msg.TxId,
104
104
MsgId: msg.MsgId,
105
-
Error: err.Error(),
105
+
Error: errMsg.Error(),
106
106
},
107
107
)
108
108
iferr!=nil {
@@ -111,21 +111,6 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) ([]abci.ValidatorUpdate, e
111
111
// skip this failed msg
112
112
continue
113
113
}
114
-
// for each event, emit an wrapped event EventTypeHandleQueuedMsg, which attaches the original attributes plus the original event type, the epoch number, txid and msgid to the event here
0 commit comments