(blkindex)
| 47 | |
| 48 | # The block map shouldn't give or receive byte-reversed hashes. |
| 49 | def 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. |
no test coverage detected