(blkindex)
| 87 | |
| 88 | # The block map shouldn't give or receive byte-reversed hashes. |
| 89 | def mkblockmap(blkindex): |
| 90 | blkmap = {} |
| 91 | for height,hash in enumerate(blkindex): |
| 92 | blkmap[hash] = height |
| 93 | return blkmap |
| 94 | |
| 95 | # This gets the first block file ID that exists from the input block |
| 96 | # file directory. |
no test coverage detected