aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/hardfork.h (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-09-19core: move hardforks into its own libmoneromooo-monero1-9/+2
So it can be used by others without encumbrance
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-01-01blockchain: fix wrong hf version when popping multiple blocksmoneromooo-monero1-0/+10
Since we keep track of the hf version in the db, we pick it up from there instead of doing the full reorg call, which is quite expensive
2018-06-29add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas1-7/+8
on_generateblocks RPC call combines functionality from the on_getblocktemplate and on_submitblock RPC calls to allow rapid block creation. Difficulty is set permanently to 1 for regtest. Makes use of FAKECHAIN network type, but takes hard fork heights from mainchain Default reserve_size in generate_blocks RPC call is now 1. If it is 0, the following error occurs 'Failed to calculate offset for'. Queries hard fork heights info of other network types
2018-02-13Remove `voting_version` parameter documentation.Jean Pierre Dudey1-1/+0
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-03-10fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi841-0/+0
BlockchainDB functions virtual again to avoid missing symbols error
2017-02-25core: move hardfork back to cryptonote_coremoneromooo-monero1-1/+1
should fix a cross dependency betewen cryptonote_basic and blockchain_db
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi841-1/+1
2017-01-14core: check block version for alt chains toomoneromooo-monero1-0/+15
This is incompatible with block version voting
2016-08-12daemon: print time to next forkmoneromooo-monero1-0/+7
2016-07-13remove hf_starting_height dbmoneromooo-monero1-7/+0
It's not really needed, it used to be an optimization for when that code was not using the db and needed to recalculate things fast on startup.
2015-12-31fixed copyrights with bad year referencesRiccardo Spagni1-1/+1
2015-12-19Allow the wallet to access hard fork informationmoneromooo-monero1-1/+7
And make it change behavior slightly when close/after first hard fork
2015-11-24hardfork: fix more major/minor issuesmoneromooo-monero1-5/+6
Also add some more tests, and rename some instances of "version" and "add" for clarity. NOTE: the starting height values are sometimes wrong. I suspect this is due to the hard fork reorg code being buggy, since they're good when syncing after the fact. However, they're not actually used by the consensus code, so I'm ignoring this for now, but this needs debugging.
2015-11-10hardfork: add a get_ideal_version(uint64_t) functionmoneromooo-monero1-0/+7
It returns the ideal version for a given height, which is based on the minimum height for a fork, disregarding votes
2015-11-08hardfork: allow per-fork voting thresholdsmoneromooo-monero1-6/+18
And setup the first fork to not vote
2015-10-17hardfork: simplify work done on reloadmoneromooo-monero1-0/+3
There is no need to fully recalculate and rewrite state, just refill state from the DB.
2015-09-27hardfork: make the voting window a weekmoneromooo-monero1-1/+1
2015-09-27hardfork: rescan speedupmoneromooo-monero1-3/+7
Add a block height before which version 1 is assumed Use DB transactions
2015-09-27hardfork: remove use of GNU extension for initializing objectmoneromooo-monero1-2/+3
2015-09-20hardfork: most state now saved to the DBmoneromooo-monero1-23/+18
There will be a delay on first load of an existing blockchain as it gets reparsed for this state data.
2015-09-20hardfork: remove the "parts are copyright cryptonote" noticesmoneromooo-monero1-2/+0
I coded the whole thing from scratch.
2015-09-19Add an RPC call and daemon command to get info on hard fork votingmoneromooo-monero1-2/+20
2015-09-12New hardfork classmoneromooo-monero1-0/+205
This keeps track of voting via block version, in order to decide when to enable a particular fork's code.