MCPcopy Create free account
hub / github.com/ElementsProject/lightning / write_all

Function write_all

tests/test_wallet.py:1042–1046  ·  view source on GitHub ↗

Wrapper, since os.write can do partial writes

(fd, bytestr)

Source from the content-addressed store, hash-verified

1040
1041
1042def write_all(fd, bytestr):
1043 """Wrapper, since os.write can do partial writes"""
1044 off = 0
1045 while off < len(bytestr):
1046 off += os.write(fd, bytestr[off:])
1047
1048
1049@unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.")

Callers 15

test_hsmtool_generatehsmFunction · 0.70
decrypt_hsmFunction · 0.50
encrypt_hsmFunction · 0.50
generate_hsmFunction · 0.50
mainFunction · 0.50
gossip_store_loadFunction · 0.50
create_encrypted_hsmFunction · 0.50
create_hsmFunction · 0.50
log_one_lineFunction · 0.50

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected