Commit Graph

4243 Commits

Author SHA1 Message Date
Gregory Maxwell
0a48b680f8 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 19:58:21 -10:00
Warren Togami
a41a0ad07b Squashed 'src/leveldb/' content from commit be1b0ff
git-subtree-dir: src/leveldb
git-subtree-split: be1b0ff1fcd6ad820a7fd111ac671fb51cc68001
2013-08-21 19:45:48 -10:00
Warren Togami
36c86137ef Merge commit 'a41a0ad07bdc1f6fd67abcad1d6ce1bc74c1bf76' as 'src/leveldb' 2013-08-21 19:45:48 -10:00
Pieter Wuille
adf0e05d05 Remove inline LevelDB to prepare for git-subtree version 2013-08-21 19:36:54 -10:00
Gavin Andresen
0d90ac1b56 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-21 18:00:02 -10:00
Gavin Andresen
b1f636b161 Revert "Truncate oversize 'tx' messages before relaying/storing."
This reverts commit 7cc960f8f5.
2013-08-21 17:59:53 -10:00
Gavin Andresen
5ee73ff86c 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-21 17:59:45 -10:00
Charlie Lee
4fa62daaf9 Merge pull request #64 from pooler/master-0.8
Add a height parameter to getnetworkhashps
2013-08-06 03:11:48 -07:00
pooler
7446c4adc9 Update description of GetNetworkHashPS() 2013-08-06 11:34:14 +02:00
Michael Ford
8cbd4c7132 Update HomeBrew osx makefile patch to account for recent changes to makefile 2013-08-05 11:31:32 -10:00
coblee
dbc5f6d7f4 Litecoin: Fix alert test
Protocol version is now 70002. So 70001 alerts no longer apply to us. But the test is still testing the alert notify behavior correctly because there is still one alert that applies.
2013-08-05 00:58:47 -07:00
pooler
de5250f938 Add a height parameter to getnetworkhashps 2013-08-04 23:09:05 +02:00
Warren Togami
1b5cb0866e Litecoin version 0.8.3.7 2013-07-30 15:17:52 -10:00
Peter Todd
176e54c5f7 Add NODE_BLOOM service bit and option to disable bloom filters 2013-07-30 15:16:45 -10:00
Warren Togami
1877fb9aae Litecoin: Unit test for scrypt_1024_1_1_256() hash
Uncomment the block.print(); in main.cpp below printf("received block ..."
if you want to capture raw input bytes and PoW hashes for testing.
2013-07-29 01:59:48 -10:00
Baruch Rutman
edb1e32bc1 Litecoin: Fix Hebrew translations, replace all bitcoin references with litecoin. 2013-07-29 01:59:45 -10:00
Warren Togami
6c984620fa Litecoin version 0.8.3.6 2013-07-17 18:19:44 -10:00
Warren Togami
07b32c2cb2 Merge branch 'exp-btc09backports' into exp-mark11b
Conflicts:
	src/base58.h
2013-07-17 18:16:01 -10:00
Warren Togami
c96cc64399 Litecoin: Add aspect, coblee, face, thrasher, wtogami to gitian download scripts. 2013-07-17 18:13:33 -10:00
Anton Yemelyanov
4fdc6ba448 Litecoin: Force splash text to look correct with Win32 font scaling 2013-07-17 18:13:33 -10:00
Anton Yemelyanov
ba332eed0e Litecoin: All-resolution pixmap, to make win32 builds determisitic again 2013-07-17 18:13:33 -10:00
Rama McIntosh
ea1c057b67 Litecoin: MacOS X icon and deploy script 2013-07-17 18:13:33 -10:00
Warren Togami
378ff026d0 Litecoin: Reduce MinTxFee to 0.02 LTC 2013-07-17 18:13:33 -10:00
Warren Togami
14c302d283 Litecoin: We don't use this script to verify GPG signatures. 2013-07-17 18:13:33 -10:00
Anton Yemelyanov
ed20c26ef7 Litecoin: Splash layout and leather wallet artwork 2013-07-17 18:13:33 -10:00
Anton Yemelyanov
bd7c864288 Litecoin: Icons and Artwork 2013-07-17 18:13:33 -10:00
Warren Togami
ed725643ca Litecoin: Documentation s/bitcoin/litecoin/ 2013-07-17 18:13:26 -10:00
Warren Togami
0331f6e029 Litecoin: Localization tweaks for 0.8.3.x in src/qt/locale/*.ts 2013-07-13 02:13:35 -10:00
Warren Togami
25cf33b01d Litecoin: User-visible strings s/bitcoin/litecoin/
Source filenames, comments and other aspects hidden to end-users are not renamed in an effort to minimize the diff.
2013-07-13 02:13:35 -10:00
coblee
5fd2fde9e4 Litecoin: Fix alert tests to use Litecoin alert key. 2013-07-13 02:13:35 -10:00
Warren Togami
56af6c44a5 Litecoin: Tests 2013-07-13 02:13:35 -10:00
Warren Togami
4014afe2e6 Litecoin: Build and Makefile changes 2013-07-13 02:13:28 -10:00
Pieter Wuille
3a619b01b3 Fix minor backward incompatibility
The key refactor changed the way unencrypted private keys with compressed
public key are stored in the wallet. Apparently older versions relied on
this to verify the correctness of stored keys.

Note that earlier pre-release versions do risk creating wallets that can
not be opened by 0.8.3 and earlier.
2013-07-13 01:14:23 -10:00
Warren Togami
4f21807de8 Litecoin: Runtime paths s/bitcoin/litecoin/ 2013-07-06 21:05:08 -10:00
Warren Togami
3ce5732926 Litecoin: DUST_SOFT_LIMIT=0.01, DUST_HARD_LIMIT=0.0001, 250KB block soft limit, 100KB tx size limit 2013-07-06 21:05:07 -10:00
Adrian Gallagher
94bf538131 Litecoin: Remove native coin generation. 2013-07-06 21:05:07 -10:00
Warren Togami
de45a48874 Litecoin: temporarily disable v2 block lockin until future 95% miner vote to coincide with planned spam tx removal 2013-07-06 21:05:07 -10:00
Warren Togami
d8b855df41 Litecoin: Litecoin does not need special compat rule before Aug 15th BDB hardfork deadline because our standard block size is already comfortably 250KB. 2013-07-06 21:05:07 -10:00
Warren Togami
8bc9dbd316 Litecoin: BIP50 short-term limits to avoid 10,000 BDB lock until 15 August 2013 2013-07-06 21:05:07 -10:00
Warren Togami
0d1d058451 Litecoin: IsDust() detection disabled, allows any valid dust to be relayed. The fees imposed on each dust txo is considered sufficient spam deterrant. 2013-07-06 21:05:07 -10:00
Warren Togami
bb88edbd0f Litecoin: Checkpoints 2013-07-06 21:05:07 -10:00
Warren Togami
a85d88ff10 Litecoin: Seeds 2013-07-06 21:05:07 -10:00
Warren Togami
3a9b5c718c Litecoin: BIP16 began October 1st, 2012. BIP30 was never violated, make permanent. 2013-07-06 21:05:07 -10:00
Warren Togami
267715362c Litecoin: getworkex DEPRECATED - will be removed in TBD future version
Who wrote this?  Earliest reference is from litecoin-0.5.x
638f9b1b src/bitcoinrpc.cpp (Alex                     2012-02-15 22:53:27 +0400
2013-07-06 21:05:07 -10:00
coblee
164ae00f46 Litecoin: Fix zeitgeist2 attack thanks to Lolcust and ArtForz. This fixes an issue where a 51% attack can change difficulty at will. Go back the full period unless it's the first retarget after genesis. 2013-07-06 21:05:07 -10:00
coblee
db4d8e21d9 Litecoin: improve dust spamming prevention algorithm to add base fee for each output that's less than a CENT 2013-07-06 21:05:07 -10:00
coblee
5e17fcb020 Litecoin: Reduce amount that peers can adjust our time to eliminate an attack vector. 2013-07-06 21:05:06 -10:00
coblee
2db43142bc Litecoin: Add mininput to deal with dust spam. By default, mininput is set to 0.0001. This means that create transaction will ignore any transactions with an output value less than 0.0001. You can override the default by passing in -mininput on startup or by calling setmininput.
Historically this patch allowed wallets to perform without delay after the dust spam attack during November 2011.
2013-07-06 21:05:06 -10:00
coblee
3da6dc7302 Litecoin: getnetworkhashps 2013-07-06 21:05:06 -10:00
coblee
0b646aed42 Litecoin: Protocol, genesis and parameters * 2.5 minute average between blocks * 3.5 days between diff changes * 84 million coin limit * Addresses begin with L 2013-07-06 21:05:06 -10:00