aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Skip verifying transaction signatures during initial block-chain downloadGavin Andresen2011-09-261-3/+10
| | |
| * | Merge pull request #517 from gavinandresen/DoSpreventionGavin Andresen2011-09-261-29/+46
| |\ \ | | | | | | | | Denial-of-service prevention
| | * | More denial-of-service misbehavior detection: version/addr/inv/getdata messagesGavin Andresen2011-09-211-0/+13
| | | |
| | * | Transaction/Block denial-of-service detection/responseGavin Andresen2011-09-211-29/+33
| | |/
| * | Merge pull request #521 from laanwj/qtGavin Andresen2011-09-261-0/+11
| |\ \ | | |/ | |/| Qt GUI
* | | use median filter for peer-reported reported number of blocksWladimir J. van der Laan2011-09-281-11/+5
| | | | | | | | | | | | | | | | | | - fixes problem that one misconfigured or malicious node can mess up progress bar - implementation in src/util.h - testcase in src/test/util_tests.cpp
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-231-3/+5
|\| | | |/ |/|
| * log low-level network messages only when fDebug is setNils Schneider2011-09-171-3/+5
| |
* | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-161-8/+8
|\|
| * Merge branch 'unique_coinbase' of ↵Gavin Andresen2011-09-071-8/+8
| |\ | | | | | | | | | git://gitorious.org/~Luke-Jr/bitcoin/luke-jr-bitcoin into unique_coinbase
| | * Bugfix: Use timestamp in coinbase rather than "bits", needed to ensure ↵Luke Dashjr2011-09-061-4/+3
| | | | | | | | | | | | coinbase txn is unique even if address is the same
| | * Merge branch 'getwork_dedupe' into unique_coinbaseLuke Dashjr2011-09-061-4/+5
| | |
* | | clarify function signature (GetNumBlocksOfPeers) and use number of 'frozen' ↵Wladimir J. van der Laan2011-09-111-5/+5
| | | | | | | | | | | | blocks as initial value for number of peer blocks
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-071-12/+12
|\| | | | | | | | | | | | | | Conflicts: .gitignore
| * | Optimize database writes for transactions with lots of TxIns.Gavin Andresen2011-09-051-12/+12
| | | | | | | | | | | | Patch from ArtForz, who discovered the problem.
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-031-1/+3
|\| |
| * | Versions 0.3.20 THROUGH 0.3.23 have trouble with blockchain downloads; avoid ↵Gavin Andresen2011-09-021-1/+3
| | | | | | | | | | | | them
| * | Do not try to download blockchain from 0.3.23 nodesGavin Andresen2011-09-021-1/+1
| | |
* | | update to work with new lock system, add protocol.* to build systemWladimir J. van der Laan2011-09-021-2/+9
| | |
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-021-11/+13
|\| | | | | | | | | | | | | | Conflicts: src/main.cpp
| * | Merge pull request #467 from gavinandresen/keypoolzeroGavin Andresen2011-09-011-1/+1
| |\ \ | | | | | | | | Logic running with -keypool=0 was wrong (empty keys were being returned).
| | * | Logic running with -keypool=0 was wrong (empty keys were being returned). ↵Gavin Andresen2011-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #445 Renames GetOrReuseKeyFromKeyPool to GetKeyFromPool, with fAllowReuse arg and bool result.
| * | | Merge branch 'code-cleanup' of git://github.com/muggenhor/bitcoinGavin Andresen2011-09-011-2/+2
| |\ \ \ | | |/ / | |/| |
| | * | Make some global variables less-global (static)Giel van Schijndel2011-08-191-2/+2
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly make these global variables less-global to reduce the maximum scope of this global state. In my experience global variables tend to be a major source of bugs. As such the less accessible they are the less likely they are to be the source of a bug. Signed-off-by: Giel van Schijndel <[email protected]>
| * | Merge pull request #470 from fabianhjr/masterGavin Andresen2011-09-011-7/+9
| |\ \ | | | | | | | | Checkpoints
| | * | Updated checkpoints, maybe Tx fee should be reduced to 0.0001 from 0.0005 ↵Fabian H jr.2011-08-151-7/+9
| | | | | | | | | | | | | | | | and maximum minimum tx should be 0.0010.
| * | | Fix rpc-hanging deadlocksGavin Andresen2011-08-311-1/+1
| | |/ | |/| | | | | | | | | | Collapsed multiple wallet mutexes to a single cs_wallet, to avoid deadlocks with wallet methods that acquired locks in different order. Also change master RPC call handler to acquire cs_main and cs_wallet locks before executing RPC calls; requiring each RPC call to acquire the right set of locks in the right order was too error-prone.
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-08-221-41/+0
|\| |
| * | Remove unused ScanMessageStart functionGavin Andresen2011-08-161-41/+0
| |/
* | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-08-161-0/+1
|\|
| * Merge pull request #458 from TheBlueMatt/copyrightGavin Andresen2011-08-111-0/+1
| |\ | | | | | | Unify copyright notices.
| | * Unify copyright notices.Matt Corallo2011-08-091-0/+1
| | | | | | | | | | | | | | | | | | To a variation on: // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2011 The Bitcoin developers
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-08-111-1/+10
|\| |
| * | Merge pull request #459 from jgarzik/char-msgstartGavin Andresen2011-08-101-1/+1
| |\ \ | | | | | | | | Use 'unsigned char' rather than 'char' for pchMessageStart.
| | * | Use 'unsigned char' rather than 'char' for pchMessageStart.Venkatesh Srinivas2011-08-101-1/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regarding https://bitcointalk.org/index.php?topic=28022.0 main.cpp has: "char pchMessageStart[4] = { 0xf9, 0xbe, 0xb4, 0xd9 };" Per discussion on the thread linked, leaving the signedness of pchMessageStart is unsafe for values > 0x80. This patch specifies 'unsigned char' in main.cpp and net.h. Signed-off-by: Jeff Garzik <[email protected]>
| * / Check for duplicate txins in CheckTransaction.Matt Corallo2011-07-311-0/+9
| |/
* | Merge remote branch 'upstream/master'Wladimir J. van der Laan2011-07-261-3/+0
|\| | | | | | | | | Conflicts: src/bitcoinrpc.cpp
| * Merge pull request #403 from sipa/cbitcoinaddressJeff Garzik2011-07-241-3/+0
| |\ | | | | | | keys indexed by address + introduced CBitcoinaddress
| | * get rid of mapPubKeysPieter Wuille2011-07-171-3/+0
| | | | | | | | | | | | | | | Make CKeyStore's interface work on uint160's instead of pubkeys, so no separate global mapPubKeys is necessary anymore.
* | | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-07-221-0/+1
|\| |
| * | Actually use mapAlreadyAskedFor.Matt Corallo2011-07-211-0/+1
| |/ | | | | | | | | | | | | | | Previously, mapAlreadyAskedFor was read from, but never added to. The original intent was to use mapAlreadyAskedFor to keep track of the time an item was requested and "Each retry is 2 minutes after the last". This implements that intent.
* / make initial block download reporting somewhat better by tracking version ↵Wladimir J. van der Laan2011-07-171-1/+5
|/ | | | responses
* Single DB transaction for all addresses in a messagePatrick Varilly2011-07-141-1/+4
| | | | Cuts disk activity at startup immensely
* fix warnings: expression result unused [-Wunused-value]Giel van Schijndel2011-07-131-1/+1
| | | | | | | | | | | | | | | In the assert()s take advantage of the fact that string constants ("string") are effectively of type 'const char []', which when used in an expression yield a non-NULL pointer. An assertion that should always fail can thus be formulated as: assert(!"fail); An assertion where a text message should be added to the expression can be written as such: assert("message" && expression); Signed-off-by: Giel van Schijndel <[email protected]>
* Make an invalid addrIncoming so that old clients crash.Matt Corallo2011-07-131-1/+0
| | | | | This prevents old clients from opening, and thus corrupting or otherwise causing harm to encrypted wallets.
* Add wallet privkey encryption.Matt Corallo2011-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for ckeys, or enCrypted private keys, to the wallet. All keys are stored in memory in their encrypted form and thus the passphrase is required from the user to spend coins, or to create new addresses. Keys are encrypted with AES-256-CBC using OpenSSL's EVP library. The key is calculated via EVP_BytesToKey using SHA512 with (by default) 25000 rounds and a random salt. By default, the user's wallet remains unencrypted until they call the RPC command encryptwallet <passphrase> or, from the GUI menu, Options-> Encrypt Wallet. When the user is attempting to call RPC functions which require the password to unlock the wallet, an error will be returned unless they call walletpassphrase <passphrase> <time to keep key in memory> first. A keypoolrefill command has been added which tops up the users keypool (requiring the passphrase via walletpassphrase first). keypoolsize has been added to the output of getinfo to show the user the number of keys left before they need to specify their passphrase (and call keypoolrefill). Note that walletpassphrase will automatically fill keypool in a separate thread which it spawns when the passphrase is set. This could cause some delays in other threads waiting for locks on the wallet passphrase, including one which could cause the passphrase to be stored longer than expected, however it will not allow the passphrase to be used longer than expected as ThreadCleanWalletPassphrase will attempt to get a lock on the key as soon as the specified lock time has arrived. When the keypool runs out (and wallet is locked) GetOrReuseKeyFromPool returns vchDefaultKey, meaning miners may start to generate many blocks to vchDefaultKey instead of a new key each time. A walletpassphrasechange <oldpassphrase> <newpassphrase> has been added to allow the user to change their password via RPC. Whenever keying material (unencrypted private keys, the user's passphrase, the wallet's AES key) is stored unencrypted in memory, any reasonable attempt is made to mlock/VirtualLock that memory before storing the keying material. This is not true in several (commented) cases where mlock/VirtualLocking the memory is not possible. Although encryption of private keys in memory can be very useful on desktop systems (as some small amount of protection against stupid viruses), on an RPC server, the password is entered fairly insecurely. Thus, the only main advantage encryption has for RPC servers is for RPC servers that do not spend coins, except in rare cases, eg. a webserver of a merchant which only receives payment except for cases of manual intervention. Thanks to jgarzik for the original patch and sipa, gmaxwell and many others for all their input. Conflicts: src/wallet.cpp
* Block-chain lock-in at 134444Gavin Andresen2011-07-031-4/+5
|
* Limit response to getblocks to half of output buffer sizePieter Wuille2011-07-011-3/+7
| | | | | | Introduce SendBufferSize() and ReceiveBufferSize(), and limit the blocks sent as response to the "getblocks" message to half of the active send buffer size.
* Merge branch 'totalblocksestimate1' of https://github.com/laanwj/bitcoinGavin Andresen2011-06-241-1/+16
|\
| * add GetTotalBlocksEstimate() function, move magic number to constantWladimir J. van der Laan2011-06-191-1/+16
| |