We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84a7e14 + 37ebcb2 commit 28d7403Copy full SHA for 28d7403
protocol/txsubmission/messages.go
@@ -113,6 +113,20 @@ type MsgRequestTxs struct {
113
TxIds []TxId
114
}
115
116
+func (m *MsgRequestTxs) MarshalCBOR() ([]byte, error) {
117
+ items := []any{}
118
+ for _, txId := range m.TxIds {
119
+ items = append(items, txId)
120
+ }
121
+ tmp := []any{
122
+ MessageTypeRequestTxs,
123
+ cbor.IndefLengthList{
124
+ Items: items,
125
+ },
126
127
+ return cbor.Encode(tmp)
128
+}
129
+
130
func NewMsgRequestTxs(txIds []TxId) *MsgRequestTxs {
131
m := &MsgRequestTxs{
132
MessageBase: protocol.MessageBase{
0 commit comments