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

Function delete_cookie_file

test/functional/test_framework/util.py:340–343  ·  view source on GitHub ↗
(datadir)

Source from the content-addressed store, hash-verified

338
339# If a cookie file exists in the given datadir, delete it.
340def delete_cookie_file(datadir):
341 if os.path.isfile(os.path.join(datadir, "regtest", ".cookie")):
342 logger.debug("Deleting leftover cookie file")
343 os.remove(os.path.join(datadir, "regtest", ".cookie"))
344
345def get_bip9_status(node, key):
346 info = node.getblockchaininfo()

Callers 1

startMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by 1

startMethod · 0.68