aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Don't warn about forks while fIsInitialDownloadMatt Corallo2013-09-031-0/+5
|/ /
* | Fix out-of-bounds checkPieter Wuille2013-08-241-1/+2
| |
* | Update the bloom state on the real object, not the temporary one.Gregory Maxwell2013-08-201-1/+1
| | | | | | | | | | This resulted in just passing all transactions to filtered wallets which worked surprisingly well, except where it didn't.
* | Performance optimization for bloom filters.Gregory Maxwell2013-08-201-1/+2
| | | | | | | | | | | | | | | | This reduces a peer's ability to attack network resources by using a full bloom filter, but without reducing the usability of bloom filters. It sets a default match everything filter for peers and it generalizes a prior optimization to cover more cases.
* | Mempool consistency checkPieter Wuille2013-08-151-0/+45
| |
* | Fix non-standard disconnected transactions causing mempool orphansPieter Wuille2013-08-151-8/+9
| |
* | Merge pull request #2658 from TheBlueMatt/forkalertGavin Andresen2013-08-121-6/+88
|\ \ | | | | | | Detect any sufficiently long fork and alert the user just like any other alert
| * | Better warning/"alert" messages for large-work forks.Matt Corallo2013-07-221-5/+26
| | |
| * | Call the -alertnotify script when we see a long or invalid fork.Matt Corallo2013-07-221-0/+10
| | |
| * | Detect any sufficiently long fork and add a warning.Matt Corallo2013-07-221-5/+56
| | | | | | | | | | | | | | | Such a fork is defined as being at least 7 blocks long and having a tip which is within 72 blocks of our best block.
* | | do not call BuildMerkleTree() unnecessarily twiceCozz Lovan2013-08-101-1/+1
| |/ |/|
* | Merge pull request #2871 from gavinandresen/simplify_maporphanGavin Andresen2013-08-061-48/+28
|\ \ | | | | | | Simplify storage of orphan transactions, fix CVE-2013-4627
| * | Simplify storage of orphan transactionsGavin Andresen2013-08-021-38/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Revert "Truncate oversize 'tx' messages before relaying/storing."Gavin Andresen2013-08-021-10/+0
| | | | | | | | | | | | This reverts commit c40a5aaaf484855a4350fd702e8e72fd21a68155.
* | | Merge pull request #2851 from TheBlueMatt/masterGavin Andresen2013-08-051-6/+6
|\ \ \ | |/ / |/| | Prepare for mempool testing in pull-tester and fix multi-block transaction resurrection
| * | Fix multi-block reorg transaction resurrectionMatt Corallo2013-07-231-3/+3
| | |
| * | Don't use checkpoints and accept nonstd txn on -regtestMatt Corallo2013-07-231-3/+3
| |/
* | Move internal miner/block creation to separate miner.cpp module.Jeff Garzik2013-07-311-658/+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.
* | Remove #define loop from util.hGavin Andresen2013-07-311-2/+2
|/ | | | | Replace the loop macro with while (true). The #define caused problems for Qt.
* Merge pull request #2743 from jgarzik/reject-reasonJeff Garzik2013-07-101-10/+27
|\ | | | | Log reason for non-standard transaction rejection
| * Log reason for non-standard transaction rejectionJeff Garzik2013-06-231-10/+27
| |
* | Merge pull request #2209 from CodeShark/WalletRegistrationLocksPieter Wuille2013-06-251-0/+14
|\ \ | | | | | | Wallet registration locks in main.cpp + UnregisterAllWallet() function
| * | Added locks on the setpwalletRegistered functions in main.cpp and added an ↵Eric Lombrozo2013-06-241-0/+14
| | | | | | | | | | | | UnregisterAllWallets function.
* | | Merge pull request #2792 from sipa/coreimplJeff Garzik2013-06-251-53/+0
|\ \ \ | | | | | | | | Move core implementations to core.cpp
| * | | Move core implementations to core.cppPieter Wuille2013-06-251-53/+0
| |/ /
* / / Truncate oversize 'tx' messages before relaying/storing.Peter Todd2013-06-251-0/+10
|/ / | | | | | | Fixes a memory exhaustion attack on low-memory peers.
* | Pulled AcceptBlock out of CBlock.Eric Lombrozo2013-06-231-16/+16
| |
* | Pulled CheckBlock out of CBlock.Eric Lombrozo2013-06-231-17/+17
| |
* | Pulled AddToBlockIndex out of CBlock.Eric Lombrozo2013-06-231-8/+8
| |
* | Pulled ConnectBlock out of CBlock.Eric Lombrozo2013-06-231-19/+19
| |
* | Pulled DisconnectBlock out of CBlock.Eric Lombrozo2013-06-231-6/+6
| |
* | Moved ReadBlockFromDisk implementation to main.cppEric Lombrozo2013-06-231-0/+24
| |
* | Moved CBlock::ReadFromDisk out of CBlock to functions ReadBlockFromDisk in ↵Eric Lombrozo2013-06-231-14/+14
| | | | | | | | main.h
* | Moved WriteBlockToDisk implementation from main.h to main.cppEric Lombrozo2013-06-231-0/+26
| |
* | Moved CBlock::WriteToDisk out of CBlock to inline function WriteBlockToDisk ↵Eric Lombrozo2013-06-231-2/+2
| | | | | | | | in main.h
* | Merge pull request #2778 from jgarzik/rpc-verifydbJeff Garzik2013-06-221-4/+3
|\ \ | |/ |/| RPC: add 'verifychain' to verify chain database at runtime
| * RPC: add 'verifychain', to verify chain database at runtimeJeff Garzik2013-06-191-1/+1
| |
| * Pass check level, check depth to VerifyDB()Jeff Garzik2013-06-191-3/+2
| |
* | Merge pull request #2660 from TheBlueMatt/gmfrefactorPieter Wuille2013-06-221-26/+11
|\ \ | | | | | | Refactor fee rules to make them actually readable.
| * | Refactor fee rules to make them actually readable.Matt Corallo2013-06-141-26/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-94/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+88
| |/ |/| | | | | | | 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-10/+9
|/
* Using boost::signals2 to message main from net.cpp.Eric Lombrozo2013-06-051-0/+15
|
* Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core.Eric Lombrozo2013-06-051-5/+5
|
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-136/+140
| | | | | | | | | | | | | | | | | 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-6/+5
| | | | regular function in main.
* Moved PushGetBlocks to main.cpp to eliminate dependence of net.cpp on ↵Eric Lombrozo2013-06-051-4/+15
| | | | CBlockLocator.
* build: add global var for whether or not the gui is enabledCory Fields2013-06-041-0/+1
|