aboutsummaryrefslogtreecommitdiff
path: root/src/core.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3305 from mikehearn/fee_dropJeff Garzik2014-02-241-2/+2
|\ | | | | Drop fees by 10x due to the persistently higher exchange rate.
| * Drop fees by 10x due to the persistently higher exchange rate.Mike Hearn2013-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last fee drop was by 5x (from 50k satoshis to 10k satoshis) in the 0.8.2 release which was about 6 months ago. The current fee is (assuming a $500 exchange rate) about 5 dollar cents. The new fee after this patch is 0.5 cents. Miners who prefer the higher fees are obviously still able to use the command line flags to override this setting. Miners who choose to create smaller blocks will select the highest-fee paying transactions anyway. This would hopefully be the last manual adjustment ever required before floating fees become normal.
* | Add verbose boolean to getrawmempoolGavin Andresen2013-11-301-2/+5
| | | | | | | | | | Also changes mempool to store CTxMemPoolEntries to keep track of when they enter/exit the pool.
* | Refactor: move GetValueIn(tx) to tx.GetValueIn()Gavin Andresen2013-11-301-0/+9
|/ | | | GetValueIn makes more sense as a CTransaction member.
* Move CCoins-related logic to coins.{cpp.h}Pieter Wuille2013-11-101-228/+0
|
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-14/+17
| | | | | | | | | 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.
* Generalize the remove-outputs check for fully-prunable transactions.Pieter Wuille2013-10-281-0/+3
| | | | | | | | | Instead of explicitly testing for the presence of any output, and dealing with this case specially, just interpret it as an empty CCoins. The case previously caught using the HaveCoins check, is now handled by the generic outs != outsBlock test.
* Move CBlockLocator to core.hPieter Wuille2013-10-151-0/+34
| | | | | As CBlockLocator is a P2P data structure, and independent from the validation logic, it can be moved to core.
* Skip unspendable outputs in consistency checkPieter Wuille2013-09-241-5/+9
|
* Prune provably-unspendable outputsPieter Wuille2013-07-101-1/+7
|
* Move core implementations to core.cppPieter Wuille2013-06-251-227/+22
|
* Moved CBlock from main.h to core.hEric Lombrozo2013-06-231-0/+123
|
* fix comment about dust logicCozz Lovan2013-06-111-2/+2
|
* Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core.Eric Lombrozo2013-06-051-0/+61
|
* Moved CCoins, CTxOutCompressor, CTxInUndo, and CTxUndo to core.Eric Lombrozo2013-06-051-0/+332
|
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-1/+276
| | | | | | | | | | | | | | | | | 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-0/+15
| | | | regular function in main.
* Created core.h/core.cpp, added to makefiles. Started moving core structures ↵Eric Lombrozo2013-06-051-0/+53
from main to core beginning with COutPoint.