Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jimmysong/programmingbitcoin
/ add_data
Method
add_data
code-ch13/network.py:309–310 ·
view source on GitHub ↗
(self, data_type, identifier)
Source
from the content-addressed store, hash-verified
307
self.data = []
308
309
def
add_data(self, data_type, identifier):
310
self.data.append((data_type, identifier))
311
312
def
serialize(self):
313
# start with the number of items as a varint
Callers
1
test_serialize
Method · 0.95
Calls
no outgoing calls
Tested by
1
test_serialize
Method · 0.76