Skip to content

Commit

Permalink
add sender when unmarshalling processed msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Nov 18, 2024
1 parent 227785f commit a0131cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/host/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func (h *Host) endBlockHandler(_ context.Context, args nodetypes.EndBlockArgs) e

func (h *Host) txHandler(_ context.Context, args nodetypes.TxHandlerArgs) error {
if args.BlockHeight == args.LatestHeight && args.TxIndex == 0 {
if msg, sender, err := h.oracleTxHandler(args.BlockHeight, args.Tx); err != nil {
msg, sender, err := h.oracleTxHandler(args.BlockHeight, args.Tx)
if err != nil {
return err
} else if msg != nil {
h.AppendProcessedMsgs(btypes.ProcessedMsgs{
Expand Down
1 change: 1 addition & 0 deletions node/broadcaster/types/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (p *ProcessedMsgs) UnmarshalInterfaceJSON(cdc codec.Codec, data []byte) err
return err
}

p.Sender = pms.Sender
p.Timestamp = pms.Timestamp
p.Save = pms.Save

Expand Down

0 comments on commit a0131cb

Please sign in to comment.