| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/
|
|
|
|
|
| |
This turns on most gcc warnings, and removes some unused variables and other code that triggers warnings.
Exceptions are:
-Wno-sign-compare : triggered by lots of comparisons of signed integer to foo.size(), which is unsigned.
-Wno-char-subscripts : triggered by the convert-to-hex functions (I may fix this in a future commit).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
|
| | |
|
| | |
|
| |\
| |
| | |
Implement BIP 14 : separate protocol version from client version
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| | |
Restore compatibility with miniupnpc 1.5 (without breaking miniupnp 1.6)
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | |
| | |
| | | |
luke-jr/bugfix_CreateThread_ThreadSocketHandler_errReporting
Bugfix: ThreadSocketHandler creation error
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
Only GetAdjustedTime once for the retry loop
|
| | |/ / |
|
| |/ / |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
trying to make the initial blockchain download.
|
| | |
| |
| |
| | |
they're tried.
|
| | |
| |
| |
| |
| |
| | |
Nodes culled from MagicalTux's database of bitcoin nodes,
http://dump.bitcoin.it/misc/
by version and longevity, and tested for connectivity.
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 to use miniupnpc 1.6
* Upgrade to wxWidgets 2.9.2
* Upgrade to Bost 1.47 for Win32 Builds
|
| |\
| |
| | |
Unify copyright notices.
|
| | |
| |
| |
| |
| |
| | |
To a variation on:
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2011 The Bitcoin developers
|
| | |
| |
| |
| | |
Signed-off-by: Jeff Garzik <[email protected]>
|
| |/ |
|
| |
|
|
|
| |
Makes Bitcoin identify itself as "Bitcoin + version number" instead of
the nondescript "libminiupnpc" when forwarding a port via UPnP.
|
| | |
|
| |
|
|
| |
Cuts disk activity at startup immensely
|
| |
|
|
|
|
| |
Remove several unused variables.
Signed-off-by: Giel van Schijndel <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[-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]>
|
| |
|
|
|
| |
This adds the relevent patches which are applied to wx,
and updates for cross compiling.
|
| | |
|
| |\
| |
| | |
Only use dnsseeds when not on testnet.
|
| | | |
|
| |/
|
|
|
|
| |
Introduce SendBufferSize() and ReceiveBufferSize(), and limit
the blocks sent as response to the "getblocks" message to
half of the active send buffer size.
|
| |\
| |
| | |
Add new DNSSeed dnsseed.bluematt.me.
|
| | |
| |
| |
| |
| | |
This seed will pull a random set of 20 nodes from the network which
are tested to be online instead of a static list.
|
| |/ |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |\
| |
| | |
Optimize header dependencies; improve Makefile dependency graph
|
| | | |
|
| | | |
|