Browse Source

testnet specification fixes

pull/1943/head
Greg Szabo 7 years ago
parent
commit
7872ade626
4 changed files with 52 additions and 64 deletions
  1. +51
    -27
      ansible/app_options_files/public_testnet
  2. +0
    -24
      ansible/roles/config/templates/genesis-server.json.j2
  3. +0
    -12
      ansible/roles/config/templates/genesis-service.json.j2
  4. +1
    -1
      ansible/roles/config/templates/genesis.json.j2

+ 51
- 27
ansible/app_options_files/public_testnet View File

@ -22,8 +22,8 @@
},
"coins": [
{
"denom": "neutrino",
"amount": 9007199254740991
"denom": "fermion",
"amount": 10000000
},
{
"denom": "gregcoin",
@ -40,8 +40,8 @@
},
"coins": [
{
"denom": "neutrino",
"amount": 9007199254740992
"denom": "fermion",
"amount": 10000000
},
{
"denom": "antoncoin",
@ -54,8 +54,8 @@
"address": "0FA1DB09E8B174E81E94280C047C158D4271457B",
"coins": [
{
"denom": "neutrino",
"amount": 1928936473812
"denom": "fermion",
"amount": 10000000
},
{
"denom": "adriancoin",
@ -72,8 +72,8 @@
},
"coins": [
{
"denom": "neutrino",
"amount": 20000000000
"denom": "fermion",
"amount": 10000000
},
{
"denom": "buckycoin",
@ -81,21 +81,45 @@
}
]
},
{
"name": "bucky-new",
"address": "4FE8FFE12EDBA34BE4E587B2125177AC24594BAF",
"coins": [
{
"denom": "fermion",
"amount": 10000000
},
{
"denom": "buckycoin",
"amount": 2000
}
]
},
{
"name": "rigel",
"address": "3A8BE0EEE474C8D197AA14312B59ACB2D9DFECDE",
"pub_key": {
"type": "ed25519",
"data": "C7CAC198E3999C4DD9F25C575C4C10587C083F73B1E985AC65658992DE6B552E"
},
"address": "C7A6F5FD77DDCA5C43600F33D14533A27C683F55",
"coins": [
{
"denom": "rigelcoin",
"amount": 1000
},
{
"denom": "fermion",
"amount": 10000000
}
]
},
{
"name": "rigel2",
"address": "5B228AB64E290F1FC4D3E933B7623CCA3F015C34",
"coins": [
{
"denom": "rigelcoin",
"amount": 1000
},
{
"denom": "neutrino",
"amount": 3478765434568
"denom": "fermion",
"amount": 10000000
}
]
},
@ -108,8 +132,8 @@
},
"coins": [
{
"denom": "neutrino",
"amount": 53712836452781
"denom": "fermion",
"amount": 10000000
},
{
"denom": "shadowcoin",
@ -122,8 +146,8 @@
"address": "7B8422A210D0F0B8734908C093ECF0E9A768BDB8",
"coins": [
{
"denom": "neutrino",
"amount": 53712836452781
"denom": "fermion",
"amount": 10000000
},
{
"denom": "pengcoin",
@ -136,8 +160,8 @@
"address": "C2104A8191E282AA45D210BA93282B36768EDDA1",
"coins": [
{
"denom": "neutrino",
"amount": 53712836452781
"denom": "fermion",
"amount": 10000000
},
{
"denom": "mattcoin",
@ -150,8 +174,8 @@
"address": "0F8FB94B5A4D04220F15058B7AA16AF1328B57A9",
"coins": [
{
"denom": "neutrino",
"amount": 53712836452781
"denom": "fermion",
"amount": 10000000
},
{
"denom": "freycoin",
@ -164,8 +188,8 @@
"address": "117FE408E1F74C453901BCB638F996964FD29CBB",
"coins": [
{
"denom": "neutrino",
"amount": 53712836452781
"denom": "fermion",
"amount": 10000000
},
{
"denom": "wancloudcoin",
@ -178,8 +202,8 @@
"address": "F63F2D34C03430A54B7F6A43C886B4A83F366B84",
"coins": [
{
"denom": "neutrino",
"amount": 53712836452781
"denom": "fermion",
"amount": 10000000
},
{
"denom": "bianjiecoin",


+ 0
- 24
ansible/roles/config/templates/genesis-server.json.j2 View File

@ -1,24 +0,0 @@
{
"genesis_time":"{{ansible_date_time.iso8601}}",
"chain_id":"{{testnet_name}}",
"validators":
[
{% if (validators == true) or (validators == 'true') %}
{% set comma = joiner(",") %}
{% for host in (groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])) %}
{{ comma() }}
{
"pub_key": {
"data": "{{hostvars[host]["pubkey"]["data"]}}",
"type": "{{hostvars[host]["pubkey"]["type"]}}"
},
"power":10,
"name":"{{hostvars[host]["inventory_hostname"]}}"
}
{% endfor %}
{% endif %}
],
"app_hash":"",
"app_options": {}
}

+ 0
- 12
ansible/roles/config/templates/genesis-service.json.j2 View File

@ -1,12 +0,0 @@
{
"genesis_time":"{{ansible_date_time.iso8601}}",
"chain_id":"{{testnet_name}}",
"validators": [],
"app_hash":"",
"app_options": {
{% if app_options_file is defined %}
{% include app_options_file %}
{% endif %}
}
}

+ 1
- 1
ansible/roles/config/templates/genesis.json.j2 View File

@ -12,7 +12,7 @@
"data": "{{hostvars[host]["pubkey"]["data"]}}",
"type": "{{hostvars[host]["pubkey"]["type"]}}"
},
"power":10,
"power":1000,
"name":"{{hostvars[host]["inventory_hostname"]}}"
}
{% endfor %}


Loading…
Cancel
Save