diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-12-05 14:01:03 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-12-05 14:01:03 -0800 |
commit | a485c1b69e282883414dfb387d0aac1cfa21533d (patch) | |
tree | 8d6108b0ec18ea7164deb5c2e943f8bb5c5ef344 /src/main.cpp | |
parent | 85887020dc6080e5707632a4ea68232f66d51d69 (diff) | |
parent | a8a4b9673e1f4acabe835a692840c54c50862449 (diff) | |
download | bitcoin-a485c1b69e282883414dfb387d0aac1cfa21533d.tar.xz |
Merge pull request #2063 from Diapolo/CDiskBlockPos
add 2 constructors in CDiskBlockPos to simplify class usage
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 21c54befcb..84571e11ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1535,9 +1535,7 @@ void static FlushBlockFile() { LOCK(cs_LastBlockFile); - CDiskBlockPos posOld; - posOld.nFile = nLastBlockFile; - posOld.nPos = 0; + CDiskBlockPos posOld(nLastBlockFile, 0); FILE *fileOld = OpenBlockFile(posOld); FileCommit(fileOld); |