Commit Graph

3026 Commits

Author SHA1 Message Date
Miguel Freitas
7f9bd14f1f openssl's thread id callback is needed for stable operation.
intermittent block hash validation errors seen otherwise, most likely due to libtorrent hasher using openssl lib from another thread.
2014-01-28 22:45:58 -02:00
Miguel Freitas
43e57ad05f 0.9.11 2014-01-28 18:11:17 -02:00
Miguel Freitas
a9f53cce98 trying to reduce the occurrences of "INCOMING ERROR: height > getBestHeight" 2014-01-27 20:10:32 -02:00
Miguel Freitas
2aa2b7b3a3 should fix mapNewBlock variable that commented out last year. 2014-01-27 16:15:43 -02:00
Miguel Freitas
0b906f2494 delay torrent initialization 2014-01-26 15:12:10 -02:00
Miguel Freitas
284021ed7e new dns seeder. thanks gombadi! 2014-01-26 13:58:50 -02:00
Miguel Freitas
128c0a506b less noisy debug.log using html ui 2014-01-25 12:57:35 -02:00
Miguel Freitas
a884c002ce 0.9.9 now compiles under cygwin! 2014-01-25 12:55:04 -02:00
Miguel Freitas
34936903fc PRIO_MAX is not defined in cygwin, why? 2014-01-24 20:30:11 -02:00
Miguel Freitas
8c43acf256 update voting usernames 2014-01-24 18:55:31 -02:00
Miguel Freitas
440525ebaa apply leveldb cygwin patch from http://code.google.com/p/leveldb/issues/detail?id=188 2014-01-24 10:12:07 -02:00
Miguel Freitas
1e1a23b5d8 fix GetNextInMainChain (thanks Pieter Wuille for suggesting this) 2014-01-23 19:25:08 -02:00
Miguel Freitas
85fa3d4b9a checkpoints + soft checkpoint update 2014-01-21 21:27:09 -02:00
Miguel Freitas
102d172ca3 highly experimental soft checkpoint based on consensus 2014-01-19 22:25:22 -02:00
Miguel Freitas
1df2b24f90 0.9.7 2014-01-19 01:00:24 -02:00
Miguel Freitas
6416fa5d58 another try to fix the infinite recursion triggered when the new (longer) chain
contains an invalid transaction (due to older, buggy, twisterd or attacker).
i'm not entirely convinced that original bitcoin couldn't be attacked the same
way (51% is still needed, but crashing the client is pretty bad).
2014-01-19 00:53:15 -02:00
Miguel Freitas
19ff320d24 replace HaveTxIndex for GetTransaction. this is a more secure check since it also
verifies if tx is part of current main chain. old test may cause problems for people
trying to reregister their usernames in case of reversal attack since nodes might incorrectly
refuse to accept/retransmit the new transaction.
2014-01-18 20:36:18 -02:00
Miguel Freitas
defb9ef6a9 First try to add proper autotools build system 2014-01-17 16:36:06 -02:00
toyg
0ada1bda54 fixes #56 2014-01-17 01:21:01 +00:00
Miguel Freitas
d19fef0028 nothing interesting, just checkpointing + warning fix 2014-01-16 14:43:37 -02:00
gubatron
5d582e92b6 merging last changes from original repository 2014-01-15 17:52:48 -05:00
gubatron
613a312f65 silenced unused variable warnings. 2014-01-15 12:54:17 -05:00
miguelfreitas
194d17cd46 Merge pull request #71 from s9h869e5k5/fix-valgrind-warnings
Avoid valgrind warning.
2014-01-15 08:29:04 -08:00
Miguel Freitas
25128d93dd refresh mention resource in dht 2014-01-15 14:00:39 -02:00
Miguel Freitas
8631460293 reduce MIN_CORE_FILEDESCRIPTORS again, now that we have a single leveldb for all torrents.
MIN_CORE_FILEDESCRIPTORS can't be much higher because it will limit nMaxConnections.
2014-01-15 08:47:05 -02:00
Jö Fahlke
3f4cc4535d Explicitly initialize members of fundamental types; avoids "jump depends on
uninitialized value"-warnings by valgrind.
2014-01-15 03:30:25 +00:00
Miguel Freitas
1e577bfdfb missing function. thanks jpfox 2014-01-13 19:11:12 -02:00
Miguel Freitas
f3b9fc3148 validate post to promote. fix #34 2014-01-13 18:06:38 -02:00
Miguel Freitas
09625b2212 Join multiple dhtget responses. fix #14 2014-01-13 17:30:29 -02:00
Miguel Freitas
d30a86a538 rpcallowip is important 2014-01-13 15:01:41 -02:00
Miguel Freitas
4c25acc6af partialy revert changeset 77d1a4fb. fixed one case (that -reindex would fix anyway) but broke another one. 2014-01-13 09:40:18 -02:00
Miguel Freitas
055240b2a9 fix "CreateNewBlock() : ConnectBlock failed" due to "duplicate username".
improve transaction collect in CreateNewBlock
2014-01-13 09:16:04 -02:00
Miguel Freitas
bf3ec900d0 some nodes are still on the wrong chain (block 18973 with an invalid spamuser). checkpoint the
correct branch to force them to go to the right chain.
2014-01-13 08:03:43 -02:00
Miguel Freitas
e0dad4a114 update version 2014-01-12 23:55:55 -02:00
Miguel Freitas
77d1a4fb7b trying to fix infinite recursion in SetBestChain 2014-01-12 23:44:33 -02:00
Miguel Freitas
ba43f10e8f move spamuser key validation from CheckTransation to ConnectBlock.
reason: this is not context-independent validation.
2014-01-12 20:41:58 -02:00
Miguel Freitas
fbc7d9a77a generalize checking if tx is in mainchain for GetTransaction 2014-01-12 19:29:33 -02:00
miguelfreitas
7e5c85279a Merge pull request #49 from toyg/osx_makefile_backport
osx makefile backport of be34510
2014-01-10 12:33:04 -08:00
Miguel Freitas
9d5d203a0c bugfix: weak checking for existing users (the transaction may exist in index only
but the chain it belongs was invalidated) caused fork between users who erased their
block database from yesterday and those who didn't. improve the checking (test
if tx is actually in main chain). add another checkpoint. enforce.
2014-01-10 17:36:23 -02:00
Miguel Freitas
9f9bb58635 disable safemode & add checkpoint 2014-01-10 16:04:52 -02:00
toyg
43ac45c925 osx makefile backporting of commit be34510a9a 2014-01-10 02:52:04 +00:00
Miguel Freitas
be34510a9a When passing CC or CXX down to sub-makes, add quotes around it so that
blanks (say, CC=ccache distcc gcc -m64) don't mess things up.
2014-01-09 22:48:58 -02:00
Miguel Freitas
58d905aab3 change max block size as well 2014-01-09 21:50:28 -02:00
Miguel Freitas
394333a8bb increase the number of blocks to check at startup to force people to move to the right chain. 2014-01-09 15:03:50 -02:00
Miguel Freitas
6b01734ccf fix segfault in dhtget when ses is NULL (http://pastebin.com/rcJQm48W) 2014-01-09 14:48:42 -02:00
Miguel Freitas
23cb6fbdb6 limit transaction size 2014-01-09 12:21:58 -02:00
Miguel Freitas
5ab658ae3d enforce bencoded size. sanity check. 2014-01-07 16:51:40 -02:00
Miguel Freitas
8e80324c36 try to reduce the level of useless dht tracker requests by not announcing empty torrents we do not follow. 2014-01-06 21:59:40 -02:00
miguelfreitas
4eab7e4d81 Merge pull request #38 from toyg/usermessages
Replaced references to bitcoin/bitcoind in user-visible messages
2014-01-06 10:04:56 -08:00
Miguel Freitas
8287b2b1e1 use a single database for all swarms of the same libtorrent session.
upgrade resume file to version 2 and enforce on loading (to force existing clients to download all pieces again).
fixes #24.
2014-01-06 15:10:32 -02:00