aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-09-11Store fewer orphan tx by default, add -maxorphantx optionGavin Andresen
There is no reason to store thousands of orphan transactions; normally an orphan's parents will either be broadcast or mined reasonably quickly. This pull drops the maximum number of orphans from 10,000 down to 100, and adds a command-line option (-maxorphantx) that is just like -maxorphanblocks to override the default.
2014-09-11Make max number of orphan blocks kept in memory a startup parameter (fixes ↵shshshsh
#4253) Rebased-From: 7b45d943b29a443f1ac808c9ee4eeed6df0db9cc
2014-09-11Stricter handling of orphan transactionsGavin Andresen
Prevent denial-of-service attacks by banning peers that send us invalid orphan transactions and only storing orphan transactions given to us by a peer while the peer is connected. Rebased-From: c74332c67806ed92e6e18de174671a7c30608780
2014-09-11remove useless millisleepphantomcircuit
reduces time to service requests improving performance Rebased-From: 9189f5fe4df1ac7ea6ca75ceada867beafda90a9
2014-09-10Avoid returning many "inv" orphansJeff Garzik
Rebased-From: 540ac45 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-09-10Limit CNode::mapAskForWladimir J. van der Laan
Tighten resource constraints on CNode. Rebased-From: d4168c8 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-09-10Fix crashing bug caused by orphan(s) with duplicate prevout.hashGavin Andresen
Rebased-From: def2fdb Rebased-By: Wladimir J. van der Laan
2014-09-09Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrevWladimir J. van der Laan
Rebased-From: 89d91f6 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-09-01Filter translations through new update-translations scriptWladimir J. van der Laan
This does not add any new messages from transifex, it just filters the current ones.
2014-08-22qt: Language update for 0.9.3Wladimir J. van der Laan
2014-08-21libc-compat: add new symbol that's now neededCory Fields
Rebased-From: 565e569
2014-08-21build: Fix boost build on some platformsCory Fields
When the libpath doesn't line up with the value from config.sub, we don't find the correct path to boost's libs. This adds a hack to try another path before giving up. Should close #3219. Rebased-From: 54c7df81
2014-08-21qt: fix unicode character display on osx when building with 10.7 sdkCory Fields
Conflicts: src/qt/bitcoin.cpp Rebased-From: 292cc072
2014-08-19Avoid querying DNS seeds, if we have open connections.Jeff Garzik
The goal is to increase independence and privacy. Rebased-From: 2e7009d
2014-08-18Increase IsStandard() scriptSig lengthPeter Todd
Removes the limits on number of pubkeys for P2SH CHECKMULTISIG outputs. Previously with the 500 byte scriptSig limit there were odd restrictions where even a 1-of-12 P2SH could be spent in a standard transaction(1), yet multisig scriptPubKey's requiring more signatures quickly ran out of scriptSig space. From a "stuff-data-in-the-blockchain" point of view not much has changed as with the prior commit now only allowing the dummy value to be null the newly allowed scriptSig space can only be used for signatures. In any case, just using more outputs is trivial and doesn't cost much. 1) See 779b519480d8c5346de6e635119c7ee772e97ec872240c45e558f582a37b4b73 Mined by BTC Guild.
2014-08-18Check redeemScript size does not exceed 520 byte limitPeter Todd
redeemScripts >520bytes can't be spent due to the MAX_SCRIPT_ELEMENT_SIZE limit; previously the addmultisigaddress and createmultisig RPC calls would let you violate that limit unknowingly. Also made the wallet code itself check the redeemScript prior to adding it to the wallet, which in the (rare) instance that a user has added an invalid oversized redeemScript to their wallet causes an error on startup. The affected key isn't added to the wallet; other keys are unaffected.
2014-08-18Ignore too-long redeemScripts while loading walletWladimir J. van der Laan
This avoids that long redeemScripts that were grandfathered in prevent the wallet from loading. Fixes #4313. Rebased-From: 18116b0
2014-08-18base58: add paranoid return value checksJeff Garzik
Rebased-From: 88df548
2014-08-18key.cpp: fail with a friendlier message on missing ssl EC supportAndrew Poelstra
Previously if bitcoind is linked with an OpenSSL which is compiled without EC support, this is seen as an assertion failure "pKey != NULL" at key.cpp:134, which occurs after several seconds. It is an esoteric piece of knowledge to interpret this as "oops, I linked with the wrong OpenSSL", and because of the delay it may not even be noticed. The new output is : OpenSSL appears to lack support for elliptic curve cryptography. For more information, visit https://en.bitcoin.it/wiki/OpenSSL_and_EC_Libraries : Initialization sanity check failed. Bitcoin Core is shutting down. which occurs immediately after attempted startup. This also blocks in an InitSanityCheck() function which currently only checks for EC support but should eventually do more. See #4081. Rebased-From: 4a09e1d
2014-08-18Add a new checkpoint at block 295,000Trevin Hofmann
Block 295,000 seems to meet the criteria of a reasonable timestamp and no strange transactions. 295,000 is the current block height in the bootstrap.dat torrent provided by jgarzik. Rebased-From: 125fba1
2014-08-18Add a way to limit deserialized string lengthsPieter Wuille
and use it for most strings being serialized. Rebased-From: 216e9a4
2014-08-18AvailableCoins: acquire cs_main mutexPavel Vasin
It's required when called from WalletModel Rebased-From: ea3acaf
2014-08-18Avoid a segfault on getblock if it can't read a block from disk.Ruben Dario Ponticelli
Rebased-From: 954d2e7
2014-08-18qt: fix 'opens in testnet mode when presented with a BIP-72 link with no ↵Julian Haight
fallback' Passes tests: ``` $ ./bitcoin-qt 'bitcoin:?r=http://www.example.com/' .. fixed the original problem - this launches mainnet. $ ./bitcoin-qt 'bitcoin:mngeNQbTKnmaMbx8EXCYdwUbnt9JJD52cC' .. launches testnet $ ./bitcoin-qt -testnet 'bitcoin:1NXXeQRyMFFFRfyUix2o7mk1vhvk2Nxp78' .. sanity check - launches mainnet. ``` Fixes #4355. Closes #4411. Rebased-From: dd49e92
2014-08-18Clarify that redeemScript is often optionalZak Wilcox
Rebased-From: 6265ecc
2014-08-18Remove bignum dependency for scriptsCory Fields
Rebased-From: 48d8eb1 27bff74 4f497cd 05e3ecf 90320d6 b1fdd54
2014-08-18In -? output: -keypool, -gen, -genproclimit depend on ENABLE_WALLETZak Wilcox
Rebased-From: a7e1d50
2014-08-18Don't poll showmyip.com, it doesn't exist anymoreWladimir J. van der Laan
Fixes #4679. This leaves us with only one candidate, checkip.dyndns.org. GetMyExternalIP should be phased out as soon as possible. Rebased-From: c33b983
2014-08-18Version bump for 0.9.3Wladimir J. van der Laan
2014-07-04Remove NumBlocksOfPeersWladimir J. van der Laan
Generally useless information. Only updates on connect time, not after that. Peers can easily lie and the median filter is not effective in preventing that. In the past it was used for progress display in the GUI but `CheckPoints::guessVerificationProgress` provides a better way that is now used. It was too easy to mislead it. Peers do lie about it in practice, see issue #4065. From the RPC, `getpeerinfo` gives the peer raw values, which are more useful.
2014-06-19Bump version to 0.9.2.1v0.9.2.1Wladimir J. van der Laan
2014-06-19rpc: Add acceptors only when listening succeededWladimir J. van der Laan
Rebased-From: 6afa493 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-06-19rpc: Ignore and log errors during cancelWladimir J. van der Laan
Cancelling the RPC acceptors can sometimes result in an error about a bad file descriptor. As this is the shutdown sequence we need to continue nevertheless, ignore these errors, log a warning and proceed. Fixes #4352.
2014-06-18Qt: Fix monospace font in osx 10.9Cory Fields
The "Monospace" hint was added in Qt 4.8, and it works as intended as opposed to "TypeWriter" which fails to load a font. Rebased-From: e9df7f8 Rebased-By: Wladimir J. van der Laan
2014-06-06qt: Periodic translation updatev0.9.2rc2Wladimir J. van der Laan
Rebased-From: db41541 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-06-06CWallet: fix nTimeFirstKey init, by making constructor init common codeJeff Garzik
Don't repeat yourself etc. Rebased-From: d04fd3e Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-06-03Properly initialize CWallet::nTimeFirstKeytm314159
Rebased-From: 91855f2 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-06-02Use pnode->nLastRecv as sync score directlyHuang Le
NodeSyncScore() should find the node which we recv data most recently, so put a negative sign to pnode->nLastRecv is indeed wrong. Also change the return value type to int64_t. Signed-off-by: Huang Le <4tarhl@gmail.com> Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 09a54a6
2014-06-01Periodic language updatev0.9.2rc1Wladimir J. van der Laan
Pull updated translations from Transifex before 0.9.2 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 11ef78f
2014-06-01Set client version to releaseWladimir J. van der Laan
No longer show the "Do not use..." banner.
2014-06-01Limit number of known addresses per peerPieter Wuille
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 5823449
2014-05-30osx: Fix missing dock menu with qt5Cory Fields
Qt5 Removed the qt_mac_set_dock_menu function and left no replacement. It was later re-added and deprecated for backwards-compatibility. Qt5.2 adds the non-deprecated QMenu::setAsDockMenu(). Use that when possible. Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: c21c74b
2014-05-29No references to centralized databases in help text.Pieter Wuille
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: b5ef85c
2014-05-29[Qt] Fix Start bitcoin on system loginCozz Lovan
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 066d9a5
2014-05-23qt: Periodic language updateWladimir J. van der Laan
Last-minute language update before release 0.9.2. Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: a8a0db6
2014-05-23Replace non-threadsafe gmtime and setlocaleWladimir J. van der Laan
Make DateTimeStrFormat use boost::posix_time. Also re-enable the util_DateTimeStrFormat tests, as they are no longer platform specific. Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 3e8ac6a
2014-05-23Replace non-threadsafe strerrorWladimir J. van der Laan
Log the name of the error as well as the error code if a network problem happens. This makes network troubleshooting more convenient. Use thread-safe strerror_r and the WIN32 equivalent FormatMessage. Conflicts: src/netbase.cpp Rebased-By: Wladimir van der Laan <laanwj@gmail.com> Rebased-From: a60838d
2014-05-21Add missing LOCK(cs_main)Pieter Wuille
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 305ccaa
2014-05-21qt: Periodic language updateWladimir J. van der Laan
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 6fcdad7
2014-05-21remove ParseString(...) which is never usedKamil Domanski
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: be54b87