Skip to content

Commit

Permalink
remove duplicate log fields; add some function comments to improve re…
Browse files Browse the repository at this point in the history
…adibality
  • Loading branch information
ws4charlie committed Nov 20, 2024
1 parent a3a09c8 commit b003410
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zetaclient/chains/bitcoin/observer/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,15 @@ func FilterAndParseIncomingTx(
}

// GetInboundVoteFromBtcEvent converts a BTCInboundEvent to a MsgVoteInbound to enable voting on the inbound on zetacore
//
// Returns:
// - a valid MsgVoteInbound message, or
// - nil if no valid message can be created for whatever reasons:
// invalid data, not processable, invalid amount, etc.
func (ob *Observer) GetInboundVoteFromBtcEvent(event *BTCInboundEvent) *crosschaintypes.MsgVoteInbound {
// prepare logger fields
lf := map[string]any{
logs.FieldModule: logs.ModNameInbound,
logs.FieldMethod: "GetInboundVoteFromBtcEvent",
logs.FieldChain: ob.Chain().ChainId,
logs.FieldTx: event.TxHash,
}

Expand Down

0 comments on commit b003410

Please sign in to comment.