Added cmake flag to determine Mainnet vs Testnet build
This commit is contained in:
parent
d5e02551e2
commit
9d446df4ac
42 changed files with 216368 additions and 46 deletions
|
|
@ -51,7 +51,15 @@ macro(FIND_CURL)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
|
set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
|
||||||
set(GRAPHENE_EGENESIS_JSON "${CMAKE_CURRENT_SOURCE_DIR}/genesis.json" CACHE PATH "location of the genesis.json to embed in the executable" )
|
|
||||||
|
if (BUILD_PEERPLAYS_TESTNET)
|
||||||
|
set(GRAPHENE_EGENESIS_JSON "${CMAKE_CURRENT_SOURCE_DIR}/genesis-testnet.json" CACHE PATH "location of the genesis.json to embed in the executable" )
|
||||||
|
add_compile_definitions(BUILD_PEERPLAYS_TESTNET=1)
|
||||||
|
message ("\n====================\nBuilding for Testnet\n====================\n")
|
||||||
|
else (BUILD_PEERPLAYS_TESTNET)
|
||||||
|
set(GRAPHENE_EGENESIS_JSON "${CMAKE_CURRENT_SOURCE_DIR}/genesis-mainnet.json" CACHE PATH "location of the genesis.json to embed in the executable" )
|
||||||
|
message ("\n====================\nBuilding for Mainnet\n====================\n")
|
||||||
|
endif (BUILD_PEERPLAYS_TESTNET)
|
||||||
|
|
||||||
#set (ENABLE_INSTALLER 1)
|
#set (ENABLE_INSTALLER 1)
|
||||||
#set (USE_PCH 1)
|
#set (USE_PCH 1)
|
||||||
|
|
@ -242,3 +250,7 @@ endif(LINUX)
|
||||||
include(CPack)
|
include(CPack)
|
||||||
endif(ENABLE_INSTALLER)
|
endif(ENABLE_INSTALLER)
|
||||||
|
|
||||||
|
unset(GRAPHENE_EGENESIS_JSON)
|
||||||
|
unset(GRAPHENE_EGENESIS_JSON CACHE)
|
||||||
|
unset(BUILD_PEERPLAYS_TESTNET)
|
||||||
|
unset(BUILD_PEERPLAYS_TESTNET CACHE)
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,10 @@ export BOOST_ROOT=$HOME/src/boost_1_67_0
|
||||||
git clone https://github.com/peerplays-network/peerplays.git
|
git clone https://github.com/peerplays-network/peerplays.git
|
||||||
cd peerplays
|
cd peerplays
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
# If you want to build Mainnet node
|
||||||
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release
|
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release
|
||||||
|
# If you want to build Testnet node
|
||||||
|
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
make install # this can install the executable files under /usr/local
|
make install # this can install the executable files under /usr/local
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
find ./libraries/chain/hardfork.d -regex ".*hf" | xargs clang-format -i
|
||||||
find ./libraries/plugins/peerplays_sidechain -regex ".*[c|h]pp" | xargs clang-format -i
|
find ./libraries/plugins/peerplays_sidechain -regex ".*[c|h]pp" | xargs clang-format -i
|
||||||
|
|
||||||
|
|
|
||||||
216158
genesis-mainnet.json
Normal file
216158
genesis-mainnet.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -160,12 +160,22 @@ namespace detail {
|
||||||
{
|
{
|
||||||
// t.me/peerplays #seednodes
|
// t.me/peerplays #seednodes
|
||||||
vector<string> seeds = {
|
vector<string> seeds = {
|
||||||
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
"pts.blockveritas.co:6666",
|
"pts.blockveritas.co:6666",
|
||||||
"seed-beatrice01.eifos.org:7777",
|
"seed-beatrice01.eifos.org:7777",
|
||||||
"seed-testnet.ppy.alex-pu.info:7777",
|
"seed-testnet.ppy.alex-pu.info:7777",
|
||||||
"seed.ppy-beatrice.blckchnd.com:6666",
|
"seed.ppy-beatrice.blckchnd.com:6666",
|
||||||
"seed.testnet.peerblock.trade:6666",
|
"seed.testnet.peerblock.trade:6666",
|
||||||
"testnet-ppyapi.spacemx.tech:9777"
|
"testnet-ppyapi.spacemx.tech:9777"
|
||||||
|
#else
|
||||||
|
"173.249.23.108:9777",
|
||||||
|
"node.peerblock.trade:9777",
|
||||||
|
"peerplays.blockoperations.com:9777",
|
||||||
|
"pms.blockveritas.co:7777",
|
||||||
|
"seed.ppy.alex-pu.info:8888",
|
||||||
|
"seed.ppy.blckchnd.com:6116",
|
||||||
|
"seed01.eifos.org:7777"
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
for( const string& endpoint_string : seeds )
|
for( const string& endpoint_string : seeds )
|
||||||
|
|
@ -379,7 +389,7 @@ namespace detail {
|
||||||
{
|
{
|
||||||
_chain_db->enable_standby_votes_tracking( _options->at("enable-standby-votes-tracking").as<bool>() );
|
_chain_db->enable_standby_votes_tracking( _options->at("enable-standby-votes-tracking").as<bool>() );
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string replay_reason = "reason not provided";
|
std::string replay_reason = "reason not provided";
|
||||||
|
|
||||||
if( _options->count("replay-blockchain") )
|
if( _options->count("replay-blockchain") )
|
||||||
|
|
@ -794,7 +804,7 @@ namespace detail {
|
||||||
if (high_block_num == 0)
|
if (high_block_num == 0)
|
||||||
return synopsis; // we have no blocks
|
return synopsis; // we have no blocks
|
||||||
}
|
}
|
||||||
|
|
||||||
if( low_block_num == 0)
|
if( low_block_num == 0)
|
||||||
low_block_num = 1;
|
low_block_num = 1;
|
||||||
|
|
||||||
|
|
@ -987,7 +997,7 @@ void application::initialize(const fc::path& data_dir, const boost::program_opti
|
||||||
boost::split(wanted, options.at("plugins").as<std::string>(), [](char c){return c == ' ';});
|
boost::split(wanted, options.at("plugins").as<std::string>(), [](char c){return c == ' ';});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wanted.insert("account_history");
|
wanted.insert("account_history");
|
||||||
wanted.insert("market_history");
|
wanted.insert("market_history");
|
||||||
wanted.insert("accounts_list");
|
wanted.insert("accounts_list");
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
#ifndef HARDFORK_1000_TIME
|
#ifndef HARDFORK_1000_TIME
|
||||||
#define HARDFORK_1000_TIME (fc::time_point_sec( 1540000000 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_1000_TIME (fc::time_point_sec::from_iso_string("2018-10-20T01:46:40"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_1000_TIME (fc::time_point_sec::from_iso_string("2019-02-18T12:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// added delete sport and delete event group operations
|
// added delete sport and delete event group operations
|
||||||
#ifndef HARDFORK_1001_TIME
|
#ifndef HARDFORK_1001_TIME
|
||||||
#define HARDFORK_1001_TIME (fc::time_point_sec( 1540000000 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_1001_TIME (fc::time_point_sec::from_iso_string("2018-10-20T01:46:40"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_1001_TIME (fc::time_point_sec::from_iso_string("2019-02-18T12:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #357 Disallow publishing certain malformed price feeds
|
// #357 Disallow publishing certain malformed price feeds
|
||||||
#ifndef HARDFORK_357_TIME
|
#ifndef HARDFORK_357_TIME
|
||||||
#define HARDFORK_357_TIME (fc::time_point_sec( 1444416300 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_357_TIME (fc::time_point_sec::from_iso_string("2015-10-09T18:45:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_357_TIME (fc::time_point_sec::from_iso_string("2015-10-09T18:45:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #359 Allow digits in asset name
|
// #359 Allow digits in asset name
|
||||||
#ifndef HARDFORK_359_TIME
|
#ifndef HARDFORK_359_TIME
|
||||||
#define HARDFORK_359_TIME (fc::time_point_sec( 1444416300 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_359_TIME (fc::time_point_sec::from_iso_string("2015-10-09T18:45:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_359_TIME (fc::time_point_sec::from_iso_string("2015-10-09T18:45:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #385 October 23 enforce PARENT.CHILD and allow short names
|
// #385 October 23 enforce PARENT.CHILD and allow short names
|
||||||
#ifndef HARDFORK_385_TIME
|
#ifndef HARDFORK_385_TIME
|
||||||
#define HARDFORK_385_TIME (fc::time_point_sec( 1445558400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_385_TIME (fc::time_point_sec::from_iso_string("2015-10-23T00:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_385_TIME (fc::time_point_sec::from_iso_string("2015-10-23T00:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #409 Allow creation of sub-assets
|
// #409 Allow creation of sub-assets
|
||||||
#ifndef HARDFORK_409_TIME
|
#ifndef HARDFORK_409_TIME
|
||||||
#define HARDFORK_409_TIME (fc::time_point_sec( 1446652800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_409_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_409_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #413 Add operation to claim asset fees
|
// #413 Add operation to claim asset fees
|
||||||
#ifndef HARDFORK_413_TIME
|
#ifndef HARDFORK_413_TIME
|
||||||
#define HARDFORK_413_TIME (fc::time_point_sec( 1446652800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_413_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_413_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #415 Default accept policy for asset with no whitelist authorities
|
// #415 Default accept policy for asset with no whitelist authorities
|
||||||
#ifndef HARDFORK_415_TIME
|
#ifndef HARDFORK_415_TIME
|
||||||
#define HARDFORK_415_TIME (fc::time_point_sec( 1446652800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_415_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_415_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #416 enforce_white_list is inconsistently applied
|
// #416 enforce_white_list is inconsistently applied
|
||||||
#ifndef HARDFORK_416_TIME
|
#ifndef HARDFORK_416_TIME
|
||||||
#define HARDFORK_416_TIME (fc::time_point_sec( 1446652800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_416_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_416_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #419 Account can pay fees in blacklisted asset
|
// #419 Account can pay fees in blacklisted asset
|
||||||
#ifndef HARDFORK_419_TIME
|
#ifndef HARDFORK_419_TIME
|
||||||
#define HARDFORK_419_TIME (fc::time_point_sec( 1446652800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_419_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_419_TIME (fc::time_point_sec::from_iso_string("2015-11-04T16:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #436 Prevent margin call from being triggered unless feed < call price
|
// #436 Prevent margin call from being triggered unless feed < call price
|
||||||
#ifndef HARDFORK_436_TIME
|
#ifndef HARDFORK_436_TIME
|
||||||
#define HARDFORK_436_TIME (fc::time_point_sec( 1450288800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_436_TIME (fc::time_point_sec::from_iso_string("2015-12-16T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_436_TIME (fc::time_point_sec::from_iso_string("2015-12-16T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #445 Refund create order fees on cancel
|
// #445 Refund create order fees on cancel
|
||||||
#ifndef HARDFORK_445_TIME
|
#ifndef HARDFORK_445_TIME
|
||||||
#define HARDFORK_445_TIME (fc::time_point_sec( 1450288800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_445_TIME (fc::time_point_sec::from_iso_string("2015-12-16T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_445_TIME (fc::time_point_sec::from_iso_string("2015-12-16T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #453 Hardfork to retroactively correct referral percentages
|
// #453 Hardfork to retroactively correct referral percentages
|
||||||
#ifndef HARDFORK_453_TIME
|
#ifndef HARDFORK_453_TIME
|
||||||
#define HARDFORK_453_TIME (fc::time_point_sec( 1450288800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_453_TIME (fc::time_point_sec::from_iso_string("2015-12-16T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_453_TIME (fc::time_point_sec::from_iso_string("2015-12-16T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #480 Fix non-BTS MIA core_exchange_rate check
|
// #480 Fix non-BTS MIA core_exchange_rate check
|
||||||
#ifndef HARDFORK_480_TIME
|
#ifndef HARDFORK_480_TIME
|
||||||
#define HARDFORK_480_TIME (fc::time_point_sec( 1450378800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_480_TIME (fc::time_point_sec::from_iso_string("2015-12-17T19:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_480_TIME (fc::time_point_sec::from_iso_string("2015-12-17T19:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #483 Operation history numbering change
|
// #483 Operation history numbering change
|
||||||
#ifndef HARDFORK_483_TIME
|
#ifndef HARDFORK_483_TIME
|
||||||
#define HARDFORK_483_TIME (fc::time_point_sec( 1450378800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_483_TIME (fc::time_point_sec::from_iso_string("2015-12-17T19:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_483_TIME (fc::time_point_sec::from_iso_string("2015-12-17T19:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
// 5050_1 HARDFORK Wednesday, 15 April 2020 20:00:00 GMT
|
|
||||||
#ifndef HARDFORK_5050_1_TIME
|
#ifndef HARDFORK_5050_1_TIME
|
||||||
#define HARDFORK_5050_1_TIME (fc::time_point_sec( 1586980800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_5050_1_TIME (fc::time_point_sec::from_iso_string("2020-04-15T20:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_5050_1_TIME (fc::time_point_sec::from_iso_string("2020-04-22T20:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #516 Special authorities
|
// #516 Special authorities
|
||||||
#ifndef HARDFORK_516_TIME
|
#ifndef HARDFORK_516_TIME
|
||||||
#define HARDFORK_516_TIME (fc::time_point_sec( 1456250400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_516_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_516_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #533 Improve vote counting implementation
|
// #533 Improve vote counting implementation
|
||||||
#ifndef HARDFORK_533_TIME
|
#ifndef HARDFORK_533_TIME
|
||||||
#define HARDFORK_533_TIME (fc::time_point_sec( 1456250400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_533_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_533_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #538 Buyback accounts
|
// #538 Buyback accounts
|
||||||
#ifndef HARDFORK_538_TIME
|
#ifndef HARDFORK_538_TIME
|
||||||
#define HARDFORK_538_TIME (fc::time_point_sec( 1456250400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_538_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_538_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #555 Buyback accounts
|
// #555 Buyback accounts
|
||||||
#ifndef HARDFORK_555_TIME
|
#ifndef HARDFORK_555_TIME
|
||||||
#define HARDFORK_555_TIME (fc::time_point_sec( 1456250400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_555_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_555_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #563 Stealth fee routing
|
// #563 Stealth fee routing
|
||||||
#ifndef HARDFORK_563_TIME
|
#ifndef HARDFORK_563_TIME
|
||||||
#define HARDFORK_563_TIME (fc::time_point_sec( 1456250400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_563_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_563_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #572 Allow asset to update permission flags when no supply exists
|
// #572 Allow asset to update permission flags when no supply exists
|
||||||
#ifndef HARDFORK_572_TIME
|
#ifndef HARDFORK_572_TIME
|
||||||
#define HARDFORK_572_TIME (fc::time_point_sec( 1456250400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_572_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_572_TIME (fc::time_point_sec::from_iso_string("2016-02-23T18:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #599 Unpacking of extension is incorrect
|
// #599 Unpacking of extension is incorrect
|
||||||
#ifndef HARDFORK_599_TIME
|
#ifndef HARDFORK_599_TIME
|
||||||
#define HARDFORK_599_TIME (fc::time_point_sec( 1459789200 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_599_TIME (fc::time_point_sec::from_iso_string("2016-04-04T17:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_599_TIME (fc::time_point_sec::from_iso_string("2016-04-04T17:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #607 Disable negative voting on workers
|
// #607 Disable negative voting on workers
|
||||||
#ifndef HARDFORK_607_TIME
|
#ifndef HARDFORK_607_TIME
|
||||||
#define HARDFORK_607_TIME (fc::time_point_sec( 1458752400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_607_TIME (fc::time_point_sec::from_iso_string("2016-03-23T17:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_607_TIME (fc::time_point_sec::from_iso_string("2016-03-23T17:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #613 Deprecate annual membership
|
// #613 Deprecate annual membership
|
||||||
#ifndef HARDFORK_613_TIME
|
#ifndef HARDFORK_613_TIME
|
||||||
#define HARDFORK_613_TIME (fc::time_point_sec( 1458752400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_613_TIME (fc::time_point_sec::from_iso_string("2016-03-23T17:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_613_TIME (fc::time_point_sec::from_iso_string("2016-03-23T17:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// #615 Fix price feed expiration check, so websocket server will never spam too much data
|
// #615 Fix price feed expiration check, so websocket server will never spam too much data
|
||||||
#ifndef HARDFORK_615_TIME
|
#ifndef HARDFORK_615_TIME
|
||||||
#define HARDFORK_615_TIME (fc::time_point_sec( 1458752400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_615_TIME (fc::time_point_sec::from_iso_string("2016-03-23T17:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_615_TIME (fc::time_point_sec::from_iso_string("2016-03-23T17:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// Placeholder HF for affiliate reward system
|
// Placeholder HF for affiliate reward system
|
||||||
#ifndef HARDFORK_999_TIME
|
#ifndef HARDFORK_999_TIME
|
||||||
#define HARDFORK_999_TIME (fc::time_point_sec( 1540000000 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_999_TIME (fc::time_point_sec::from_iso_string("2018-10-20T01:46:40"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_999_TIME (fc::time_point_sec::from_iso_string("2019-02-18T12:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
// bitshares-core #429 rounding issue when creating assets
|
// bitshares-core #429 rounding issue when creating assets
|
||||||
#ifndef HARDFORK_CORE_429_TIME
|
#ifndef HARDFORK_CORE_429_TIME
|
||||||
#define HARDFORK_CORE_429_TIME (fc::time_point_sec( 1566784800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_CORE_429_TIME (fc::time_point_sec::from_iso_string("2019-08-26T02:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_CORE_429_TIME (fc::time_point_sec::from_iso_string("2019-09-13T02:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
// #210 Check authorities on custom_operation
|
// #210 Check authorities on custom_operation
|
||||||
#ifndef HARDFORK_CORE_210_TIME
|
#ifndef HARDFORK_CORE_210_TIME
|
||||||
#define HARDFORK_CORE_210_TIME (fc::time_point_sec(1893456000)) // Jan 1 00:00:00 2030 (Not yet scheduled)
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_CORE_210_TIME (fc::time_point_sec::from_iso_string("2030-01-01T00:00:00")) // (Not yet scheduled)
|
||||||
|
#else
|
||||||
|
#define HARDFORK_CORE_210_TIME (fc::time_point_sec::from_iso_string("2030-01-01T00:00:00")) // (Not yet scheduled)
|
||||||
|
#endif
|
||||||
// Bugfix: pre-HF 210, custom_operation's required_auths field was ignored.
|
// Bugfix: pre-HF 210, custom_operation's required_auths field was ignored.
|
||||||
#define MUST_IGNORE_CUSTOM_OP_REQD_AUTHS(chain_time) (chain_time <= HARDFORK_CORE_210_TIME)
|
#define MUST_IGNORE_CUSTOM_OP_REQD_AUTHS(chain_time) (chain_time <= HARDFORK_CORE_210_TIME)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
// GPOS HARDFORK Monday, 6 January 2020 01:00:00 GMT
|
|
||||||
#ifndef HARDFORK_GPOS_TIME
|
#ifndef HARDFORK_GPOS_TIME
|
||||||
#define HARDFORK_GPOS_TIME (fc::time_point_sec( 1578272400 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_GPOS_TIME (fc::time_point_sec::from_iso_string("2020-01-06T01:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_GPOS_TIME (fc::time_point_sec::from_iso_string("2020-02-17T22:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
// NFT HARDFORK Sat, 15-Aug-20 00:00:00 UTC
|
|
||||||
#ifndef HARDFORK_NFT_TIME
|
#ifndef HARDFORK_NFT_TIME
|
||||||
#define HARDFORK_NFT_TIME (fc::time_point_sec( 1597449600 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_NFT_TIME (fc::time_point_sec::from_iso_string("2020-08-15T00:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_NFT_TIME (fc::time_point_sec::from_iso_string("2020-12-21T00:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
// SON HARDFORK Wednesday, October 28, 2020 0:00:00 GMT
|
|
||||||
#ifndef HARDFORK_SON_TIME
|
#ifndef HARDFORK_SON_TIME
|
||||||
#define HARDFORK_SON_TIME (fc::time_point_sec( 1603843200 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_SON_TIME (fc::time_point_sec::from_iso_string("2020-10-28T00:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_SON_TIME (fc::time_point_sec::from_iso_string("2020-12-21T00:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
// SON2 HARDFORK Saturday, July 31, 2021 00:00:00 GMT
|
|
||||||
#ifndef HARDFORK_SON2_TIME
|
#ifndef HARDFORK_SON2_TIME
|
||||||
#define HARDFORK_SON2_TIME (fc::time_point_sec( 1627689600 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_SON2_TIME (fc::time_point_sec::from_iso_string("2021-07-31T00:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_SON2_TIME (fc::time_point_sec::from_iso_string("2021-07-31T00:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
// Wednesday, March 31, 2021 0:00:00
|
|
||||||
#ifndef HARDFORK_SON_FOR_HIVE_TIME
|
#ifndef HARDFORK_SON_FOR_HIVE_TIME
|
||||||
#define HARDFORK_SON_FOR_HIVE_TIME (fc::time_point_sec( 1617148800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_SON_FOR_HIVE_TIME (fc::time_point_sec::from_iso_string("2021-03-31T00:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_SON_FOR_HIVE_TIME (fc::time_point_sec::from_iso_string("2021-12-11T00:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
#ifndef HARDFORK_SWEEPS_TIME
|
#ifndef HARDFORK_SWEEPS_TIME
|
||||||
#define HARDFORK_SWEEPS_TIME (fc::time_point_sec( 1566784800 ))
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
|
#define HARDFORK_SWEEPS_TIME (fc::time_point_sec::from_iso_string("2019-08-26T02:00:00"))
|
||||||
|
#else
|
||||||
|
#define HARDFORK_SWEEPS_TIME (fc::time_point_sec::from_iso_string("2019-09-13T02:00:00"))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,13 @@
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef BUILD_PEERPLAYS_TESTNET
|
||||||
#define GRAPHENE_SYMBOL "TEST"
|
#define GRAPHENE_SYMBOL "TEST"
|
||||||
#define GRAPHENE_ADDRESS_PREFIX "TEST"
|
#define GRAPHENE_ADDRESS_PREFIX "TEST"
|
||||||
|
#else
|
||||||
|
#define GRAPHENE_SYMBOL "PPY"
|
||||||
|
#define GRAPHENE_ADDRESS_PREFIX "PPY"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GRAPHENE_MIN_ACCOUNT_NAME_LENGTH 1
|
#define GRAPHENE_MIN_ACCOUNT_NAME_LENGTH 1
|
||||||
#define GRAPHENE_MAX_ACCOUNT_NAME_LENGTH 63
|
#define GRAPHENE_MAX_ACCOUNT_NAME_LENGTH 63
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue