aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
AgeCommit message (Collapse)Author
2012-08-20Reject block.nVersion<=1 blocks if network has upgraded to version=2Gavin Andresen
If 950 of the last 1,000 blocks are nVersion=2, reject nVersion=1 (or zero, but no bitcoin release has created block.nVersion=0) blocks -- 75 of last 100 on testnet3. This rule is being put in place now so that we don't have to go through another "express support" process to get what we really want, which is for every single new block to include the block height in the coinbase.
2012-08-20Block height in coinbase as a new block ruleGavin Andresen
"Version 2" blocks are blocks that have nVersion=2 and have the block height as the first item in their coinbase. Block-height-in-the-coinbase is strictly enforced when version=2 blocks are a supermajority in the block chain (750 of the last 1,000 blocks on main net, 51 of 100 for testnet). This does not affect old clients/miners at all, which will continue producing nVersion=1 blocks, and which will continue to be valid.
2012-08-20Merge pull request #1641 from jgarzik/mempoolJeff Garzik
Add 'mempool' P2P command, and extend 'getdata' behavior
2012-08-17Merge pull request #1678 from Diapolo/LoadExternalBlockFile_add_timerJeff Garzik
log how long LoadExternalBlockFile() takes in ms (Benchmark)
2012-08-17fix a compiler sign warning in OpenBlockFile()Philip Kaufmann
2012-08-17log how long LoadExternalBlockFile() takes in ms (Benchmark)Philip Kaufmann
2012-08-01Merge pull request #1612 from luke-jr/opti_getblkhashGregory Maxwell
Optimize JSON-RPC getblockhash
2012-08-01Optimize JSON-RPC getblockhashLuke Dashjr
- If the height is in the first half, start at the genesis block and go up, rather than at the top - Cache the last lookup and use it as a reference point if it's close to the next request, to make linear lookups always fast
2012-08-01Merge pull request #1632 from luke-jr/spellingJeff Garzik
Fix spelling and grammar errors
2012-08-01Bugfix: Correct English grammar regarding "'s"Luke Dashjr
2012-08-01Bugfix: Fix a variety of misspellingsLuke Dashjr
2012-08-01Update Warning-strings to use a standard-formatPhilip Kaufmann
- ensure warnings always start with "Warning:" and that the first character after ":" is written uppercase - ensure the first sentence in warnings ends with an "!" - remove unneeded spaces from Warning-strings - add missing Warning-string translation - remove a "\n" and replace with untranslatable "<br><br>"
2012-07-31Add 'mempool' P2P command, and extend 'getdata' behaviorJeff Garzik
to permit downloading of mempool transactions from the remote peer.
2012-07-26Switch testnet3's message bytes to avoid connecting to old nodes.Gregory Maxwell
The new bytes are based on "11" to appeal to Gavin's 11 fetish. This breaks existing testnet3 nodes as the blockchain files are also versioned. To upgrade a node delete everything except wallet.dat from your .bitcoin/testnet3 folder.
2012-07-26Handle should-never-happen case of orphan in mempoolGavin Andresen
2012-07-26When creating new blocks, sort 'paid' area by fee-per-kbGavin Andresen
Modify CreateNewBlock so that instead of processing all transactions in priority order, process the first 27K of transactions in priority order and then process the rest in fee-per-kilobyte order. This is the first, minimal step towards better a better fee-handling system for both miners and end-users; this patch should be easy to backport to the old versions of Bitcoin, and accomplishes the most important goal-- allow users to "buy their way in" to blocks using transaction fees.
2012-07-26Merge branch 'checknewblock' of git://github.com/luke-jr/bitcoinGavin Andresen
2012-07-18Let the comment in GetBlockValue() reflect the uncertainty about the time ↵Rune K. Svendsen
interval between subsidy reductions
2012-07-17Fix thread names after reviewGiel van Schijndel
* Fix wrong thread name for wallet *relocking* thread - Was named the unlocking thread * Use consistent naming Signed-off-by: Giel van Schijndel <me@mortis.eu>
2012-07-17Give threads a recognisable name to aid in debuggingGiel van Schijndel
NOTE: These thread names are visible in gdb when using 'info threads'. Additionally both 'top' and 'ps' show these names *unless* told to display the command-line instead of task name. Signed-off-by: Giel van Schijndel <me@mortis.eu>
2012-07-12Tests for CreateNewBlockLuke Dashjr
2012-07-11Merge branch 'checknewblock_0.6.0' into checknewblockLuke Dashjr
Conflicts: src/main.cpp
2012-07-06Warn if blockchain majority doesn't match CBlock::CURRENT_VERSIONGavin Andresen
This adds a warning "this version is obsolete, upgrade required" if more than 50 of the previous 100 blocks in the blockchain are a new version.
2012-07-06Treat non-version-1 transactions as non-standardGavin Andresen
Adds CBlock::CURRENT_VERSION and CTransaction::CURRENT_VERSION constants, and makes non-CURRENT_VERSION transactions nonstandard. This will help make future upgrades smoother.
2012-07-05Merge pull request #1304 from rebroad/ShowBlockTimestampJeff Garzik
Show block timestamp
2012-07-04CTxMemPool: eliminate redundant lock, GetHash() callJeff Garzik
::addUnchecked()'s only caller already takes the necessary lock, and has already calculated the TX's hash.
2012-07-04Remove duplicate GetHash() in ConnectBlockMatt Corallo
2012-06-27Merge pull request #1511 from jgarzik/quieten2Jeff Garzik
Quieten 'getdata' P2P message output
2012-06-27Merge pull request #1347 from rebroad/FixAlreadyAskedForPieter Wuille
mapAlreadyAskedFor gets additions when AlreadyHave()
2012-06-27Stop processing messages on full send buffer and dont disconnect.Matt Corallo
Also decrease default send/receive buffer sizes from 10 to 5 mb as this patch makes it easy for a node to fill both instead of only send.
2012-06-23Merge pull request #1174 from sipa/torhsGregory Maxwell
Tor hidden service support
2012-06-23Merge pull request #1503 from gmaxwell/testnet_tweaksGregory Maxwell
Remove some rule differences which aren't needed with testnet3.
2012-06-23Quieten 'getdata' P2P message outputJeff Garzik
Output one message per getdata, not one message per 'inv' entry.
2012-06-23Debug version messagesPieter Wuille
2012-06-22Merge pull request #1458 from jgarzik/tracenetJeff Garzik
Introduce -tracenet option, thereby quieting some redundant debug messages
2012-06-22Introduce -debugnet option, thereby quieting some redundant debug messagesJeff Garzik
Prior to this change, each TX typically generated 3+ debug messages, askfor tx 8644cc97480ba1537214 0 sending getdata: tx 8644cc97480ba1537214 askfor tx 8644cc97480ba1537214 1339640761000000 askfor tx 8644cc97480ba1537214 1339640881000000 CTxMemPool::accept() : accepted 8644cc9748 (poolsz 6857) After this change, there is only one message for each valid TX received CTxMemPool::accept() : accepted 22a73c5d8c (poolsz 42) and two messages for each orphan tx received ERROR: FetchInputs() : 673dc195aa mempool Tx prev not found 1e439346fc stored orphan tx 673dc195aa (mapsz 19) The -debugnet option, or its superset -debug, will restore the full debug output.
2012-06-22Remove some rule differences which aren't needed with testnet3.Gregory Maxwell
Bip16 and Bip30 had early activation dates for testnet, but with the reset they might as well use the same dates as the main network.
2012-06-22RPC: add 'getrawmempool', listing all transaction ids in memory poolJeff Garzik
2012-06-19print large orphan warning BEFORE deleting pvMsgGavin Andresen
2012-06-18Merge branch 'signbugs' of https://github.com/wizeman/bitcoinGavin Andresen
Resolved minor conflict in main.cpp
2012-06-14Use a 64-bit nonce in pingPieter Wuille
Former code sent '0' as nonce, which was serialized as 32-bit.
2012-06-12introduce a new StartShutdown() function, which starts a thread with ↵Philip Kaufmann
Shutdown() if no GUI is used and calls uiInterface.QueueShutdown() if a GUI is used / all direct uiInterface.QueueShutdown() calls are replaced with Shutdown() - this ensures a clean GUI shutdown, even when catching a SIGTERM and allows the BitcoinGUI destructor to get called (which fixes a tray-icon issue and keeps the tray-icon until Bitcoin-Qt exits)
2012-05-31Rework network config settingsPieter Wuille
2012-05-29Show the timestamp for the block.R E Broadley
wrap lines
2012-05-27Merge pull request #1392 from gavinandresen/testnet_resetGregory Maxwell
Testnet reset
2012-05-27CreateNewBlock: Check that the produced CBlock is acceptable (except for ↵Luke Dashjr
proof-of-work and merkletree, since those need to be provided later) This throws an exception from CreateNewBlock otherwise, which is not safe without #1245!
2012-05-25Fix issue#1082, testnet difficulty unsigned integer underflowGavin Andresen
2012-05-25Testnet, Mark IIIGavin Andresen
2012-05-24Encapsulate public keys in CPubKeyPieter Wuille
2012-05-24Merge pull request #1383 from jgarzik/rawtxJeff Garzik
JSON-RPC: Add 'sendrawtx' op, for sending pre-built TX's to network