MCPcopy Create free account
hub / github.com/ElementsProject/elements / calc_usage

Function calc_usage

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

Source from the content-addressed store, hash-verified

73 mine_large_blocks.nTime += 1
74
75def calc_usage(blockdir):
76 return sum(os.path.getsize(blockdir + f) for f in os.listdir(blockdir) if os.path.isfile(os.path.join(blockdir, f))) / (1024. * 1024.)
77
78class PruneTest(BitcoinTestFramework):
79 def set_test_params(self):

Callers 3

test_height_minMethod · 0.70
reorg_testMethod · 0.70

Calls 1

joinMethod · 0.45

Tested by 1

test_height_minMethod · 0.56