aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
AgeCommit message (Collapse)Author
2012-03-03Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
2012-03-03Merge remote branch 'sipa/nooverwritetx_v0.4.0' into 0.4.xLuke Dashjr
2012-03-03Do not allow overwriting unspent transactions (BIP 30)Pieter Wuille
Introduce the following network rule: * a block is not valid if it contains a transaction whose hash already exists in the block chain, unless all that transaction's outputs were already spent before said block. Warning: this is effectively a network rule change, with potential risk for forking the block chain. Leaving this unfixed carries the same risk however, for attackers that can cause a reorganisation in part of the network. Thanks to Russell O'Connor and Ben Reeves.
2012-03-02DoS fix for mapOrphanTransactionsGavin Andresen
2012-02-27ProcessBlock is sometimes called with pfrom==NULLPieter Wuille
2012-02-07Update copyrights to 2012 for files modified this yearLuke Dashjr
2012-02-07Update copyrights to 2012 for files modified this yearLuke Dashjr
2012-02-02Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
Conflicts: src/main.cpp
2012-02-02Only store transactions with missing inputs in the orphan pool.Gavin Andresen
All previous versions of bitcoin could store some types of invalid transactions in the orphan-transaction list.
2012-02-02Testnet difficulty calculation changes, to take effect Feb 15 2012Gavin Andresen
Allow mining of min-difficulty blocks if 20 minutes have gone by without mining a regular-difficulty block. Normal rules apply every 2016 blocks, though, so there may be a very-slow-to-confirm block at the difficulty-adjustment blocks.
2011-12-25Be more conservative: check all transactions in blocks after last checkpoint.Luke Dashjr
2011-12-23Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
2011-12-20Bugfix: fForRelay should be false when deciding required fee to include in ↵Luke Dashjr
blocks During the rushed transition from 0.01 BTC to 0.0005 BTC fees, we took the approach of dropping the relay and block-inclusion fee to 0.0005 BTC immediately, and only delayed adjusting the sending fee for the next release. Afterward, the relay fee was lowered to 0.0001 BTC to avoid having the same problem in the future. However, the block inclusion code was left setting fForRelay to true! This fixes that, so the lower 0.0001 BTC allowance is (as intended) only permitted for real relaying.
2011-12-01Orphan block fill-up-memory attack preventionGavin Andresen
2011-12-01Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen
attacks
2011-12-01Orphan block fill-up-memory attack preventionGavin Andresen
2011-12-01Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen
attacks
2011-11-07Some extra commentsPieter Wuille
2011-10-06Merge pull request #564 from luke-jr/optimize_remove_CheckWork_delayGavin Andresen
Remove 2 second sleep from CheckWork
2011-10-05Merge branch 'no-cryptopp' of https://github.com/tcatm/bitcoinGavin Andresen
2011-10-04Remove 2 second sleep from CheckWorkDavid Joel Schwartz
2011-10-01Added RPC call 'getmemorypool' that provides everything needed to construct ↵Forrest Voight
a block with a custom generation transaction and submit a solution getmemorypool [data] If [data] is not specified, returns data needed to construct a block to work on: "version" : block version "previousblockhash" : hash of current highest block "transactions" : contents of non-coinbase transactions that should be included in the next block "coinbasevalue" : maximum allowable input to coinbase transaction, including the generation award and transaction fees "time" : timestamp appropriate for next block "bits" : compressed target of next block If [data] is specified, tries to solve the block and returns true if it was successful.
2011-09-30remove cryptopp dependency, add simple unittest for SHA256Transform()Nils Schneider
2011-09-28Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
Conflicts: .gitignore (used upstream version) bitcoin-qt.pro
2011-09-28use median filter for peer-reported reported number of blocksWladimir J. van der Laan
- 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
2011-09-27Remove DoS penalty for SigOpCount or immature transactionsGavin Andresen
2011-09-26Skip verifying transaction signatures during initial block-chain downloadGavin Andresen
2011-09-26Merge pull request #517 from gavinandresen/DoSpreventionGavin Andresen
Denial-of-service prevention
2011-09-26Merge pull request #521 from laanwj/qtGavin Andresen
Qt GUI
2011-09-23Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-09-21More denial-of-service misbehavior detection: version/addr/inv/getdata messagesGavin Andresen
2011-09-21Transaction/Block denial-of-service detection/responseGavin Andresen
2011-09-17log low-level network messages only when fDebug is setNils Schneider
2011-09-16Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-09-11clarify function signature (GetNumBlocksOfPeers) and use number of 'frozen' ↵Wladimir J. van der Laan
blocks as initial value for number of peer blocks
2011-09-07Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
Conflicts: .gitignore
2011-09-07Merge branch 'unique_coinbase' of ↵Gavin Andresen
git://gitorious.org/~Luke-Jr/bitcoin/luke-jr-bitcoin into unique_coinbase
2011-09-06Bugfix: Use timestamp in coinbase rather than "bits", needed to ensure ↵Luke Dashjr
coinbase txn is unique even if address is the same
2011-09-06Merge branch 'getwork_dedupe' into unique_coinbaseLuke Dashjr
2011-09-05Optimize database writes for transactions with lots of TxIns.Gavin Andresen
Patch from ArtForz, who discovered the problem.
2011-09-03Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-09-02Versions 0.3.20 THROUGH 0.3.23 have trouble with blockchain downloads; avoid ↵Gavin Andresen
them
2011-09-02update to work with new lock system, add protocol.* to build systemWladimir J. van der Laan
2011-09-02Do not try to download blockchain from 0.3.23 nodesGavin Andresen
2011-09-02Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
Conflicts: src/main.cpp
2011-09-01Merge pull request #467 from gavinandresen/keypoolzeroGavin Andresen
Logic running with -keypool=0 was wrong (empty keys were being returned).
2011-09-01Merge branch 'code-cleanup' of git://github.com/muggenhor/bitcoinGavin Andresen
2011-09-01Logic running with -keypool=0 was wrong (empty keys were being returned). ↵Gavin Andresen
Fixes #445 Renames GetOrReuseKeyFromKeyPool to GetKeyFromPool, with fAllowReuse arg and bool result.
2011-09-01Merge pull request #470 from fabianhjr/masterGavin Andresen
Checkpoints
2011-08-31Fix rpc-hanging deadlocksGavin Andresen
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.