Luke Dashjr
3171daef6c
Bugfix: Fix a variety of misspellings
2012-08-12 17:22:48 +00:00
Luke Dashjr
cafa8f2879
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
src/key.h
src/keystore.h
src/net.h
src/protocol.cpp
src/qt/guiutil.h
src/test/DoS_tests.cpp
2012-08-12 17:19:48 +00:00
Luke Dashjr
797d0b231b
Merge branch '0.4.x' into 0.5.x
...
Conflicts:
src/net.cpp
2012-08-12 17:02:38 +00:00
Luke Dashjr
9e98fe6f58
Bugfix: Fix a variety of misspellings
...
(PARTIAL: Left out anything changing debug.log)
2012-08-12 17:00:02 +00:00
Luke Dashjr
ff4be740b5
Merge branch '0.5.x' into 0.6.0.x
2012-07-22 23:15:38 +00:00
Luke Dashjr
4f620dd0f0
Merge branch '0.4.x' into 0.5.x
2012-07-22 23:15:22 +00:00
Rune K. Svendsen
63f319353c
Let the comment in GetBlockValue() reflect the uncertainty about the time interval between subsidy reductions
2012-07-22 21:45:32 +00:00
Luke Dashjr
13829c6c99
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
doc/unit-tests.txt
src/serialize.h
2012-06-21 01:40:40 +00:00
Luke Dashjr
fad2231f86
Merge branch '0.4.x' into 0.5.x
...
Conflicts:
src/main.cpp
src/serialize.h
2012-06-20 19:02:33 +00:00
Gavin Andresen
3023e782bd
print large orphan warning BEFORE deleting pvMsg
2012-06-20 18:55:24 +00:00
Gavin Andresen
01473c3f40
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.
2012-06-20 17:53:18 +00:00
Gavin Andresen
ce1a071f6d
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.
2012-06-20 17:39:24 +00:00
Gavin Andresen
c3def40293
Optimize orphan transaction handling
...
Changes suggested by Sergio Demian Lerner to
help prevent potential DoS attacks.
2012-06-20 17:16:19 +00:00
Gavin Andresen
0ce74bfaa5
Use std::numeric_limits<> for typesafe INT_MAX/etc
...
(this fixes a Mac OS X gitian build error for 0.5.x)
2012-06-14 20:38:25 +00:00
Gavin Andresen
5cd2a640a5
Use std::numeric_limits<> for typesafe INT_MAX/etc
...
(this fixes a Mac OS X gitian build error for 0.5.x)
2012-06-14 19:52:31 +00:00
Luke Dashjr
6ec9d30905
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
src/main.h
src/net.cpp
src/serialize.h
2012-06-14 18:13:46 +00:00
Philip Kaufmann
276cfd8530
Bugfix: Fix various places where Bitcoin-Qt was being shutdown improperly
...
(Partial/merge of upstream 9247134eab , 1a3f0da922 , and 3e34352222 )
2012-06-14 17:53:59 +00:00
Luke Dashjr
d67b0434f2
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
src/main.cpp
2012-05-22 22:57:10 +00:00
Luke Dashjr
3b36da6d27
Merge branch '0.4.x' into 0.5.x
...
Conflicts:
src/ui.cpp
src/ui.h
src/uibase.cpp
src/xpm/about.xpm
2012-05-22 22:55:49 +00:00
R E Broadley
8a39b0d613
Correct debug.log output to show correct function the debug is coming from.
2012-05-22 22:42:13 +00:00
Fordy
58ac600b2c
Update License in File Headers
...
I originally created a pull to replace the "COPYING" in crypter.cpp and
crypter.h, but it turned out that COPYING was actually the correct
file.
2012-05-20 20:15:41 +00:00
Fordy
b2de28c740
Update License in File Headers
...
I originally created a pull to replace the "COPYING" in crypter.cpp and
crypter.h, but it turned out that COPYING was actually the correct
file.
2012-05-20 20:10:24 +00:00
Fordy
d11488abd0
Update License in File Headers
...
I originally created a pull to replace the "COPYING" in crypter.cpp and
crypter.h, but it turned out that COPYING was actually the correct
file.
2012-05-20 20:06:11 +00:00
Philip Kaufmann
334668cde4
remove 2 ugly spaces from a message string
...
(PARTIAL of 966ae00 )
2012-05-20 19:54:14 +00:00
Jeff Garzik
3a05f1d2ce
Always check return values of TxnBegin() and TxnCommit()
2012-05-18 00:04:18 +00:00
Jeff Garzik
738592a002
Always check return values of TxnBegin() and TxnCommit()
...
PARTIAL, since d68dcf7 isn't backported (yet)
2012-05-18 00:03:32 +00:00
Pieter Wuille
c455aec699
Hopefully final fix for the stuck blockchain issue
...
Immediately issue a "getblocks", instead of a "getdata" (which will
trigger the relevant "inv" to be sent anyway), and only do so when
the previous set of invs led us into a known and attached part of
the block tree.
2012-05-17 23:45:49 +00:00
Pieter Wuille
60953d05c8
Prevent stuck download: correct solution
...
Pull request #948 introduced a fix for nodes stuck on a long side branch
of the main chain. The fix was non-functional however, as the additional
getdata request was created in a first step of processing, but dropped
in a second step as it was considered redundant. This commits fixes it
by sending the request directly.
2012-05-07 04:00:49 +00:00
Luke Dashjr
afff998ef0
Merge branch '0.4.x' into 0.5.x
2012-05-07 02:46:14 +00:00
Pieter Wuille
2403bb79bc
Prevent stuck download: correct solution
...
Pull request #948 introduced a fix for nodes stuck on a long side branch
of the main chain. The fix was non-functional however, as the additional
getdata request was created in a first step of processing, but dropped
in a second step as it was considered redundant. This commits fixes it
by sending the request directly.
2012-05-07 02:45:08 +00:00
Pieter Wuille
eb3f661add
Prevent stuck block download in large reorganisations
...
In cases of very large reorganisations (hundreds of blocks), a situation
may appear where an 'inv' is sent as response to a 'getblocks', but the
last block mentioned in the inv is already known to the receiver node.
However, the supplying node uses a request for this last block as a
trigger to send the rest of the inv blocks. If it never comes, the block
chain download is stuck.
This commit makes the receiver node always request the last inv'ed block,
even if it is already known, to prevent this problem.
2012-05-07 02:44:45 +00:00
Luke Dashjr
457ff3a437
Merge branch '0.5.x' into 0.6.0.x
2012-05-06 05:35:58 +00:00
Luke Dashjr
5da2dce524
Merge branch '0.4.x' into 0.5.x
2012-05-06 05:35:50 +00:00
Luke Dashjr
607739befb
Bugfix: %-12I64d is not valid and causes the parameter to be skipped, use %12"PRI64d" instead
...
Conflicts:
src/walletdb.cpp
2012-05-06 05:27:08 +00:00
Luke Dashjr
ee932c6e35
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
src/main.cpp
2012-05-04 19:55:54 +00:00
Luke Dashjr
c328c684c2
Bugfix: Remove redundant duplicate transaction check
2012-05-04 19:54:24 +00:00
Luke Dashjr
a1a5a89063
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
src/main.cpp
src/serialize.h
2012-05-04 18:57:03 +00:00
Luke Dashjr
b2e5f797b5
Merge branch '0.4.x' into 0.5.x
2012-05-04 18:55:15 +00:00
Gavin Andresen
6a89317f62
Check earlier for blocks with duplicate transactions. Fixes #1167
2012-05-04 18:55:05 +00:00
Gavin Andresen
ad5a4c7c47
Check earlier for blocks with duplicate transactions. Fixes #1167
2012-05-04 18:52:16 +00:00
Jeff Garzik
07d1a50aee
Test ScriptSigArgsExpected() for error, before accumulating return value
2012-04-24 00:51:54 -04:00
Luke Dashjr
66116c3847
Merge branch '0.5.x' into 0.6.0.x
...
Conflicts:
src/main.h
src/net.cpp
src/util.cpp
2012-04-22 10:07:24 -04:00
Luke Dashjr
a93ab87787
Merge branch '0.4.x' into 0.5.x
...
Conflicts:
src/main.cpp
2012-04-22 10:05:43 -04:00
Pieter Wuille
dc588faf59
Fix potential deadlock
...
Conflict:
* cs_main in ProcessMessages() (before calling ProcessMessages)
* cs_vSend in CNode::BeginMessage
versus:
* cs_vSend in ThreadMessageHandler2 (before calling SendMessages)
* cs_main in SendMessages
Even though cs_vSend is a try_lock, if it succeeds simultaneously with
the locking of cs_main in ProcessMessages(), it could cause a deadlock.
2012-04-17 15:11:48 -04:00
Jeff Garzik
0c3aa881e2
Fix loop index var types, fixing many minor sign comparison warnings
...
foo.size() typically returns an unsigned integral type; make loop variables
match those types' signedness.
2012-04-17 14:59:32 -04:00
Jeff Garzik
774e9b6dbb
Fix loop index var types, fixing many minor sign comparison warnings
...
foo.size() typically returns an unsigned integral type; make loop variables
match those types' signedness.
2012-04-17 14:57:42 -04:00
Jeff Garzik
1175d8f6a1
AlreadyHave(): only hold lock during mapTransactions access
2012-04-17 14:40:58 -04:00
Jeff Garzik
12570da46f
Locking fix for AlreadyHave()
...
Access to mapTransactions[] must be guarded by cs_mapTransactions lock.
2012-04-17 13:20:29 -04:00
Luke Dashjr
79fc752b61
Merge branch '0.4.x' into 0.5.0.x
...
Conflicts:
src/keystore.h
2012-04-15 21:05:54 -04:00
Wladimir J. van der Laan
1bdfa94a01
fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
2012-04-15 19:43:45 -04:00