]> Git Repo - VerusCoin.git/commit - src/main.cpp
call CheckDiskSpace() before pre-allocating space
authorPhilip Kaufmann <[email protected]>
Tue, 4 Dec 2012 06:48:57 +0000 (07:48 +0100)
committerPhilip Kaufmann <[email protected]>
Wed, 5 Dec 2012 13:39:09 +0000 (14:39 +0100)
commitfa45c26a0e5d3597814cef5ebd64e3db1b3b017d
tree74ea53f01b9d3594a587f8836a9b63161ecb0de2
parent85887020dc6080e5707632a4ea68232f66d51d69
call CheckDiskSpace() before pre-allocating space

- even if we are allowed to fail pre-allocating, it's better to check
  for sufficient space before calling AllocateFileRange() and if we
  are out of disk space return with error()
- the above change allows us to remove the CheckDiskSpace() check
  in CBlock::AcceptBlock()
src/main.cpp
This page took 0.025296 seconds and 4 git commands to generate.