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

Function calc_usage

test/functional/feature_pruning.py:25–26  ·  view source on GitHub ↗
(blockdir)

Source from the content-addressed store, hash-verified

23
24
25def calc_usage(blockdir):
26 return sum(os.path.getsize(blockdir+f) for f in os.listdir(blockdir) if os.path.isfile(os.path.join(blockdir, f))) / (1024. * 1024.)
27
28class PruneTest(BitcoinTestFramework):
29 def set_test_params(self):

Callers 3

test_height_minMethod · 0.85
reorg_testMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by 1

test_height_minMethod · 0.68