Pieter Wuille
1f355b66cd
New database check routine
...
-checklevel gets a new meaning:
0: verify blocks can be read from disk (like before)
1: verify (contextless) block validity (like before)
2: verify undo files can be read and have good checksums
3: verify coin database is consistent with the last few blocks
(close to level 6 before)
4: verify all validity rules of the last few blocks
Level 3 is the new default, as it's reasonably fast. As level 3 and
4 are implemented using an in-memory rollback of the database, they
are limited to as many blocks as possible without exceeding the
limits set by -dbcache. The default of -dbcache=25 allows for some
150-200 blocks to be rolled back.
In case an error is found, the application quits with a message
instructing the user to restart with -reindex. Better instructions,
and automatic recovery (when possible) or automatic reindexing are
left as future work.
12 years ago
Forrest Voight
f3d872d1ea
moved "index_in_template" to a separate variable to clarify what it is
12 years ago
Pieter Wuille
8539361e66
Add checksums to undo data
...
This should be compatible with older code that didn't write checksums.
12 years ago
Pieter Wuille
2cbd71da06
Make DisconnectBlock fault-tolerant
12 years ago
Jeff Garzik
ea9788517b
test/util_tests.cpp: one more DateTimeStrFormat 'T' removal
12 years ago
Gavin Andresen
ee3374234c
OutputDebugStringF code cleanup
...
Initialize the OutputDebugStringF mutex and file pointer using
boost::call_once, to be thread-safe.
Make the return value of OutputDebugStringF really be the number of
characters written (*printf() semantics).
Declare the fReopenDebugLog flag volatile, since it is changed from
a signal handler.
And don't declare OutputDebugStringF() as inline.
12 years ago
Jeff Garzik
3f964b3c50
Remove 'T' from remaining date/time format strings.
12 years ago
Wladimir J. van der Laan
15ffcc3642
Merge pull request #2032 from burger2/fix_shortcut
...
Fix duplicate shortcut usage in sign/verify message dialog.
12 years ago
Gavin Andresen
567128a345
Merge pull request #2133 from Diapolo/init_strings
...
update 2 command-line parameter help messages
12 years ago
Jeff Garzik
393819cde4
Remove 'T' from debug log timestamps
...
Space separation between major fields is easier for human eyes and
libs to parse.
12 years ago
Philip Kaufmann
b8397fbfcd
update 2 command-line parameter help messages
...
- -checkpoints is now much more understandable and should be way easier
to translate
- -loadblock uses the same format (blk000??.dat) as -reindex
12 years ago
Gregory Maxwell
d7836552e6
If the prio. will be enough after the next block don't force fees.
...
If the user was really after the fastest possible confirmation times
they would be manually setting a fee. In cases where the wallet builds
a transaction with a priority that is too low to qualify as free until
the next block, go ahead without a fee. Confirmation frequently takes
multiple blocks even when a minimum fee is provided.
12 years ago
Pieter Wuille
bffc744444
Make IsCanonicalScript() check the hash type more thoroughly
...
0 and 128 were previously accepted as standard hash type.
Note that this function is not active in the current verification
code.
12 years ago
Gavin Andresen
23826f1b7f
Merge pull request #2116 from sipa/importrescanbool
...
Convert fRescan argument to importprivkey to bool
12 years ago
Pieter Wuille
328680190a
Merge pull request #2113 from sipa/hashh
...
Split off hash.h from util.h
12 years ago
Forrest Voight
0f927ceb5b
use fee/sigop data in BlockTemplate struct instead of (not always correctly) calculating it ourselves
12 years ago
Forrest Voight
03cac0bb8e
changed CreateNewBlock to return a CBlockTemplate object, which includes per-tx fee and sigop count data
12 years ago
Pieter Wuille
5dfbd4ff68
Convert fRescan argument to importprivkey to bool
12 years ago
Pieter Wuille
0fb9073edd
Split off hash.h from util.h
12 years ago
Gavin Andresen
6940626d08
Merge pull request #2112 from fanquake/typos
...
Fix two typos in main.h
12 years ago
fanquake
f0bf5fb245
Fix two typos in main.h
...
Break one long comment down into 3 lines so it's readable.
12 years ago
Andrey
1a20469428
Updated help and tests for getreceivedby(account|address)
12 years ago
Gavin Andresen
f4445f9982
Upgrading to 0.8: re-use blkNNNN.dat files.
12 years ago
Philip Kaufmann
a8fbbd8fb0
Bitcoin-Qt: comment out unused parameter in addressbookpage
12 years ago
Philip Kaufmann
7601152ce2
Bitcoin-Qt: ensure all Windows scopes use win32 as identifier
...
- currently we sometimes use "windows" or "win32", but as per
http://doc.qt.digia.com/qt/qmake-advanced-usage.html , windows seems to
be not officially supported (only win32 is mentioned there)
12 years ago
Gregory Maxwell
a3fad2119b
In listaddressgroupings push down the IsMine check to run on each input.
...
This avoids a potential crash when trying to read the scrippubkeys on
transactions where the first input IsMine but some of the rest are not
when running listaddressgroupings.
12 years ago
Pieter Wuille
da8c5c9f4e
Merge pull request #2087 from gavinandresen/check210000
...
Checkpoint at first 25-btc-reward block (210,000)
12 years ago
Pieter Wuille
33766c9557
Merge pull request #2096 from 94m3k1n9/fix-time-formats
...
Change timestamps to use ISO8601 formatting
12 years ago
Andrey
62c9b1155f
listreceivedbyaddress now provides tx ids (issue #1149 )
12 years ago
Wladimir J. van der Laan
07c3f846c2
Merge pull request #2045 from Diapolo/use_message
...
use new message() function in BitcoinGUI
12 years ago
Gavin Andresen
5fe3f4652e
Merge pull request #2097 from Diapolo/fix_merges
...
fix small stuff related to the recent merge-wave
12 years ago
Philip Kaufmann
50ce5735d6
LevelDB: build_detect_platform fix NATIVE_WINDOWS indentation
...
- fix some indentation issues
12 years ago
Philip Kaufmann
a4b43645aa
add threadsafety.h to bitcoin-qt.pro
...
- to be able to see threadsafety.h in the Qt Creator IDE the file needs to
be added to the HEADERS section
12 years ago
Gavin Andresen
51dc438942
Merge pull request #2080 from mcassano/importprivkey_rescan_false
...
add rescan bool to importprivkey to control whether to do a rescan after import
12 years ago
Gavin Andresen
278a09a6c6
Merge pull request #2095 from al42and/upnp
...
OptionsModel now has MapPortUPnP=false if UPNP is not supported
12 years ago
Gavin Andresen
8a7277a578
Merge pull request #2003 from alexanderkjeldaas/documented-locking-part-2
...
Documented locking part 1+2
12 years ago
Gavin Andresen
50894e4fd4
Merge pull request #2064 from petertodd/ipv6-doc-polarity
...
Replace text on how to enable IPv6 with disable
12 years ago
Gavin Andresen
d339da70e5
Merge pull request #1825 from roques/bignum2
...
Bignum2
12 years ago
Gavin Andresen
5bd5d6c45c
Merge pull request #1940 from grimd34th/patch-1
...
Add NATIVE_WINDOWS
12 years ago
Gavin Andresen
095b06cfae
Merge pull request #2073 from grimd34th/patch-3
...
Update src/makefile.mingw
12 years ago
Gavin Andresen
a9e055a1ca
Merge pull request #2048 from jgarzik/no-checkpoints
...
Add "checkpoints" option, to permit disabling of checkpoint logic.
12 years ago
Gavin Andresen
78504bb04f
Merge pull request #1861 from jgarzik/coinlock
...
Add new RPC "lockunspent", to prevent spending of selected outputs
12 years ago
Gavin Andresen
043a8fb98d
Merge pull request #2059 from sipa/benchmark
...
Add -benchmark for reporting block processing times
12 years ago
Gavin Andresen
dbd5bb8039
Merge pull request #2062 from sipa/nocoins
...
Reconstruct coins/ database when missing
12 years ago
Gavin Andresen
8b83e2fc2e
Merge pull request #2074 from sipa/minor
...
Two minor inconvenience fixes
12 years ago
Gavin Andresen
59b8a869ab
Compile c/objective-c code max compatiblity when RELEASE
12 years ago
Richard Schwab
303b0009dc
Change timestamps to use ISO8601 formatting
12 years ago
Andrey Alekseenko
6a3aef39e7
OptionsModel now has MapPortUPnP=false if UPNP is not supported
12 years ago
Gavin Andresen
5d32d3f8cd
Checkpoint at first 25-btc-reward block (210,000)
12 years ago
Pieter Wuille
622da5df6e
Merge pull request #2068 from Diapolo/CheckDiskSpace
...
some CheckDiskSpace() related changes
12 years ago