MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / mkblockmap

Function mkblockmap

contrib/linearize/linearize-data.py:49–53  ·  view source on GitHub ↗
(blkindex)

Source from the content-addressed store, hash-verified

47
48# The block map shouldn't give or receive byte-reversed hashes.
49def mkblockmap(blkindex):
50 blkmap = {}
51 for height,hash in enumerate(blkindex):
52 blkmap[hash] = height
53 return blkmap
54
55# This gets the first block file ID that exists from the input block
56# file directory.

Callers 1

linearize-data.pyFile · 0.85

Calls 1

enumerateFunction · 0.50

Tested by

no test coverage detected