Gavin Andresen
4add41a2a6
Further DoS prevention: Verify signatures last
...
Loop over all inputs doing inexpensive validity checks first,
and then loop over them a second time doing expensive signature
checks. This helps prevent possible CPU exhaustion attacks
where an attacker tries to make a victim waste time checking
signatures for invalid transactions.
13 years ago
Gavin Andresen
7a15109c04
Remove invalid dependent orphans from memory
...
Remove orphan transactions from memory once
all of their parent transactions are received
and they're still not valid.
Thanks to Sergio Demian Lerner for suggesting this fix.
13 years ago
Gavin Andresen
77b99cf7ad
Optimize orphan transaction handling
...
Changes suggested by Sergio Demian Lerner to
help prevent potential DoS attacks.
13 years ago
Gavin Andresen
f718aedd9f
Refactor: GetRandHash() method for util
13 years ago
Gavin Andresen
096e06dbb5
Refactor: move code from key.h to key.cpp
13 years ago
Gavin Andresen
397737b913
Bump version numbers for 0.6.1rc2
13 years ago
Gregory Maxwell
1210aa435f
Merge pull request #1188 from Diapolo/rem_BackupWallet_wallet_h
...
remove obsolete BackupWallet() entry in wallet.h
13 years ago
Philip Kaufmann
e23a121afe
remove obsolete BackupWallet() entry in wallet.h
13 years ago
Wladimir J. van der Laan
e099e1568a
Merge pull request #1179 from Diapolo/project-file
...
add bitcoin-qt.rc to OTHER_FILES (shown in Qt Creator)
13 years ago
Jeff Garzik
ca97bde8ff
Merge pull request #1171 from Diapolo/fix_compiler_warn
...
fix 2 compiler warnings
13 years ago
Philip Kaufmann
8a6329a7ac
add bitcoin-qt.rc to OTHER_FILES (shown in Qt Creator)
13 years ago
Wladimir J. van der Laan
50d710496d
Merge pull request #1176 from Diapolo/project-file
...
fix DEPENDPATH in the project file, as json has no include sub-dir and src was in twice
13 years ago
Jeff Garzik
e19ccfa657
Merge pull request #1177 from laanwj/2012_05_remove_duplicate_securestring
...
remove duplicate definition of SecureString in util.h
13 years ago
Wladimir J. van der Laan
6d25b0e99a
Merge pull request #1172 from Diapolo/serialize_h_rem_typedef
...
remove unused typedef in serialize.h
13 years ago
Wladimir J. van der Laan
3ee5f8aac3
remove duplicate definition of SecureString in util.h
...
SecureString was moved to allocators.h in commit 6cb6d62347
13 years ago
Philip Kaufmann
68103043ce
fix DEPENDPATH in the project file, as json has no include sub-dir and src was in twice
13 years ago
Jeff Garzik
bd51e8ef8a
Merge pull request #1173 from Diapolo/init_cpp_comment_upd
...
remove references to bitcoin-wx from comment in init.cpp
13 years ago
Philip Kaufmann
1c94f88d5e
fix compiler warning "suggest parentheses around assignment used as truth
...
value [-Wparentheses]" in util.cpp
13 years ago
Philip Kaufmann
f8e4d43be7
fix compiler warning "suggest explicit braces to avoid ambiguous "else"
...
[-Wparentheses]" in net.cpp
13 years ago
Philip Kaufmann
00d971e1e7
remove references to bitcoin-wx from comment in init.cpp
13 years ago
Philip Kaufmann
810b4fad7d
remove unused typedef in serialize.h
13 years ago
Gavin Andresen
be8651dde7
Check earlier for blocks with duplicate transactions. Fixes #1167
13 years ago
Wladimir J. van der Laan
ec4997d48f
Merge pull request #1139 from Diapolo/messagepage
...
change button tooltip on sign message page for copy to clipboard...
13 years ago
Wladimir J. van der Laan
0acb1e715c
Merge pull request #1163 from laanwj/2012_04_uiperformanceissue
...
Fix critical UI performance issue (#1154 )
13 years ago
Wladimir J. van der Laan
6974aff668
Fix critical UI performance issue ( #1154 )
13 years ago
Gavin Andresen
0acbe31cfc
Update openssl version
13 years ago
Gavin Andresen
cedcec2dec
Bump win32.deps version number for new openssl
13 years ago
Gavin Andresen
2b4d7735b6
Windows build: compile against openssl 1.0.1b
13 years ago
Gavin Andresen
2c31cfc271
Bump version numbers for 0.6.1rc1
13 years ago
Gavin Andresen
dfead66eac
Merge pull request #1151 from freewil/listsinceblock-blockhash
...
listsinceblock: rpc param blockid -> blockhash
13 years ago
Gavin Andresen
27d4b53a5c
Merge pull request #1150 from gavinandresen/NOPCH
...
Remove unused -DNOPCH
13 years ago
Gavin Andresen
b2997dc043
Merge pull request #1152 from freewil/remove-strange-debug
...
remove strange debug message from listsinceblock
13 years ago
Pieter Wuille
287ce61dc2
Merge pull request #1146 from drizztbsd/posix-include
...
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
13 years ago
freewil
42ce57687a
remove strange debug message from listsinceblock
13 years ago
freewil
fdb204abb1
listsinceblock: rpc param blockid -> blockhash
...
This is more consistent with the rest of the labeling seen
by the user when accessing the rpc commands.
13 years ago
Gavin Andresen
9e71a5cd23
Define TEST_DATA_DIR so unit tests can be run from any current working directory
13 years ago
Gavin Andresen
08e663d7e2
Undo part of c2e8c8ac
to fix issue#1148
13 years ago
Pieter Wuille
e1ea3ce7aa
Merge pull request #1119 from sipa/fastshutdown
...
Make lsn_reset ("detach databases") optional and off by default.
13 years ago
Gavin Andresen
cfc45319fe
Remove unused -DNOPCH
13 years ago
Pieter Wuille
83743ed681
Make lsn_reset ("detach databases") optional and off by default.
...
Add an option -detachdb (and entry in OptionDialog), without which no
lsn_reset is called on addr.dat and blkindex.dat. That means these
files cannot be moved to a new environment, but shutdown can be
significantly faster. The wallet file is always lsn_reset'ed.
-detachdb corresponds to the old behaviour, though it is off by
default now to speed up shutdowns.
13 years ago
Timothy Redaelli
5e9dc15360
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
13 years ago
Jeff Garzik
c2e8c8acd8
Merge pull request #1140 from jgarzik/sign-compare
...
Address many more sign comparison warnings
13 years ago
Jeff Garzik
735a60698c
Change signed->unsigned at 3 code sites
...
This resolves signed/unsigned comparison warnings.
13 years ago
Jeff Garzik
5aa0b23825
CBlock::WriteToDisk() properly checks ftell(3) for error return
...
Rather than storing ftell(3)'s return value -- a long -- in an
unsigned int, we store and check a properly typed temp. Then, assured a
non-negative value, we store in nBlockPosRet.
13 years ago
Jeff Garzik
1d8c7a9557
Add casts for unavoidable signed/unsigned comparisons
...
At these code sites, it is preferable to cast rather than change
a variable's type.
13 years ago
Jeff Garzik
c0a0a93d02
Test ScriptSigArgsExpected() for error, before accumulating return value
13 years ago
Jeff Garzik
7bd9c3a3cf
SigOp and orphan-tx constants and counts are always unsigned.
...
Fixes several sign-comparison warnings.
13 years ago
Pieter Wuille
ef758662c5
Merge pull request #1133 from sipa/abspath
...
Make GetDataDir return absolute paths
13 years ago
Jeff Garzik
faf705a42a
Prefer 'unsigned int' for loop index variables tested against ::size()
...
C++ STL ::size() generally returns unsigned, which implies that "int idx"
style of loop variable will generate a signed-vs-unsigned comparison warning
when testing the loop exit condition "idx < blah.size()"
Update areas of the bitcoin code where loop variables may be more properly and
correctly defined as unsigned.
13 years ago
Philip Kaufmann
a2d0fcbe38
change button tooltip on sign message page for copy to clipboard as it was missleading
13 years ago