Skip to content

Commit

Permalink
register json CommitMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-mena committed Jan 11, 2025
1 parent 5293186 commit d0de97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/cometbft/consensus/v1/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (m *Message) Unwrap() (proto.Message, error) {

case *Message_Vote:
return m.GetVote(), nil

case *Message_Commit:
return m.GetCommit(), nil

Expand Down
1 change: 1 addition & 0 deletions internal/consensus/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,7 @@ func init() {
cmtjson.RegisterType(&ProposalPOLMessage{}, "tendermint/ProposalPOL")
cmtjson.RegisterType(&BlockPartMessage{}, "tendermint/BlockPart")
cmtjson.RegisterType(&VoteMessage{}, "tendermint/Vote")
cmtjson.RegisterType(&CommitMessage{}, "tendermint/Commit")
cmtjson.RegisterType(&HasVoteMessage{}, "tendermint/HasVote")
cmtjson.RegisterType(&HasProposalBlockPartMessage{}, "tendermint/HasProposalBlockPart")
cmtjson.RegisterType(&VoteSetMaj23Message{}, "tendermint/VoteSetMaj23")
Expand Down

0 comments on commit d0de97d

Please sign in to comment.