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

Method height

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

Source from the content-addressed store, hash-verified

283 assert_equal(node.getblockcount(), 995)
284
285 def height(index):
286 if use_timestamp:
287 return node.getblockheader(node.getblockhash(index))["time"] + TIMESTAMP_WINDOW
288 else:
289 return index
290
291 def prune(index):
292 ret = node.pruneblockchain(height=height(index))

Callers 15

LoadToWalletMethod · 0.45
RescanFromTimeMethod · 0.45
AttachChainMethod · 0.45
importprunedfundsFunction · 0.45
listsinceblockFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
FreedesktopImageMethod · 0.45
showShutdownWindowMethod · 0.45
SplashScreenMethod · 0.45
minimumSizeHintFunction · 0.45
MakeSingleColorImageFunction · 0.45
sizeHintFunction · 0.45

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36