aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | New reject p2p messageGavin Andresen2013-11-111-4/+23
|/
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-39/+44
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Refactor: CTxMempool class to its own txmempool.{cpp,h}Gavin Andresen2013-11-041-44/+8
|
* Make some globals in main non-public.Pieter Wuille2013-11-011-20/+0
| | | | | | This means they are declared static, and their extern definition in main.h is removed. Also moved CBlockIndexWorkComparator to the .cpp file.
* Do not use the redundant BestInvalidWork record in the block database.Pieter Wuille2013-11-011-1/+0
| | | | | | As block index entries have a flag for marking invalid blocks, the 'best invalid work' information can be derived from there. In addition, remove the global from main.h
* Merge pull request #3115 from sipa/walletmainGavin Andresen2013-10-291-9/+18
|\ | | | | Interaction cleanups between main and wallet
| * Use boost signals for callbacks from main to walletPieter Wuille2013-10-261-9/+18
| |
* | Fix comparison tool by asking for blocks more aggressivelyMatt Corallo2013-10-271-1/+6
|/
* Merge pull request #3119Pieter Wuille2013-10-201-1/+1
|\ | | | | | | db0e8cc Bump Year Number to 2013 (super3)
| * Bump Year Number to 2013super32013-10-201-1/+1
| |
* | Move CBlockLocator to core.hPieter Wuille2013-10-151-38/+0
| | | | | | | | | | As CBlockLocator is a P2P data structure, and independent from the validation logic, it can be moved to core.
* | Reimplement CBlockLocator's chain-related logic in CChain.Pieter Wuille2013-10-151-17/+8
| | | | | | | | | | | | | | This removes a few unused CBlockLocator methods, and moves the construction and fork-finding logic to CChain (which can do these more efficiently, as it has a height-indexable chain available). It also makes CBlockLocator independent from the validation code.
* | Refactor/encapsulate chain globals into a CChain classPieter Wuille2013-10-111-30/+53
|/
* internal miner: move 2 globals from main to minerPhilip Kaufmann2013-09-251-2/+0
| | | | | | - moves 2 global variables from main.cpp/h to miner.cpp/h - also removes 2 unneded includes in miner.cpp, that come from miner.h already
* Merge pull request #2949 from gmaxwell/fewer_fee_footgunsGavin Andresen2013-09-221-1/+1
|\ | | | | [raw] reject insanely high fees by default in sendrawtransaction
| * [raw] reject insanely high fees by default in sendrawtransactionGregory Maxwell2013-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | There have been several incidents where mainnet experimentation with raw transactions resulted in insane fees. This is hard to prevent in the raw transaction api because the inputs may not be known. Since sending doesn't work if the inputs aren't known, we can catch it there. This rejects fees > than 10000 * nMinRelayTxFee or 1 BTC with the defaults and can be overridden with a bool at the rpc.
* | fix some printf -> LogPrintf leftoversPhilip Kaufmann2013-09-201-1/+1
| |
* | Bugfix: nHeightLast instead of nHeightFirstPieter Wuille2013-09-191-1/+1
| |
* | Replace printf with LogPrintf / LogPrintGavin Andresen2013-09-181-2/+2
| |
* | autotools: switch to autotools buildsystemCory Fields2013-09-051-0/+4
|/
* Mempool consistency checkPieter Wuille2013-08-151-0/+2
|
* Simplify storage of orphan transactionsGavin Andresen2013-08-021-2/+2
| | | | | | | | | Orphan transactions were stored as a CDataStream pointer; this changes the mapOrphanTransactions data structures to store orphans as a CTransaction. This also fixes CVE-2013-4627 by always re-serializing transactions before relaying them.
* Move internal miner/block creation to separate miner.cpp module.Jeff Garzik2013-07-311-10/+2
| | | | Public functions referenced elsewhere are added to miner.h.
* Minor miner fixes (hey hey it's fun to say)Jeff Garzik2013-07-311-1/+1
| | | | | | * Fix UpdateCoins() definition in main.h * Remove pwalletMain reference from BitcoinMiner(), as it is passed a wallet argument.
* Merge pull request #2743 from jgarzik/reject-reasonJeff Garzik2013-07-101-1/+1
|\ | | | | Log reason for non-standard transaction rejection
| * Log reason for non-standard transaction rejectionJeff Garzik2013-06-231-1/+1
| |
* | Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in ↵Eric Lombrozo2013-06-241-0/+2
| | | | | | | | init.cpp
* | Moved CBlock from main.h to core.hEric Lombrozo2013-06-231-122/+0
| |
* | Pulled AcceptBlock out of CBlock.Eric Lombrozo2013-06-231-5/+4
| |
* | Pulled CheckBlock out of CBlock.Eric Lombrozo2013-06-231-3/+3
| |
* | Pulled AddToBlockIndex out of CBlock.Eric Lombrozo2013-06-231-3/+2
| |
* | Pulled ConnectBlock out of CBlock.Eric Lombrozo2013-06-231-3/+4
| |
* | Pulled DisconnectBlock out of CBlock.Eric Lombrozo2013-06-231-6/+10
| |
* | Moved ReadBlockFromDisk implementation to main.cppEric Lombrozo2013-06-231-24/+1
| |
* | Moved CBlock::ReadFromDisk out of CBlock to functions ReadBlockFromDisk in ↵Eric Lombrozo2013-06-231-31/+25
| | | | | | | | main.h
* | Moved WriteBlockToDisk implementation from main.h to main.cppEric Lombrozo2013-06-231-25/+1
| |
* | Moved CBlock::WriteToDisk out of CBlock to inline function WriteBlockToDisk ↵Eric Lombrozo2013-06-231-25/+26
| | | | | | | | in main.h
* | Merge pull request #2778 from jgarzik/rpc-verifydbJeff Garzik2013-06-221-1/+1
|\ \ | |/ |/| RPC: add 'verifychain' to verify chain database at runtime
| * Pass check level, check depth to VerifyDB()Jeff Garzik2013-06-191-1/+1
| |
* | Merge pull request #2660 from TheBlueMatt/gmfrefactorPieter Wuille2013-06-221-2/+3
|\ \ | | | | | | Refactor fee rules to make them actually readable.
| * | Refactor fee rules to make them actually readable.Matt Corallo2013-06-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Introduce a CChainParameters singleton class and regtest mode.Mike Hearn2013-06-191-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-191-87/+12
| |/ |/| | | | | | | Move out of main.h to improve compile times and add documentation for what the methods do.
* | Remove broken option to skip input checking for wallet txn.Matt Corallo2013-06-131-2/+2
|/
* Removed the main.h include from net.cpp.Eric Lombrozo2013-06-061-2/+0
|
* Using boost::signals2 to message main from net.cpp.Eric Lombrozo2013-06-051-0/+5
|
* Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core.Eric Lombrozo2013-06-051-63/+3
|
* Moved CCoins, CTxOutCompressor, CTxInUndo, and CTxUndo to core.Eric Lombrozo2013-06-051-330/+0
|
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-342/+64
| | | | | | | | | | | | | | | | | 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-051-16/+2
| | | | regular function in main.