bitcoin/bitcoin — pull request #2068 by Diapolo (2012-12-04 06:58:46+00:00)
Title: some CheckDiskSpace() related changes

CBlock::AcceptBlock(): re-use nBlockSize in CheckDiskSpace()

use CheckDiskSpace() before pre-allocating
- even if we are allowed to fail pre-allocating, it's better to check for
sufficient space before calling AllocateFileRange()