aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | Merge pull request #2778 from jgarzik/rpc-verifydbJeff Garzik2013-06-226-6/+26
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / |/| | | | | | | | | RPC: add 'verifychain' to verify chain database at runtime
| * | | | | | | | | RPC: add 'verifychain', to verify chain database at runtimeJeff Garzik2013-06-194-1/+21
| | | | | | | | | |
| * | | | | | | | | Pass check level, check depth to VerifyDB()Jeff Garzik2013-06-193-5/+5
| | | | | | | | | |
* | | | | | | | | | Merge pull request #2660 from TheBlueMatt/gmfrefactorPieter Wuille2013-06-223-29/+15
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Refactor fee rules to make them actually readable.
| * | | | | | | | | | Refactor fee rules to make them actually readable.Matt Corallo2013-06-143-29/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This (nearly) doesn't change fee rules at all: * To make it into the fee transaction area, the dPriority comparison changed from < to <= * We now just ignore transactions > MAX_BLOCK_SIZE/4 instead of doing some calculations to require increasingly large fees as size increases.
* | | | | | | | | | | Merge pull request #2765 from vobornik/masterPieter Wuille2013-06-221-0/+6
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / |/| | | | | | | | | | recognize Debian kFreeBSD port by build_detect_platform script
| * | | | | | | | | | Added GNU/kFreeBSD kernel name (TARGET_OS)Vaclav Vobornik2013-06-121-0/+6
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | uname -s returns "GNU/kFreeBSD" on Debian GNU/kFreeBSD port. See http://www.debian.org/ports/kfreebsd-gnu/
* | | | | | | | | | Merge pull request #2632 from mikehearn/chainparamsPieter Wuille2013-06-2225-462/+636
|\ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / |/| | | | | | | | | Refactor chain-specific tweaks into a CChainParams class and introduce a regtest mode
| * | | | | | | | | Introduce a CChainParameters singleton class and regtest mode.Mike Hearn2013-06-1925-375/+538
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new class is accessed via the Params() method and holds most things that vary between main, test and regtest networks. The regtest mode has two purposes, one is to run the bitcoind/bitcoinj comparison tool which compares two separate implementations of the Bitcoin protocol looking for divergence. The other is that when run, you get a local node which can mine a single block instantly, which is highly convenient for testing apps during development as there's no need to wait 10 minutes for a block on the testnet.
| * | | | | | | | | Move implementation of some CBlockLocator methodsMike Hearn2013-06-192-89/+100
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move out of main.h to improve compile times and add documentation for what the methods do.
* / | | | | | | | Refactor keytime/metadata and wallet encryption bugfixPieter Wuille2013-06-204-28/+36
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor keytime: * Key metadata is kept in a CWallet::mapKeyMetadata (std::map<CKeyId,CKeyMetadata>). * When generating a new key, time is put in that map, and new key is written. * AddKeyPubKey and AddCryptedKey do not take a creation time argument, but instead pull it from that map, if it exists there. Bugfix: * AddKeyPubKey and AddCryptedKey in CWallet didn't override the CKeyStore definition anymore. This is fixed, as they no longed need the nCreationTime argument now. Also a few related other changes: * Metadata can be overwritten. * Only GenerateNewKey calls GetTime(), as it's the only place where we know for sure a key was not constructed earlier. * When the nTimeFirstKey is known to be inaccurate, it is set to the value 1 (instead of 0, which would mean unknown). * Use CPubKey instead of std::vector<unsigned char> where possible.
* | | | | | | | Merge pull request #2760 from cozz/cozz2Jeff Garzik2013-06-181-2/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | fix comment about dust logic
| * | | | | | | | fix comment about dust logicCozz Lovan2013-06-111-2/+2
| |/ / / / / / /
* | | | | | | | Merge pull request #2763 from bitsofproof/masterPieter Wuille2013-06-171-1/+1
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | Send tx relay flag with version message
| * | | | | | | send tx relay flag with versionbitsofproof2013-06-111-1/+1
| |/ / / / / /
* | | | | | | Merge pull request #2648 from Diapolo/txindexPieter Wuille2013-06-152-5/+8
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | allow txindex to be removed and add a reindex dialog
| * | | | | | | allow txindex to be removed and add a reindex dialogPhilip Kaufmann2013-06-102-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - adds a reindex dialog for Bitcoin-Qt to change -txindex without the need to supply -reindex - now also does a -reindex, when removing the -txindex switch
* | | | | | | | Merge pull request #2766 from theuni/fix-shutdown-deadlockPieter Wuille2013-06-151-1/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fix shutdown deadlock, ticket #2690
| * | | | | | | | fixed: don't use thread::sleep_for where it's known to be brokentheuni2013-06-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2690.
| * | | | | | | | fixed: include boost header as necessarytheuni2013-06-131-0/+1
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this include, sometimes BOOST_VERSION was defined and sometimes it was not, depending on which includes came before it. The result was a random mix of sleep or sleep_for for boost versions >= 1.50.
* / | | | | | | Remove broken option to skip input checking for wallet txn.Matt Corallo2013-06-135-16/+15
|/ / / / / / /
* | | | | | | Merge pull request #2553 from Diapolo/threadsJeff Garzik2013-06-103-27/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | changes to thread code (directly use boost::thread)
| * | | | | | | changes to thread code (directly use boost::thread)Philip Kaufmann2013-06-103-27/+5
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - removes our NewThread() function an replaces remaining calls with boost::thread with our TraceThread template - remove ExitThread() function - fix THREAD_PRIORITY_ABOVE_NORMAL for non Windows OSes
* | | | | | | Merge pull request #1863 from jgarzik/keytimePieter Wuille2013-06-104-38/+142
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | "Wallet birthdays": store key create time; calc whole-wallet birthday
| * | | | | | Wallet: optimize rescan to skip blocks prior to birthdayJeff Garzik2013-06-101-0/+7
| | | | | | |
| * | | | | | Wallet: store key creation time. Calculate whole-wallet birthday.Jeff Garzik2013-06-104-38/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This also encapsulate wallet-read state information into CWalletScanState.
* | | | | | | Merge pull request #2747 from luke-jr/getblock_verbose0Jeff Garzik2013-06-102-3/+18
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Add verbose flag to getblock RPC so it is possible to get hex dumps of blocks
| * | | | | | RPC: getblock(): Accept 2nd "verbose" parameter, similar to ↵Luke Dashjr2013-06-072-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | getrawtransaction, but defaulting to 1 for backward compatibility
* | | | | | | Merge pull request #2154 from CodeShark/dependencycleanupJeff Garzik2013-06-1029-1023/+1101
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Clean up code dependencies
| * | | | | | | Removed the main.h include from net.cpp.Eric Lombrozo2013-06-063-9/+4
| | | | | | | |
| * | | | | | | Using boost::signals2 to message main from net.cpp.Eric Lombrozo2013-06-055-37/+37
| | | | | | | |
| * | | | | | | Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core.Eric Lombrozo2013-06-054-70/+71
| | | | | | | |
| * | | | | | | Removed script.cpp's dependence on main.hEric Lombrozo2013-06-051-1/+1
| | | | | | | |
| * | | | | | | Moved CCoins, CTxOutCompressor, CTxInUndo, and CTxUndo to core.Eric Lombrozo2013-06-052-330/+332
| | | | | | | |
| * | | | | | | Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-0517-524/+527
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
| * | | | | | | Moved CInPoint to core. Removed GetMinFee from CTransaction and made it a ↵Eric Lombrozo2013-06-054-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regular function in main.
| * | | | | | | Created core.h/core.cpp, added to makefiles. Started moving core structures ↵Eric Lombrozo2013-06-057-41/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from main to core beginning with COutPoint.
| * | | | | | | Removed net.cpp's dependency on init.h.Eric Lombrozo2013-06-054-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added explicit include of main.h in init.cpp, changed include of init.h to include of main.h in net.cpp. Added function registration for net.cpp in init.cpp's network initialization. Removed protocol.cpp's dependency on main.h. TODO: Remove main.h include in net.cpp.
| * | | | | | | Moved unrelated-to-network calls in StartNode and StopNode into init.cppEric Lombrozo2013-06-052-1/+2
| | | | | | | |
| * | | | | | | Moved PushGetBlocks to main.cpp to eliminate dependence of net.cpp on ↵Eric Lombrozo2013-06-054-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CBlockLocator.
| * | | | | | | Get rid of db dependencies on mainEric Lombrozo2013-06-055-8/+22
| | | | | | | |
* | | | | | | | Merge pull request #2749 from laanwj/2013_06_addtotalbalanceWladimir J. van der Laan2013-06-092-3/+40
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | qt: Add total balance in overview page
| * | | | | | | | qt: Add total balance in overview pageWladimir J. van der Laan2013-06-072-3/+40
| |/ / / / / / /
* / / / / / / / Create parent directories if needed in GetDataDirWladimir J. van der Laan2013-06-081-1/+1
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | One-line change. Fixes #2752.
* | | | | | | Merge pull request #2700 from theuni/gui-splitJeff Garzik2013-06-0510-227/+239
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | autotools: Gui split
| * | | | | | | build: cosmetics after last commitCory Fields2013-06-041-12/+12
| | | | | | | |
| * | | | | | | build: use runtime setting for wallet rather than QT_GUI defineCory Fields2013-06-041-2/+3
| | | | | | | |
| * | | | | | | build: use runtime setting for displaying the help message rather than ↵Cory Fields2013-06-041-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QT_GUI define
| * | | | | | | build: cosmetic: split usage string for easier formattingCory Fields2013-06-041-70/+70
| | | | | | | |
| * | | | | | | build: add global var for whether or not the gui is enabledCory Fields2013-06-044-0/+5
| | | | | | | |