7717 Commits

Author SHA1 Message Date
Warren Togami
38008f736f Litecoin Core v0.10.1.1 2015-04-12 12:31:50 -10:00
Warren Togami
ca24fa8ad7 Litecoin: Default minRelayTxFee and CWallet::minTxFee set by DEFAULT_TX_FEE
Miners can adjust the minimum fee per 1000 bytes they are willing to accept
with the -minrelaytxfee parameter.
2015-04-12 12:28:01 -10:00
Warren Togami
e76542af8c Litecoin: Rename to Litecoin in Translations
(with numerous exclusions)
2015-04-12 12:27:56 -10:00
Warren Togami
1cfb09639d Merge remote-tracking branch 'bitcoin/0.10' into exp-0.10-mark17
Conflicts:
	configure.ac
	doc/release-process.md
	src/clientversion.h
	src/qt/bitcoingui.cpp
2015-04-11 20:51:04 -10:00
Warren Togami
d9ec5086f0 Revert "Litecoin: Litecoin Qt Translations"
This reverts commit 49d11b4080e64ae25f2e492394ca23ad1054607c.
2015-04-11 16:47:49 -10:00
Wladimir J. van der Laan
34127c77cb
doc: update release notes pre rc2 2015-04-09 10:19:52 +02:00
Gavin Andresen
1c62e84099
Keep mempool consistent during block-reorgs
This fixes a subtle bug involving block re-orgs and non-standard transactions.

Start with a block containing a non-standard transaction, and
one or more transactions spending it in the memory pool.

Then re-org away from that block to another chain that does
not contain the non-standard transaction.

Result before this fix: the dependent transactions get stuck
in the mempool without their parent, putting the mempool
in an inconsistent state.

Tested with a new unit test (adapted for 0.10).

Rebased-From: ad9e86dca11dce023d827d342e966f3806c39d27
Github-Pull: #5945
2015-04-06 11:38:43 +02:00
Wladimir J. van der Laan
149c1d890d
doc: Credit Jonas Nick in release notes
For discovering the vulnerability and discussing the fix that led to PR #5860.
2015-04-06 09:27:41 +02:00
Wladimir J. van der Laan
24e48991d3
Merge pull request #5961
bf1cc80 Docs: Use new Bitcoin.org download URLs (David A. Harding)
2015-04-03 07:49:39 +02:00
David A. Harding
bf1cc80372
Docs: Use new Bitcoin.org download URLs
To give the torrents (which use web seeds) better names, we updated the
URL scheme on bitcoin.org/bin. This updates the release notes and
release doc accordingly, plus updates some other details based on recent
changes to the site.

[skip ci]
2015-04-02 10:38:38 -04:00
Wladimir J. van der Laan
9e1cc16296
doc: add historical release notes for 0.10.0
Rebased-From: 15facb4aca75122b6ae0dcc6f6e112127e6a0e59
2015-04-01 18:44:49 +02:00
Wladimir J. van der Laan
fe3122580e
update release notes for #5953/#5900 2015-04-01 17:27:54 +02:00
Wladimir J. van der Laan
2b7636c3d6
Merge pull request #5953
a1f425b Add a consistency check for the block chain data structures (Pieter Wuille)

This is a port of #5900 to 0.10.

Github-Pull: #5900
2015-04-01 17:26:33 +02:00
Wladimir J. van der Laan
ae1479a114
update release notes after #5941 2015-04-01 16:48:23 +02:00
Pieter Wuille
aa587d4cae
Scale up addrman
This change was suggested as Countermeasure 6 in
Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman,
Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report
2015/263. March 2015.

Rebased-From: 1d21ba2f5ecbf03086d0b65c4c4c80a39a94c2ee
Github-Pull: #5941
2015-04-01 16:39:55 +02:00
Pieter Wuille
0c6f334c32
Always use a 50% chance to choose between tried and new entries
This change was suggested as Countermeasure 2 in
Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman,
Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report
2015/263. March 2015.

Rebased-From: c6a63ceeb4956933588995bcf01dc3095aaeb1fc
Github-Pull: #5941
2015-04-01 16:39:36 +02:00
Pieter Wuille
214154e6fc
Do not bias outgoing connections towards fresh addresses
This change was suggested as Countermeasure 2 in
Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman,
Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report
2015/263. March 2015.

Rebased-From: 68ba3f67bd500a64fb8932c6b41924ddc31d76f
Github-Pull: #5941
2015-04-01 16:39:30 +02:00
Pieter Wuille
2218d4bbe0
Simplify hashing code
Conflicts:
	src/addrman.cpp

Rebased-From: a8ff7c62edc63c7c94bc91c30b80995539ed7477
Github-Pull: #5941
2015-04-01 16:38:54 +02:00
Pieter Wuille
cf0218f8b2
Make addrman's bucket placement deterministic.
Give each address a single fixed location in the new and tried tables,
which become simple fixed-size arrays instead of sets and vectors.

This prevents attackers from having an advantages by inserting an
address multiple times.

This change was suggested as Countermeasure 1 in
Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman,
Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report
2015/263. March 2015.

It is also more efficient.

Conflicts:
	src/addrman.cpp
	src/addrman.h

Rebased-From: e6b343d880f50d52390c5af8623afa15fcbc65a2
Github-Pull: #5941
2015-04-01 16:38:47 +02:00
Pieter Wuille
b788994256
Switch addrman key from vector to uint256
Conflicts:
	src/addrman.cpp

Rebased-From: b23add5521e4207085d41a0266617e94435fc22e
Github-Pull: #5941
2015-04-01 16:38:31 +02:00
Wladimir J. van der Laan
90bef6638f No notable changes for minor release 2015-03-30 11:26:36 +02:00
Pieter Wuille
a1f425b48b Add a consistency check for the block chain data structures
This adds a -checkblockindex (defaulting to true for regtest), which occasionally
does a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive, and
mapBlocksUnlinked.
2015-03-27 17:24:07 -07:00
Wladimir J. van der Laan
4635a4c4e7
Translations update from transifex 2015-03-26 08:59:53 +01:00
Wladimir J. van der Laan
0eccf0ae30
Add commits (up to now) to release notes 2015-03-26 08:48:32 +01:00
Ruben de Vries
78f64ef0b2
don't trickle for whitelisted nodes
Rebased-From: fc720207e0e513e531b1f266b966a2ffa57b936a
Github-Pull: #5942
2015-03-26 08:39:00 +01:00
Wladimir J. van der Laan
a316622fd0
Clean out release notes for 0.10.1 2015-03-25 16:54:14 +01:00
Alex Morcos
1d2cdd2ef9
Fix InvalidateBlock to add chainActive.Tip to setBlockIndexCandidates
Rebased-From: cd3d67cf3b0d573d2c387c2ec35e8b52129863d9
Github-Pull: #5890
2015-03-24 14:51:36 +01:00
dexX7
c9e022b7ee Initialization: set Boost path locale in main thread
The path locale is lazy initialized and to avoid deinitialization errors
in multithreading environments, it is set explicitly by the main thread.

Conflicts:
	src/util.cpp
Rebased-From: 317e66c741aef0fd272e50aa2e82ff192ca5f7e5
Github-Pull: #5877
2015-03-24 08:45:24 +01:00
Wladimir J. van der Laan
10c09f98b2
Merge pull request #5926
8752b5c 0.10 fix for crashes on OSX 10.6 (Cory Fields)
2015-03-19 07:57:26 +01:00
Cory Fields
8752b5c882 0.10 fix for crashes on OSX 10.6
strnlen is available at build-time but not at runtime, causing a crash.

0.11 drops support for 10.6, so this is not needed in master.
2015-03-19 00:14:28 -04:00
Wladimir J. van der Laan
601327be8c
bump version to 0.10.1 in preparation of RC1 2015-03-18 13:01:10 +01:00
Pieter Wuille
ca301bf98c
Reduce fingerprinting through timestamps in 'addr' messages.
Suggested by Jonas Nick.

Rebased-From: 9c2737901b5203f267d21d728019d64b46f1d9f3
Github-Pull: #5860
2015-03-17 16:39:10 +01:00
Jonas Schnelli
2c0840631d
[QT] some mac specifiy cleanup (memory handling, unnecessary code)
Rebased-From: 8b60808c1eaddb402a699ba53d865932e08109ec
Github-Pull: #5880
2015-03-16 13:56:34 +01:00
Jonas Schnelli
81145a6ccd
[QT] fix OSX dock icon window reopening
fixes #5878

Rebased-From: 89e70e931d3d320d2dae4c296601aab113b2e508
Github-Pull: #5880
2015-03-16 13:56:13 +01:00
Alex Morcos
11173786ce
add RPC test for InvalidateBlock
Rebased-From: 88f6c8c3657cba81c65da34a7161c860c8a23c5f
Github-Pull: #5879
2015-03-12 17:51:52 +01:00
Alex Morcos
c91c660e49
fix InvalidateBlock to repopulate setBlockIndexCandidates
Rebased-From: a9af415887f03cb2565895bc55be72748549e527
Github-Pull: #5879
2015-03-12 17:51:00 +01:00
Cory Fields
002c8a2411
fix possible block db breakage during re-index
When re-indexing, there are a few cases where garbage data may be skipped in
the block files. In these cases, the indices are correctly written to the index
db, however the pointer to the next position for writing in the current block
file is calculated by adding the sizes of the valid blocks found.

As a result, when the re-index is finished, the index db is correct for all
existing blocks, but the next block will be written to an incorrect offset,
likely overwriting existing blocks.

Rather than using the sum of all valid blocks to determine the next write
position, use the end of the last block written to the file. Don't assume that
the current block is the last one in the file, since they may be read
out-of-order.

Rebased-From: bb6acff07982dda68b5c2ac81c99dbd7255bb9cc
Github-Pull: #5864
2015-03-11 08:34:43 +01:00
Ivan Pustogarov
200f29363b
Ignore getaddr messages on Outbound connections.
The only time when a client sends a "getaddr" message is when he
esatblishes an Outbound connection (see ProcessMessage() in
src/main.cpp).  Another bitcoin client is expected to receive a
"getaddr" message only on Inbound connection. Ignoring "gettaddr"
requests on Outbound connections can resolve potential privacy issues
(and as was said such request normally do not happen anyway).

Rebased-From: dca799e1db6e319fdd47e0bfdb038eab0efabb85
Github-Pull: #5442
2015-03-09 12:25:20 +01:00
Pieter Wuille
d5d8998028
Limit message sizes before transfer
This introduces a fixed limit for the size of p2p messages, and enforces it
before download.

Rebased-From: ba04c4a7801e7d68a5e84035b919e5c3626eb7a7
Github-Pull: #5843
2015-03-09 11:13:35 +01:00
Jonas Schnelli
786cf72c7f [Qt] fix a issue where "command line options"-action overwrite "Preference"-action (on OSX)
- fixes #5800

Conflicts:
	src/qt/bitcoingui.cpp

Rebased-From: 9bbb880be44dbc378bdd3210eed42eaa77efb774
Github-Pull: #5858
2015-03-09 11:05:43 +01:00
Pieter Wuille
aeb9279228
Better fingerprinting protection for non-main-chain getdatas.
With headers-first we can compare against the best header timestamp, rather
than using checkpoints which require code updates to maintain.

Rebased-From: 85da07a5a001a563488382435202b74a3e3e964a
Github-Pull: #5820
2015-02-26 17:14:14 +01:00
Gregory Maxwell
23126a0a09 Sanitize command strings before logging them.
Normally bitcoin core does not display any network originated strings without
 sanitizing or hex encoding.  This wasn't done for strcommand in many places.

This could be used to play havoc with a terminal displaying the logs,
 especially with printtoconsole in use.

Thanks to Evil-Knievel for reporting this issue.

Conflicts:
	src/main.cpp
2015-02-24 08:40:07 +01:00
Suhas Daftuar
d148f62e00
Acquire CCheckQueue's lock to avoid race condition
This fixes a potential race condition in the CCheckQueueControl constructor,
which was looking directly at data in CCheckQueue without acquiring its lock.

Remove the now-unnecessary friendship for CCheckQueueControl

Rebased-From: cf008ac8c3c5d582562d88ad89020daef3e64dcb
Github-Pull: #5721
2015-02-23 19:34:24 +01:00
fsb4000
7f502be259
fix crash: createmultisig and addmultisigaddress
Rebased-From: e5d9d77df2de715d24638e3bab78750b7ad3e1fd
Github-Pull: #5706
2015-02-20 09:53:44 +01:00
Cory Fields
047a898317
gitian: don't add . to tar list
Since permissions and timestamps are changed for the sake of determinism,
. must not be added to the archive. Otherwise, tar may try to modify pwd when
extracting.

Rebased-From: 0c6ab676ee7d2071d48775d81116c86dacc6abf6
Github-Pull: #5790
2015-02-13 09:55:11 +01:00
Wladimir J. van der Laan
327d3e8824
Merge pull request #5771
7b6c847 doc/release-notes.md: Explain affect of BIP66 on miners (Luke Dashjr)
2015-02-09 12:28:44 +01:00
Luke Dashjr
7b6c847f67 doc/release-notes.md: Explain affect of BIP66 on miners 2015-02-08 22:40:24 +00:00
Warren Togami
77d101983e Litecoin Core v0.10.0.2 2015-02-06 11:49:40 -10:00
Warren Togami
dabcb10db7 Litecoin: README.md 2015-02-06 11:48:56 -10:00
Warren Togami
af295318ed Litecoin: Checkpoint at 721000 2015-02-06 11:48:56 -10:00