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 288dc68 + 9601825 commit 4430d8fCopy full SHA for 4430d8f
protocol/blockfetch/messages.go
@@ -128,6 +128,17 @@ func NewMsgBlock(wrappedBlock []byte) *MsgBlock {
128
return m
129
}
130
131
+func (m MsgBlock) MarshalCBOR() ([]byte, error) {
132
+ tmp := []any{
133
+ m.MessageType,
134
+ cbor.Tag{
135
+ Number: cbor.CborTagCbor,
136
+ Content: m.WrappedBlock,
137
+ },
138
+ }
139
+ return cbor.Encode(&tmp)
140
+}
141
+
142
type MsgBatchDone struct {
143
protocol.MessageBase
144
0 commit comments