aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '0.4.x' into 0.5.0.xLuke Dashjr2012-01-031-27/+34
|\ | | | | | | | | Conflicts: src/util.cpp
| * Fix issue #659, and cleanup wallet/command-line argument handling a bitGavin Andresen2012-01-031-1/+1
| | | | | | | | | | | | Conflicts: src/init.cpp src/util.cpp
| * Fix some address-handling deadlocksPieter Wuille2012-01-021-26/+33
| | | | | | | | | | | | Made three critical blocks for cs_mapAddresses smaller, and moved writing to the database out of them. This should also improve the concurrency of the code.
* | Merge branch '0.4.x' into 0.5.0.xLuke Dashjr2011-12-191-0/+2
|\|
| * Add my DNS seed domainLuke Dashjr2011-12-191-0/+1
| |
| * Add sipa's new dnsseed.Matt Corallo2011-12-191-0/+1
| |
* | Merge branch '0.4.x' into 0.5.xLuke Dashjr2011-12-121-1/+14
|\|
| * Merge branch 'restore_old_miniupnp_compat' into 0.4.xLuke Dashjr2011-12-121-1/+14
| |\
| | * Restore compatibility with miniupnpc 1.5 (without breaking miniupnp 1.6)Luke Dashjr2011-12-101-1/+14
| | |
* | | Move DNS Seed lookup to a new thread.Matt Corallo2011-12-021-1/+38
|\| |
| * | Move DNS Seed lookup to a new thread.Matt Corallo2011-12-021-1/+38
| | |
| * | Remove vladimir's DNS seed, at his request.Jeff Garzik2011-11-151-1/+0
| | |
* | | Remove vladimir's DNS seed, at his request.Jeff Garzik2011-10-311-1/+0
| | |
* | | Fix build on windows and macGavin Andresen2011-10-071-11/+11
| | | | | | | | | | | | | | | | | | Replaced all occurrences of #if* __WXMSW__ with WIN32, and all occurrences of __WXMAC_OSX__ with MAC_OSX, and made sure those are defined appropriately in the makefile and bitcoin-qt.pro.
* | | Merge pull request #558 from ↵Gavin Andresen2011-10-051-1/+2
|\| | | | | | | | | | | | | | luke-jr/bugfix_CreateThread_ThreadSocketHandler_errReporting Bugfix: ThreadSocketHandler creation error
| * | Bugfix: report error creating ThreadSocketHandler thread just like the restLuke Dashjr2011-10-031-1/+2
| | |
* | | Merge pull request #561 from luke-jr/optimize_conn_adjtimeGavin Andresen2011-10-051-2/+4
|\ \ \ | | | | | | | | Only GetAdjustedTime once for the retry loop
| * | | Only GetAdjustedTime once for the retry loopLuke Dashjr2011-10-031-2/+4
| |/ /
* / / Framework for banning mis-behaving peersGavin Andresen2011-09-211-1/+53
|/ /
* | SocketHandler thread can be detachedPieter Wuille2011-09-191-1/+1
| |
* | Fix AddAddress cs_mapaddresses/db transaction deadlockGavin Andresen2011-09-061-15/+21
| |
* | Stay connected to seed nodes; disconnecting causes problems if you are ↵Gavin Andresen2011-09-021-30/+0
| | | | | | | | trying to make the initial blockchain download.
* | Give hard-coded seed nodes a random last-seen time, to randomize order ↵Gavin Andresen2011-09-021-1/+4
| | | | | | | | they're tried.
* | Update the list of seednodes.Daniel Folkinshteyn2011-09-021-40/+64
| | | | | | | | | | | | Nodes culled from MagicalTux's database of bitcoin nodes, http://dump.bitcoin.it/misc/ by version and longevity, and tested for connectivity.
* | 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]>
* | Upgrade dependancies and tweak build process.Matt Corallo2011-08-231-12/+3
|/ | | | | | * Upgrade to use miniupnpc 1.6 * Upgrade to wxWidgets 2.9.2 * Upgrade to Bost 1.47 for Win32 Builds
* 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
* | Test for SO_NOSIGPIPE rather than assuming all BSDs support it.Venkatesh Srinivas2011-08-101-2/+2
| | | | | | | | Signed-off-by: Jeff Garzik <[email protected]>
* | Do-nothing MapPort() ifndef USE_UPNP. fixes #450Gavin Andresen2011-08-091-0/+5
|/
* Identify as "Bitcoin + version number" when mapping UPnP portJohannes Henninger2011-08-011-2/+3
| | | | | Makes Bitcoin identify itself as "Bitcoin + version number" instead of the nondescript "libminiupnpc" when forwarding a port via UPnP.
* Single DB transaction for addresses from DNS seedsStéphane Gimenez2011-07-141-1/+5
|
* Single DB transaction for all addresses in a messagePatrick Varilly2011-07-141-3/+11
| | | | Cuts disk activity at startup immensely
* fix warning: unused variable 'X' [-Wunused-variable]Giel van Schijndel2011-07-131-1/+1
| | | | | | Remove several unused variables. Signed-off-by: Giel van Schijndel <[email protected]>
* fix warning: comparison of unsigned expression < 0 is always false ↵Giel van Schijndel2011-07-131-1/+1
| | | | | | | | | | | | | | | | | | [-Wtautological-compare] Don't check for a negative parameter count, because not only will it never happen, it doesn't make any sense either. Invalid sockets (as returned by socket(2)) are always exactly -1 (not just negative as negative file descriptors are technically not prohibited by POSIX) on POSIX systems. Since we store them in SOCKET (unsigned int), however, that really is ~0U (or MAX_UINT) which happens to be what INVALID_SOCKET is already defined to, so an additional check for being negative is not only unnecessary (unsigned integers aren't *ever* negative) its redundant as well (the INVALID_SOCKET comparison is enough). Signed-off-by: Giel van Schijndel <[email protected]>
* Added a couple minor things to match newer build process.Matt Corallo2011-07-051-0/+5
| | | | | This adds the relevent patches which are applied to wx, and updates for cross compiling.
* Give more detailed error messages for connection failure.Matt Corallo2011-07-021-1/+5
|
* Merge pull request #368 from TheBlueMatt/dnsseedJeff Garzik2011-07-011-10/+13
|\ | | | | Only use dnsseeds when not on testnet.
| * Only use dnsseeds and static seeds when not on testnet.Matt Corallo2011-07-011-10/+13
| |
* | Limit response to getblocks to half of output buffer sizePieter Wuille2011-07-011-2/+2
|/ | | | | | Introduce SendBufferSize() and ReceiveBufferSize(), and limit the blocks sent as response to the "getblocks" message to half of the active send buffer size.
* Merge pull request #367 from TheBlueMatt/dnsseedJeff Garzik2011-06-301-0/+1
|\ | | | | Add new DNSSeed dnsseed.bluematt.me.
| * Add new DNSSeed dnsseed.bluematt.me.Matt Corallo2011-06-301-0/+1
| | | | | | | | | | This seed will pull a random set of 20 nodes from the network which are tested to be online instead of a static list.
* | Fix connection failure debug outputJoerie de Gram2011-06-281-1/+1
|/
* CWallet classPieter Wuille2011-06-151-2/+2
| | | | | | | | | | | | * A new class CKeyStore manages private keys, and script.cpp depends on access to CKeyStore. * A new class CWallet extends CKeyStore, and contains all former wallet-specific globals; CWallet depends on script.cpp, not the other way around. * Wallet-specific functions in CTransaction/CTxIn/CTxOut (GetDebit, GetCredit, GetChange, IsMine, IsFromMe), are moved to CWallet, taking their former 'this' argument as an explicit parameter * CWalletTx objects know which CWallet they belong to, for convenience, so they have their own direct (and caching) GetDebit/... functions. * Some code was moved from CWalletDB to CWallet, such as handling of reserve keys. * Main.cpp keeps a set of all 'registered' wallets, which should be informed about updates to the block chain, and does not have any notion about any 'main' wallet. Function in main.cpp that require a wallet (such as GenerateCoins), take an explicit CWallet* argument. * The actual CWallet instance used by the application is defined in init.cpp as "CWallet* pwalletMain". rpc.cpp and ui.cpp use this variable. * Functions in main.cpp and db.cpp that are not used by other modules are marked static. * The code for handling the 'submitorder' message is removed, as it not really compatible with the idea that a node is independent from the wallet(s) connected to it, and obsolete anyway.
* Merge pull request #226 from jordanlewis/betterheadersJeff Garzik2011-06-141-0/+5
|\ | | | | Optimize header dependencies; improve Makefile dependency graph
| * Only include strlcpy.h when we have toJordan Lewis2011-05-151-0/+1
| |
| * Only include init.h when we have toJordan Lewis2011-05-151-0/+1
| |
| * Only include net.h when we have toJordan Lewis2011-05-151-0/+1
| |
| * Only include db.h when we have to.Jordan Lewis2011-05-151-0/+1
| |