Skip to content

Commit 3a9a162

Browse files
author
str4d
committed
Serialize msg_header using CBlockHeader instead of CBlock
1 parent 2e4d51a commit 3a9a162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcoin/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,11 @@ def __init__(self, protover=PROTO_VERSION):
336336
@classmethod
337337
def msg_deser(cls, f, protover=PROTO_VERSION):
338338
c = cls()
339-
c.headers = VectorSerializer.stream_deserialize(CBlock, f)
339+
c.headers = VectorSerializer.stream_deserialize(CBlockHeader, f)
340340
return c
341341

342342
def msg_ser(self, f):
343-
VectorSerializer.stream_serialize(CBlock, self.headers, f)
343+
VectorSerializer.stream_serialize(CBlockHeader, self.headers, f)
344344

345345
def __repr__(self):
346346
return "msg_headers(headers=%s)" % (repr(self.headers))

0 commit comments

Comments
 (0)