aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/hardfork.h
Commit message (Collapse)AuthorAgeFilesLines
* fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi842017-03-101-265/+0
| | | | BlockchainDB functions virtual again to avoid missing symbols error
* core: move hardfork back to cryptonote_coremoneromooo-monero2017-02-251-0/+265
| | | | | should fix a cross dependency betewen cryptonote_basic and blockchain_db
* extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-081-265/+0
|
* core: check block version for alt chains toomoneromooo-monero2017-01-141-0/+15
| | | | This is incompatible with block version voting
* daemon: print time to next forkmoneromooo-monero2016-08-121-0/+7
|
* remove hf_starting_height dbmoneromooo-monero2016-07-131-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.
* fixed copyrights with bad year referencesRiccardo Spagni2015-12-311-1/+1
|
* Allow the wallet to access hard fork informationmoneromooo-monero2015-12-191-1/+7
| | | | And make it change behavior slightly when close/after first hard fork
* hardfork: fix more major/minor issuesmoneromooo-monero2015-11-241-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.
* hardfork: add a get_ideal_version(uint64_t) functionmoneromooo-monero2015-11-101-0/+7
| | | | | It returns the ideal version for a given height, which is based on the minimum height for a fork, disregarding votes
* hardfork: allow per-fork voting thresholdsmoneromooo-monero2015-11-081-6/+18
| | | | And setup the first fork to not vote
* hardfork: simplify work done on reloadmoneromooo-monero2015-10-171-0/+3
| | | | | There is no need to fully recalculate and rewrite state, just refill state from the DB.
* hardfork: make the voting window a weekmoneromooo-monero2015-09-271-1/+1
|
* hardfork: rescan speedupmoneromooo-monero2015-09-271-3/+7
| | | | | Add a block height before which version 1 is assumed Use DB transactions
* hardfork: remove use of GNU extension for initializing objectmoneromooo-monero2015-09-271-2/+3
|
* hardfork: most state now saved to the DBmoneromooo-monero2015-09-201-23/+18
| | | | | There will be a delay on first load of an existing blockchain as it gets reparsed for this state data.
* hardfork: remove the "parts are copyright cryptonote" noticesmoneromooo-monero2015-09-201-2/+0
| | | | I coded the whole thing from scratch.
* Add an RPC call and daemon command to get info on hard fork votingmoneromooo-monero2015-09-191-2/+20
|
* New hardfork classmoneromooo-monero2015-09-121-0/+205
This keeps track of voting via block version, in order to decide when to enable a particular fork's code.