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

Method height

test/functional/feature_pruning.py:243–247  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

241 assert_equal(node.getblockcount(), 995)
242
243 def height(index):
244 if use_timestamp:
245 return node.getblockheader(node.getblockhash(index))["time"] + TIMESTAMP_WINDOW
246 else:
247 return index
248
249 def prune(index, expected_ret=None):
250 ret = node.pruneblockchain(height(index))

Callers 10

FreedesktopImageMethod · 0.80
showShutdownWindowMethod · 0.80
SplashScreenMethod · 0.80
minimumSizeHintFunction · 0.80
MakeSingleColorImageFunction · 0.80
setFontSizeMethod · 0.80
NetworkStyleMethod · 0.80
isObscuredFunction · 0.80
showHideMethod · 0.80
paintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected