Proper variables for beatrice testnet
This commit is contained in:
parent
836a83f3dd
commit
ea3bb1a377
4 changed files with 14 additions and 216200 deletions
216159
genesis.json
216159
genesis.json
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,11 @@ from peerplaysbase.account import BrainKey, Address
|
||||||
|
|
||||||
|
|
||||||
def pubkey():
|
def pubkey():
|
||||||
return format(next(key).get_public_key(), "TEST")
|
k = next(key)
|
||||||
|
pub = format(k.get_public_key(), "TEST")
|
||||||
|
pri = str(k.get_private_key())
|
||||||
|
print("[\"{}\", \"{}\"]".format(pub, pri))
|
||||||
|
return pub
|
||||||
|
|
||||||
|
|
||||||
def address():
|
def address():
|
||||||
|
|
@ -64,9 +68,9 @@ for i, _ in enumerate(genesis["initial_balances"]):
|
||||||
# Let's distribute extra stake for sake of governance
|
# Let's distribute extra stake for sake of governance
|
||||||
sum_distributed = sum([int(x["amount"]) for x in genesis["initial_balances"]])
|
sum_distributed = sum([int(x["amount"]) for x in genesis["initial_balances"]])
|
||||||
# 34% of supply are left for witnesses etc
|
# 34% of supply are left for witnesses etc
|
||||||
initial_pbsa = str(int(genesis["max_core_supply"]) * 0.66 - sum_distributed)
|
initial_pbsa = str(int(int(genesis["max_core_supply"]) * 0.66 - sum_distributed))
|
||||||
genesis["initial_balances"].append(dict(
|
genesis["initial_balances"].append(dict(
|
||||||
amount=int(initial_pbsa),
|
amount=initial_pbsa,
|
||||||
asset_symbol="TEST",
|
asset_symbol="TEST",
|
||||||
owner=address()
|
owner=address()
|
||||||
))
|
))
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ namespace detail {
|
||||||
|
|
||||||
void reset_p2p_node(const fc::path& data_dir)
|
void reset_p2p_node(const fc::path& data_dir)
|
||||||
{ try {
|
{ try {
|
||||||
_p2p_network = std::make_shared<net::node>("BitShares Reference Implementation");
|
_p2p_network = std::make_shared<net::node>("PeerPlays Reference Implementation");
|
||||||
|
|
||||||
_p2p_network->load_configuration(data_dir / "p2p");
|
_p2p_network->load_configuration(data_dir / "p2p");
|
||||||
_p2p_network->set_node_delegate(this);
|
_p2p_network->set_node_delegate(this);
|
||||||
|
|
@ -162,40 +162,7 @@ namespace detail {
|
||||||
{
|
{
|
||||||
// t.me/peerplays #seednodes
|
// t.me/peerplays #seednodes
|
||||||
vector<string> seeds = {
|
vector<string> seeds = {
|
||||||
"seed.ppy.blckchnd.com:6112", // blckchnd
|
"localhost:1667", // blckchnd
|
||||||
"ppy.esteem.ws:7777", // good-karma
|
|
||||||
"peerplays.bitcoiner.me:9777", // bitcoiner
|
|
||||||
"peerplays.roelandp.nl:9777", // roelandp
|
|
||||||
"ppyseed.bacchist.me:42420", // bacchist-witness
|
|
||||||
"5.9.18.213:18828", // pfunk
|
|
||||||
"31.171.244.121:7777", // taconator
|
|
||||||
"seed.peerplaysdb.com:9777", // jesta
|
|
||||||
"ppy-seed.xeldal.com:19777", // xeldal
|
|
||||||
"seed.ppy.altcap.io:61388", // winner.winner.chicken.dinner
|
|
||||||
"seed.peerplaysnodes.com:9777", // wackou
|
|
||||||
"peerplays-seed.privex.io:7777", // someguy123/privex
|
|
||||||
"51.15.78.16:9777", // agoric.systems
|
|
||||||
"212.71.253.163:9777", // xtar
|
|
||||||
"51.15.35.96:9777", // lafona
|
|
||||||
"anyx.ca:9777", // anyx
|
|
||||||
"82.223.108.91:7777", // hiltos-witness
|
|
||||||
"seed.ppy.nuevax.com:19777", // nuevax
|
|
||||||
"peerplays.butler.net:9777", // billbutler-witness
|
|
||||||
"peerplays.bitcoiner.me:9777", // bitcoiner
|
|
||||||
"ppyseed.bacchist.me:42420", // bacchist-witness
|
|
||||||
"peerplays.bhuz.info:9777", // bhuz
|
|
||||||
"node.peerblock.trade:9777", // bitcoinsig
|
|
||||||
"peerplays.crypto.fans:9777", // sc-steemit
|
|
||||||
"54.38.193.20:9777", // royal-flush
|
|
||||||
"ppy001.bts-nodes.net:7777", // baxters-sports-witness
|
|
||||||
"ppy002.bts-nodes.net:7777", // baxters-sports-witness
|
|
||||||
"ppy003.bts-nodes.net:7777", // baxters-sports-witness
|
|
||||||
"ppy004.bts-nodes.net:7777", // baxters-sports-witness
|
|
||||||
"ppy.proxyhosts.info:7777", // baxters-sports-witness
|
|
||||||
"ppyseed.spacemx.tech:9777", // spacecrypt-witness
|
|
||||||
"peerplaysblockchain.net:9777", // houdini-witness
|
|
||||||
"54.37.235.164:7777", // melea-trust
|
|
||||||
"peerplays-seed.lukestokes.info:7777" // lukestokes-witness
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for( const string& endpoint_string : seeds )
|
for( const string& endpoint_string : seeds )
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define GRAPHENE_SYMBOL "PPY"
|
#define GRAPHENE_SYMBOL "TEST"
|
||||||
#define GRAPHENE_ADDRESS_PREFIX "PPY"
|
#define GRAPHENE_ADDRESS_PREFIX "TEST"
|
||||||
|
|
||||||
#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
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
#define GRAPHENE_MIN_BLOCK_INTERVAL 1 /* seconds */
|
#define GRAPHENE_MIN_BLOCK_INTERVAL 1 /* seconds */
|
||||||
#define GRAPHENE_MAX_BLOCK_INTERVAL 30 /* seconds */
|
#define GRAPHENE_MAX_BLOCK_INTERVAL 30 /* seconds */
|
||||||
|
|
||||||
#define GRAPHENE_DEFAULT_BLOCK_INTERVAL 5 /* seconds */
|
#define GRAPHENE_DEFAULT_BLOCK_INTERVAL 3 /* seconds */
|
||||||
#define GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE 2048
|
#define GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE 2048
|
||||||
#define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE (GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE*GRAPHENE_DEFAULT_BLOCK_INTERVAL*200000)
|
#define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE (GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE*GRAPHENE_DEFAULT_BLOCK_INTERVAL*200000)
|
||||||
#define GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION (60*60*24) // seconds, aka: 1 day
|
#define GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION (60*60*24) // seconds, aka: 1 day
|
||||||
|
|
@ -151,7 +151,7 @@
|
||||||
#define GRAPHENE_RECENTLY_MISSED_COUNT_INCREMENT 4
|
#define GRAPHENE_RECENTLY_MISSED_COUNT_INCREMENT 4
|
||||||
#define GRAPHENE_RECENTLY_MISSED_COUNT_DECREMENT 3
|
#define GRAPHENE_RECENTLY_MISSED_COUNT_DECREMENT 3
|
||||||
|
|
||||||
#define GRAPHENE_CURRENT_DB_VERSION "PPY_999"
|
#define GRAPHENE_CURRENT_DB_VERSION "PPY2.0"
|
||||||
|
|
||||||
#define GRAPHENE_IRREVERSIBLE_THRESHOLD (70 * GRAPHENE_1_PERCENT)
|
#define GRAPHENE_IRREVERSIBLE_THRESHOLD (70 * GRAPHENE_1_PERCENT)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue