Commit Graph

4062 Commits

Author SHA1 Message Date
Han Lin Yap
9f7fc8b332 fix typo in README.md 2013-12-05 09:15:40 +01:00
Philip Kaufmann
1b350f25a6 fix invalid conversion error with MinGW 4.8.1 in net.cpp
- fixes src\net.cpp:1601: Error:invalid conversion from 'void*' to
  'const char*' [-fpermissive] in a setsockopt() call on Win32 that was
  found by using MinGW 4.8.1 compiler suite
2013-12-05 09:15:39 +01:00
Luke Dashjr
89c2ea0891 Bugfix: Move boost/version include from db.cpp to walletdb.cpp where BOOST_VERSION is used 2013-12-05 09:15:39 +01:00
Roman Mindalev
df238b1975 Add missing 0x prefix in chainparams.cpp
Conflicts:
	src/chainparams.cpp
2013-12-05 09:15:39 +01:00
Robert Backhaus
187f8a5675 Explictly cast calculation to int, to allow std::max to work. 2013-12-05 09:15:39 +01:00
Gavin Andresen
9612e4c0d9 Lower maximum size for free transaction creation
Changes the maximum size of a free transaction that will be created
from 10,000 bytes to 1,000 bytes.

The idea behind this change is to make the free transaction area
available to a greater number of people; with the default 27K-per-block,
just three very-large very-high-priority transactions could fill the space.
2013-11-28 07:59:54 +01:00
Gavin Andresen
1ca8a75cb4 Remove CENT-output free transaction rule when relaying
Remove the (relay/mempool) rule that all outputs of free transactions
must be greater than 0.01 XBT. Dust spam is now taken care of by making
dusty outputs non-standard.
2013-11-28 07:59:54 +01:00
Gavin Andresen
5c029630f9 Increase default -blockmaxsize/prioritysize to 300K/30K 2013-11-28 07:59:53 +01:00
Mike Hearn
7120d76dc6 Store and use a sanitized subVer
Rebased-from: a946aa8d3e
2013-11-28 11:03:33 +10:00
Mike Hearn
1c53d0a4fb Add some additional logging to give extra network insight. 2013-11-28 11:03:33 +10:00
Philip Kaufmann
3779de9d89 special case DoS value == 0 in ProcessMessage()
- prevents unneeded log messages, which could make users think something
  bad was happening

Squashed: style-police code cleanup
2013-11-28 11:03:33 +10:00
Gavin Andresen
56ce843314 Refactor: pull alert string sanitization into util
Rebased-from: 17faf56262
2013-11-28 11:03:33 +10:00
Warren Togami
e564297156 Silence useless warning in src/json/json_spirit_writer_template.h to make important warnings easier to see.
warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
2013-11-28 11:03:33 +10:00
Wladimir J. van der Laan
83efc9104f Squashed 'src/leveldb/' changes from be1b0ff..be91006
936b461 Merge upstream LevelDB 1.13.
748539c LevelDB 1.13

git-subtree-dir: src/leveldb
git-subtree-split: be9100673b05cec1662a54d0b7a59e4317fdda86
2013-11-28 11:03:32 +10:00
Wladimir J. van der Laan
e4be09cfae Bump version numbers for 0.8.6 release 2013-11-26 14:00:48 +01:00
Cory Fields
068996daa5 osx: fix bitcoin-qt startup crash when clicking dock icon
Crash probably introduced by 4d17a1b0.
Inialize the window to NULL and verify it before use.

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2013-11-26 14:00:48 +01:00
Pieter Wuille
99f73bd2fd Fix build date for from-tarball builds 2013-11-26 14:00:48 +01:00
Philip Kaufmann
f607729b26 exclude CreatePidFile() function on WIN32 as it is unused 2013-11-26 14:00:48 +01:00
phelixbtc
e88eb41b6c Porting MinGW multithreading bugfix to makefile.mingw
Original fix:
https://github.com/bitcoin/bitcoin/commit
/8864019f6d88b13d3442843d9e6ebeb8dd938831
2013-11-26 14:00:48 +01:00
David Hill
0119e0c592 Hurricane Electric uses block 2001:470::, not 2011:470:: 2013-11-26 14:00:48 +01:00
Gregory Maxwell
f46f128b9a More fixes for blockchain corruption on OSX.
As we'd previously learned, OSX's fsync is a data eating lie.

Since 0.8.4 we're still getting some reports of disk corruption on
 OSX but now all of it looks like the block files have gotten out of
 sync with the database. It turns out that we were still using fsync()
 on the block files, so this isn't surprising.
2013-11-26 14:00:47 +01:00
Philip Kaufmann
05ea79052c make -logtimestamps default on and rework help-message
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 959e62f
2013-11-26 14:00:47 +01:00
Jeff Garzik
c4892eb4b3 Log reason for non-standard transaction rejection
Conflicts:
	src/main.cpp

Rebased-from: cb3076a3da
2013-11-26 14:00:47 +01:00
Philip Kaufmann
633d95ec22 log start and end of Shutdown()
- could be helpful when debugging shutdown related problems

Rebased-by:   Warren Togami <wtogami@gmail.com>
Rebased-from: ced3c24816
2013-11-26 14:00:47 +01:00
theuni
3e89dbb132 Fix uninitialized variable added in 5c55bf5
After discussing with BlueMatt, this appears to be harmless in its
current state since it's always set before it's used. Initialize it
anyway for readability and future safety.

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 106f133de6
2013-11-26 10:32:16 +01:00
Matt Corallo
5c55bf5af0 Fix comparison tool by asking for blocks more aggressively
Rebased-from: b33b9a6fef
2013-11-26 10:15:57 +01:00
Patrick Strateman
7084756f4f process received messages one at a time without sleeping between messages 2013-11-26 10:15:49 +01:00
Gavin Andresen
ef14a26b12 Bump version numbers for 0.8.5 release v0.8.5 2013-09-12 13:35:18 +10:00
Pieter Wuille
27fefeac71 Fix out-of-bounds check 2013-09-12 12:41:17 +10:00
Gregory Maxwell
f0a1d87b00 Longer term workaround for chainstate corruption from negative versions.
This also makes negative transaction versions non-standard.

This avoids an issue triggered in block 256818 where transactions with
negative version numbers were incorrectly serialized into the UTXO set.

On restart nodes detect the inconsistency and refuse to start so long as
a block with these transactions is inside the self-consistency check
window, logging "coin database inconsistencies found". The software
recommends reindexing, but reindexing does not correct the problem.

This should be fixed by changing the chainstate serialization, but
working around it seems harmless for now because the version is not
used by any network rule currently.

A patch free workaround is to start with -checklevel=2 which skips
the consistency checks, but the IsStandard change is important for
miners in order to protect unpatched nodes.
2013-09-10 10:03:06 +10:00
Gregory Maxwell
839c7d1fa8 Update the bloom state on the real object, not the temporary one.
This resulted in just passing all transactions to filtered wallets
which worked surprisingly well, except where it didn't.
v0.8.4 v0.8.4rc2
2013-08-21 11:07:28 +10:00
Pieter Wuille
d7fdc5fac3 Fix non-standard disconnected transactions causing mempool orphans
Conflicts:
	src/main.cpp
2013-08-21 09:13:49 +10:00
theuni
5e18c6ccbc fixed: don't use thread::sleep_for where it's known to be broken
Fixes #2690.
2013-08-21 08:49:00 +10:00
theuni
708c75c0ee fixed: include boost header as necessary
Without this include, sometimes BOOST_VERSION was defined and sometimes
it was not, depending on which includes came before it. The result was a
random mix of sleep or sleep_for for boost versions >= 1.50.
2013-08-21 08:49:00 +10:00
Gregory Maxwell
ac7c960067 Performance optimization for bloom filters.
This reduces a peer's ability to attack network resources by
 using a full bloom filter, but without reducing the usability
 of bloom filters.  It sets a default match everything filter
 for peers and it generalizes a prior optimization to
 cover more cases.
2013-08-21 08:49:00 +10:00
Pieter Wuille
980b1c3571 Merge commit '6519339fe849bdbbff047d9eef8ab6c5fbb3e2a4' 2013-08-21 00:43:20 +02:00
Pieter Wuille
6519339fe8 Squashed 'src/leveldb/' changes from a02ddf9..be1b0ff
be1b0ff On Mac OS X fsync does not guarantee write to disk. Use fcntl F_FULLFSYNC instead.

git-subtree-dir: src/leveldb
git-subtree-split: be1b0ff1fcd6ad820a7fd111ac671fb51cc68001
2013-08-21 00:43:09 +02:00
Pieter Wuille
e6552eed63 Merge commit 'cb1e39f0a35cc2b36fb748c26f69cd27e0ed5332' as 'src/leveldb' 2013-08-20 14:17:45 +02:00
Pieter Wuille
cb1e39f0a3 Squashed 'src/leveldb/' content from commit a02ddf9
git-subtree-dir: src/leveldb
git-subtree-split: a02ddf9b14d145e88185ee209ab8b01d8826663a
2013-08-20 14:17:45 +02:00
Pieter Wuille
5c739c574f Remove inline LevelDB to prepare for git-subtree version 2013-08-20 14:03:29 +02:00
Gavin Andresen
20b611770f Checkpoint at block 250,000 2013-08-20 17:36:50 +10:00
Gavin Andresen
21696c12f3 Simplify storage of orphan transactions
Orphan transactions were stored as a CDataStream pointer;
this changes the mapOrphanTransactions data structures to
store orphans as a CTransaction.

This also fixes CVE-2013-4627 by always re-serializing
transactions before relaying them.
2013-08-20 14:52:38 +10:00
Gavin Andresen
08dd92060b Revert "Truncate oversize 'tx' messages before relaying/storing."
This reverts commit 7cc960f8f5.
2013-08-20 14:46:01 +10:00
Gavin Andresen
cdb3441b5c Make RPC password resistant to timing attacks
Fixes issue#2838; this is a tweaked version of pull#2845 that
should not leak the length of the password and is more generic,
in case we run into other situations where we need
timing-attack-resistant comparisons.
2013-08-20 12:19:40 +10:00
Matt Corallo
38863afbcc Fix multi-block reorg transaction resurrection 2013-08-20 12:18:50 +10:00
Gavin Andresen
6f315b4016 Fix Gnome bitcoin: URI handler 2013-08-20 12:18:39 +10:00
Gavin Andresen
6929f2a45f Bump version numbers to prep for 0.8.4 release 2013-08-20 11:20:04 +10:00
Gavin Andresen
40809aed65 Bump version numbers for 0.8.3 release v0.8.3 2013-06-25 10:27:24 -04:00
Pieter Wuille
65c20dbf55 Dump addresses every 15 minutes instead of 10 seconds 2013-06-25 10:21:02 -04:00
Peter Todd
7cc960f8f5 Truncate oversize 'tx' messages before relaying/storing.
Fixes a memory exhaustion attack on low-memory peers.
2013-06-25 09:59:31 -04:00