aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/consensus.h
Commit message (Collapse)AuthorAgeFilesLines
* Clean up RPC tests (#1465)Ross Nicoll2018-09-191-2/+0
| | | | | | | | | | * Enable full block tests * Fix invalidblocktest * Move watch only address funding to immediately before it's used, so node 0 doesn't spend the output before it checks it later. * Fix `fundrawtransaction` tests and sanitize fee calculation at the same time * Correct resolution of chain parameters when validating tx inputs, especially from previous coinbase transactions * Set block versions on full block tests so that the generated blocks are AuxPoW compatible
* Move COINBASE_MATURITY to the consensus parameters (#1426)Ross Nicoll2018-09-191-4/+0
|
* Replace consensus values with Dogecoin equivalentsRoss Nicoll2018-09-191-1/+5
| | | | | | | * Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Rename "block cost" to "block weight"Suhas Daftuar2016-07-181-2/+2
|
* BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-3/+9
| | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* Merge #7184: Implement SequenceLocks functions for BIP 68Wladimir J. van der Laan2016-02-121-1/+4
|\ | | | | | | | | | | | | b043c4b fix sdaftuar's nits again (Alex Morcos) a51c79b Bug fix to RPC test (Alex Morcos) da6ad5f Add RPC test exercising BIP68 (mempool only) (Suhas Daftuar) c6c2f0f Implement SequenceLocks functions (Alex Morcos)
| * Implement SequenceLocks functionsAlex Morcos2016-02-101-1/+4
| | | | | | | | | | | | | | SequenceLocks functions are used to evaluate sequence lock times or heights per BIP 68. The majority of this code is copied from maaku in #6312 Further credit: btcdrak, sipa, NicolasDorier
* | Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|/
* Restore MedianTimePast for locktime.Gregory Maxwell2015-11-031-0/+6
| | | | | | | | Revert "Revert "Add rules--presently disabled--for using GetMedianTimePast as endpoint for lock-time calculations"" This reverts commit 40cd32e835092c3158175511da5193193ec54939. After careful analysis it was determined that the change was, in fact, safe and several people were suffering momentary confusion about locktime semantics.
* Revert "Add rules--presently disabled--for using GetMedianTimePast as ↵Gregory Maxwell2015-11-011-6/+0
| | | | | | | | | | | | | endpoint for lock-time calculations" This reverts commit 9d55050773d57c0e12005e524f2e54d9e622c6e2. As noted by Luke-Jr, under some conditions this will accept transactions which are invalid by the network rules. This happens when the current block time is head of the median time past and a transaction's locktime is in the middle. This could be addressed by changing the rule to MAX(this_block_time, MTP+offset) but this solution and the particular offset used deserve some consideration.
* Add rules--presently disabled--for using GetMedianTimePast as endpoint for ↵Mark Friedenbach2015-10-231-0/+6
| | | | | | | | lock-time calculations The lock-time code currently uses CBlock::nTime as the cutoff point for time based locked transactions. This has the unfortunate outcome of creating a perverse incentive for miners to lie about the time of a block in order to collect more fees by including transactions that by wall clock determination have not yet matured. By using CBlockIndex::GetMedianTimePast from the prior block instead, the self-interested miner no longer gains from generating blocks with fraudulent timestamps. Users can compensate for this change by simply adding an hour (3600 seconds) to their time-based lock times. If enforced, this would be a soft-fork change. This commit only adds the functionality on an unexecuted code path, without changing the behaviour of Bitcoin Core.
* Move LOCKTIME_THRESHOLD to src/script/script.hPeter Todd2015-05-091-2/+0
| | | | Will now be needed by CHECKLOCKTIMEVERIFY code.
* Consensus: Create consensus/consensus.h with some constantsjtimon2015-04-201-0/+18