aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Merge branch 'standardScriptSigs' of github.com:gavinandresen/bitcoin-gitGavin Andresen2012-02-071-5/+20
|\
| * Make transactions with extra data in their scriptSig's non-standard.Gavin Andresen2012-01-191-5/+20
| |
* | -bip16 option (default: 1) to support / not support BIP 16. And bumped ↵Gavin Andresen2012-02-061-2/+5
| | | | | | | | default BIP16 switchover date from Feb 15 to Mar 1
* | Avoid advertising the node's address when it is not listening or ↵Gregory Maxwell2012-02-011-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IsInitialBlockDownload(). This also avoids flushing setAddrKnown until 24 hours has passed, and avoids contacting the external IP services when not listening. Advertising non-listening nodes is just addr message spam. It doesn't help the network, in fact it hurts the network, and it also hurts user's privacy. Advertising far out of sync nodes doesn't help the network— they can't even forward (most) transactions and wastes nodes outbound slots.
* | Testnet difficulty calculation changes, to take effect Feb 15 2012Gavin Andresen2012-01-311-4/+29
| | | | | | | | | | 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.
* | CreateNewBlock was not adding in transaction fees.Gavin Andresen2012-01-281-2/+3
| |
* | Bitcoin-Qt signmessage GUI (pull request #582)Luke Dashjr2012-01-271-0/+3
| |
* | Merge pull request #773 from gavinandresen/p2shSigOpCountGavin Andresen2012-01-251-43/+35
|\ \ | | | | | | Simplify counting of P2SH sigops to match BIP 16
| * | Simplify counting of P2SH sigops to match BIP 16 (thanks to Matt Corallo for ↵Gavin Andresen2012-01-201-43/+35
| | | | | | | | | | | | | | | | | | prompting this). This also removes an un-needed sigops-per-byte check when accepting transactions to the memory pool (un-needed assuming only standard transactions are being accepted). And it only counts P2SH sigops after the switchover date.
* | | Merge branch 'bugfix_areinpstd' of https://github.com/luke-jr/bitcoinGavin Andresen2012-01-231-5/+2
|\ \ \
| * | | Sanitize AreInputsStandard slightlyLuke Dashjr2012-01-201-5/+2
| |/ / | | | | | | | | | | | | Correct comment for why the check is unnecessary for coinbases Move testnet check out, to AcceptToMemoryPool where everything else checks it
* / / Only store transactions with missing inputs in the orphan pool.Gavin Andresen2012-01-231-6/+20
|/ / | | | | | | | | All previous versions of bitcoin could store some types of invalid transactions in the orphan-transaction list.
* / Separated COINBASE_FLAGS out into main.h and made RPC getmemorypool return itForrest Voight2012-01-141-6/+1
|/
* Refactor: needing to call ConnectInputs to process coinbase transactions was ↵Gavin Andresen2012-01-131-15/+5
| | | | counter-intuitive
* Refactored ConnectInputs, so valid-transaction-checks are done before ↵Gavin Andresen2012-01-131-59/+106
| | | | ECDSA-verifying signatures.
* Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen2012-01-131-58/+88
|
* collect more info on tx pooling and block finding for getmininginfoLuke Dashjr2012-01-121-0/+15
|
* Merge pull request #743 from gavinandresen/blocknotifyGavin Andresen2012-01-121-1/+19
|\ | | | | -blocknotify : run a command when best-block changes
| * -blocknotify=command argument, implemented using system() and boost::threadGavin Andresen2012-01-031-1/+19
| |
* | Network stack refactorPieter Wuille2012-01-061-6/+7
|/ | | | | | | | | | | | | | | This introduces CNetAddr and CService, respectively wrapping an (IPv6) IP address and an IP+port combination. This functionality used to be part of CAddress, which also contains network flags and connection attempt information. These extra fields are however not always necessary. These classes, along with logic for creating connections and doing name lookups, are moved to netbase.{h,cpp}, which does not depend on headers.h. Furthermore, CNetAddr is mostly IPv6-ready, though IPv6 functionality is not yet enabled for the application itself.
* Check all prevout.n if one transaction provides multiple inputsGavin Andresen2011-12-251-1/+9
|
* assert condition in previous commit was backwardsGavin Andresen2011-12-251-1/+1
|
* Check for valid prevout.n in FetchInputs.Gavin Andresen2011-12-251-0/+4
| | | | IsStandardInputs could crash if given invalid input index.
* Be more conservative: check all transactions in blocks after last checkpoint.Gavin Andresen2011-12-231-5/+4
|
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-46/+43
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-43/+46
|
* Merge pull request #677 from luke-jr/minfee_modesGavin Andresen2011-12-201-2/+2
|\ | | | | API: GetMinFee modes
| * GetMinFee takes a mode parameter (GMF_{BLOCK,RELAY,SEND}) instead of fForRelayLuke Dashjr2011-12-141-2/+2
| |
| * Bugfix: fForRelay should be false when deciding required fee to include in ↵Luke Dashjr2011-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'op_eval'Gavin Andresen2011-12-201-59/+198
|\ \
| * | Update bitcoin address numbers for latest luke-jr/sipa schemeGavin Andresen2011-12-191-1/+1
| | |
| * | Use block times for 'hard' OP_EVAL switchover, and refactored EvalScriptGavin Andresen2011-12-191-16/+36
| | | | | | | | | | | | | | | | | | so it takes a flag for how to interpret OP_EVAL. Also increased IsStandard size of scriptSigs to 500 bytes, so a 3-of-3 multisig transaction IsStandard.
| * | Put OP_EVAL string in coinbase of generated blocksGavin Andresen2011-12-191-0/+7
| | |
| * | OP_EVAL implementationGavin Andresen2011-12-191-59/+171
| | | | | | | | | | | | | | | | | | OP_EVAL is a new opcode that evaluates an item on the stack as a script. It enables a new type of bitcoin address that needs an arbitrarily complex script to redeem.
* | | Code cleanup: use ECDSA_size() instead of fixed 10,000 byte sig buffer, and ↵Gavin Andresen2011-12-191-1/+1
| | | | | | | | | | | | explicity init static var
* | | Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen2011-12-191-1/+1
|/ /
* | Merge pull request #574 from sipa/dumpprivkeyGavin Andresen2011-12-191-2/+2
|\ \ | | | | | | Dumpprivkey
| * | Preparations for key import/exportPieter Wuille2011-12-171-2/+2
| | |
* | | Implement BIP 14 : separate protocol version from client versionGavin Andresen2011-12-191-3/+8
|/ /
* | Orphan block fill-up-memory attack preventionGavin Andresen2011-12-011-3/+46
| |
* | Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen2011-12-011-27/+5
| | | | | | | | attacks
* | Some extra commentsPieter Wuille2011-11-071-0/+12
| |
* | Merge pull request #564 from luke-jr/optimize_remove_CheckWork_delayGavin Andresen2011-10-061-1/+0
|\ \ | | | | | | Remove 2 second sleep from CheckWork
| * | Remove 2 second sleep from CheckWorkDavid Joel Schwartz2011-10-041-1/+0
| |/
* | Merge branch 'no-cryptopp' of https://github.com/tcatm/bitcoinGavin Andresen2011-10-051-6/+15
|\ \
| * | remove cryptopp dependency, add simple unittest for SHA256Transform()Nils Schneider2011-09-301-6/+15
| | |
* | | Added RPC call 'getmemorypool' that provides everything needed to construct ↵Forrest Voight2011-10-011-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-281-31/+55
|\ \ | | | | | | | | | | | | | | | Conflicts: .gitignore (used upstream version) bitcoin-qt.pro
| * | Remove DoS penalty for SigOpCount or immature transactionsGavin Andresen2011-09-271-2/+2
| | |