aboutsummaryrefslogtreecommitdiff
path: root/src/hardforks/hardforks.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/hardforks/hardforks.h (renamed from src/blockchain_db/db_types.h)28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/blockchain_db/db_types.h b/src/hardforks/hardforks.h
index 04cadbb10..e7bceca42 100644
--- a/src/blockchain_db/db_types.h
+++ b/src/hardforks/hardforks.h
@@ -25,12 +25,28 @@
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
+
#pragma once
-namespace cryptonote
+#include <stdint.h>
+#include <time.h>
+
+struct hardfork_t
{
- bool blockchain_valid_db_type(const std::string& db_type);
- std::string blockchain_db_types(const std::string& sep);
-} // namespace cryptonote
+ uint8_t version;
+ uint64_t height;
+ uint8_t threshold;
+ time_t time;
+ hardfork_t(uint8_t version, uint64_t height, uint8_t threshold, time_t time): version(version), height(height), threshold(threshold), time(time) {}
+};
+
+extern const hardfork_t mainnet_hard_forks[];
+extern const uint64_t mainnet_hard_fork_version_1_till;
+extern const size_t num_mainnet_hard_forks;
+
+extern const hardfork_t testnet_hard_forks[];
+extern const uint64_t testnet_hard_fork_version_1_till;
+extern const size_t num_testnet_hard_forks;
+
+extern const hardfork_t stagenet_hard_forks[];
+extern const size_t num_stagenet_hard_forks;