Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ write_addrman
Function
write_addrman
test/functional/feature_addrman.py:46–48 ·
view source on GitHub ↗
(peers_dat, **kwargs)
Source
from the content-addressed store, hash-verified
44
45
46
def
write_addrman(peers_dat, **kwargs):
47
with
open(peers_dat,
"wb"
)
as
f:
48
f.write(serialize_addrman(**kwargs))
49
50
51
class
AddrmanTest(BitcoinTestFramework):
Callers
1
run_test
Method · 0.85
Calls
2
serialize_addrman
Function · 0.85
write
Method · 0.45
Tested by
no test coverage detected