bitcoin/bitcoin — pull request #1692 by Diapolo (2012-08-21 14:59:35+00:00)
Title: add GetBlockFile() to main.cpp

This function is intended to convert a block-file number into the full path
to the file. It also caches the last value and checks if that can be
re-used on further calls.

- made OpenBlockFile() use GetBlockFile()

Perhaps this makes (even more) sense with sipas current work on Ultraprune.