aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #1347 from rebroad/FixAlreadyAskedForPieter Wuille2012-06-271-1/+1
|\ \ \ \ | | | | | | | | | | mapAlreadyAskedFor gets additions when AlreadyHave()
| * | | | Should only be mapped when the getdata is done.R E Broadley2012-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | Without this change, mappings will be created even after AlreadyHave equals true, and will never be erased.
* | | | | Stop processing messages on full send buffer and dont disconnect.Matt Corallo2012-06-271-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #1174 from sipa/torhsGregory Maxwell2012-06-231-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Tor hidden service support
| * | | | | Debug version messagesPieter Wuille2012-06-231-1/+1
| | | | | |
* | | | | | Merge pull request #1503 from gmaxwell/testnet_tweaksGregory Maxwell2012-06-231-4/+3
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Remove some rule differences which aren't needed with testnet3.
| * | | | | Remove some rule differences which aren't needed with testnet3.Gregory Maxwell2012-06-221-4/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #1458 from jgarzik/tracenetJeff Garzik2012-06-221-1/+2
|\ \ \ \ \ | | | | | | | | | | | | Introduce -tracenet option, thereby quieting some redundant debug messages
| * | | | | Introduce -debugnet option, thereby quieting some redundant debug messagesJeff Garzik2012-06-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | RPC: add 'getrawmempool', listing all transaction ids in memory poolJeff Garzik2012-06-221-0/+8
| |/ / / / |/| | | |
* | | | | print large orphan warning BEFORE deleting pvMsgGavin Andresen2012-06-191-1/+1
| | | | |
* | | | | Merge branch 'signbugs' of https://github.com/wizeman/bitcoinGavin Andresen2012-06-181-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Resolved minor conflict in main.cpp
| * | | | | Make CNetAddr::GetHash() return an unsigned val.Ricardo M. Correia2012-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents an undefined operation in main.cpp, when shifting the hash value left by 32 bits. Shifting a signed int left into the sign bit is undefined in C++11.
* | | | | | Use a 64-bit nonce in pingPieter Wuille2012-06-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Former code sent '0' as nonce, which was serialized as 32-bit.
* | | | | | introduce a new StartShutdown() function, which starts a thread with ↵Philip Kaufmann2012-06-121-1/+1
| |/ / / / |/| | | | | | | | | | | | | | 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)
* | | | | Rework network config settingsPieter Wuille2012-05-311-2/+2
| |_|/ / |/| | |
* | | | Merge pull request #1392 from gavinandresen/testnet_resetGregory Maxwell2012-05-271-7/+5
|\ \ \ \ | | | | | | | | | | Testnet reset
| * | | | Fix issue#1082, testnet difficulty unsigned integer underflowGavin Andresen2012-05-251-3/+3
| | | | |
| * | | | Testnet, Mark IIIGavin Andresen2012-05-251-4/+2
| | | | |
* | | | | Encapsulate public keys in CPubKeyPieter Wuille2012-05-241-1/+1
|/ / / /
* | | | Merge pull request #1383 from jgarzik/rawtxJeff Garzik2012-05-241-1/+1
|\ \ \ \ | | | | | | | | | | JSON-RPC: Add 'sendrawtx' op, for sending pre-built TX's to network
| * | | | JSON-RPC: Add 'sendrawtx' op, for sending pre-built TX's to networkJeff Garzik2012-05-231-1/+1
| | | | |
* | | | | Refactor: move runCommand() to util.cppJeff Garzik2012-05-231-8/+0
|/ / / /
* | | | Merge branch 'dbenv' into tmpJeff Garzik2012-05-221-1/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/db.cpp
| * | | | Reorganize(): remove spurious TxnAbort()Jeff Garzik2012-05-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If Reorganize() fails, then its caller, CBlock::SetBestChain(), will call TxnAbort(). Redundant TxnAbort() calls are harmless. The second will return an error return value, with no other side effects. TxnAbort() return values are generally never checked. The impact is nil.
* | | | | Merge pull request #1381 from jgarzik/check-deserJeff Garzik2012-05-221-2/+3
|\ \ \ \ \ | | | | | | | | | | | | Prevent crashes due to missing or corrupted database records
| * | | | | Prevent crashes due to missing or corrupted blk????.dat recordsJeff Garzik2012-05-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In LoadExternalBlockFile(), errors are already caught... silently. Add a warning message, even though we do not abort the program due to load error.
* | | | | | ProcessMessage(): remove duplicate orphan tx debug messageJeff Garzik2012-05-221-3/+0
|/ / / / /
* | | | | Merge branch 'master' of github.com:bitcoin/bitcoinGavin Andresen2012-05-221-7/+7
|\ \ \ \ \
| * | | | | Correct debug.log output to show correct function the debug is coming from.R E Broadley2012-05-221-7/+7
| | | | | |
* | | | | | Merge branch 'optimize'Gavin Andresen2012-05-221-27/+61
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Further DoS prevention: Verify signatures lastGavin Andresen2012-05-181-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loop over all inputs doing inexpensive validity checks first, and then loop over them a second time doing expensive signature checks. This helps prevent possible CPU exhaustion attacks where an attacker tries to make a victim waste time checking signatures for invalid transactions.
| * | | | | Remove invalid dependent orphans from memoryGavin Andresen2012-05-181-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove orphan transactions from memory once all of their parent transactions are received and they're still not valid. Thanks to Sergio Demian Lerner for suggesting this fix.
| * | | | | Optimize orphan transaction handlingGavin Andresen2012-05-181-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes suggested by Sergio Demian Lerner to help prevent potential DoS attacks.
| * | | | | Refactor: GetRandHash() method for utilGavin Andresen2012-05-171-5/+3
| | | | | |
* | | | | | Merge pull request #1354 from fanquake/masterPieter Wuille2012-05-201-1/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Update Header Licenses
| * | | | | | Update License in File HeadersFordy2012-05-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* | | | | | | Make testcases build, prevent windows symbol collisionWladimir J. van der Laan2012-05-201-1/+1
| | | | | | |
* | | | | | | Convert UI interface to boost::signals2.Wladimir J. van der Laan2012-05-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Signals now go directly from the core to WalletModel/ClientModel. - WalletModel subscribes to signals on CWallet: Prepares for multi-wallet support, by no longer assuming an implicit global wallet. - Gets rid of noui.cpp, the few lines that were left are merged into init.cpp - Rename wxXXX message flags to MF_XXX, to make them UI indifferent. - ThreadSafeMessageBox no longer returns the value `4` which was never used, converted to void.
* | | | | | | Fine-grained UI updatesWladimir J. van der Laan2012-05-201-3/+19
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gets rid of `MainFrameRepaint` in favor of specific update functions that tell the UI exactly what changed. This improves the efficiency of various handlers. Also fixes problems with mined transactions not showing up until restart. The following notifications were added: - `NotifyBlocksChanged`: Block chain changed - `NotifyKeyStoreStatusChanged`: Wallet status (encrypted, locked) changed. - `NotifyAddressBookChanged`: Address book entry changed. - `NotifyTransactionChanged`: Wallet transaction added, removed or updated. - `NotifyNumConnectionsChanged`: Number of connections changed. - `NotifyAlertChanged`: New, updated or cancelled alert. As this finally makes it possible for the UI to know when a new alert arrived, it can be shown as OS notification. These notifications could also be useful for RPC clients. However, currently, they are ignored in bitcoind (in noui.cpp). Also brings back polling with timer for numBlocks in ClientModel. This value updates so frequently during initial download that the number of signals clogs the UI thread and causes heavy CPU usage. And after initial block download, the value changes so rarely that a delay of half a second until the UI updates is unnoticable.
* | | | | | Merge pull request #1296 from Diapolo/CheckDiskSpaceGavin Andresen2012-05-191-3/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | | | make CheckDiskSpace() use 50 * 1024 * 1024 Bytes
| * | | | | make CheckDiskSpace() use a global static const uint64 for checking required ↵Philip Kaufmann2012-05-141-3/+3
| | |/ / / | |/| | | | | | | | | | | | | disk space and remove 2 ugly spaces from a message string
* | | | | Make orphan logging more verbose, displaying mapOrphanTransactions.size()Jeff Garzik2012-05-171-5/+7
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old log message: storing orphan tx df2244f6bc New log message: storing orphan tx df2244f6bc (mapsz 51) Also, trim a few trailing whitespace in main.cpp.
* | | | Merge pull request #1295 from jgarzik/txn-retvalJeff Garzik2012-05-171-3/+9
|\ \ \ \ | | | | | | | | | | [FIX] Always check return values of TxnBegin() and TxnCommit()
| * | | | Always check return values of TxnBegin() and TxnCommit()Jeff Garzik2012-05-141-3/+9
| |/ / /
* | | | Hopefully final fix for the stuck blockchain issuePieter Wuille2012-05-151-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Immediately issue a "getblocks", instead of a "getdata" (which will trigger the relevant "inv" to be sent anyway), and only do so when the previous set of invs led us into a known and attached part of the block tree.
* | | | ensure that no double timestamps show up in the debug.log, by removing ↵Philip Kaufmann2012-05-131-5/+1
|/ / / | | | | | | | | | manual timestamps from the source (now only -logtimestamps parameter adds timestamps to debug.log)
* | | Merge pull request #1021 from sipa/ipv6Pieter Wuille2012-05-111-5/+7
|\ \ \ | | | | | | | | IPv6 node support
| * | | Limited relaying/storing of foreign addressesPieter Wuille2012-05-111-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a boolean variable for each "network" (ipv4, ipv6, tor, i2p), and track whether we are likely to able to connect to it. Addresses in "addr" messages outside of our network get limited relaying and are not stored in addrman.
| * | | IPv6 node supportPieter Wuille2012-05-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | This will make bitcoin relay valid routable IPv6 addresses, and when USE_IPV6 is enabled, listen on IPv6 interfaces and attempt connections to IPv6 addresses.