MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / deserialize

Method deserialize

test/functional/test_framework/messages.py:1286–1290  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

1284 self.headers = headers if headers is not None else []
1285
1286 def deserialize(self, f):
1287 # comment in bitcoind indicates these should be deserialized as blocks
1288 blocks = deser_vector(f, CBlock, legacy=False)
1289 for x in blocks:
1290 self.headers.append(CBlockHeader(x))
1291
1292 def serialize(self):
1293 blocks = [CBlock(x) for x in self.headers]

Callers

nothing calls this directly

Calls 2

deser_vectorFunction · 0.85
CBlockHeaderClass · 0.70

Tested by

no test coverage detected