add state sync config

This commit is contained in:
liangping 2022-03-24 20:30:13 +08:00
parent 17fba7d61e
commit 7c8e115a95
49 changed files with 111 additions and 8 deletions

View File

@ -1,6 +1,8 @@
{
"chain_name": "agoric",
"api": ["https://api.agoric.sgtstake.com", "https://main.api.agoric.net"],
"rpc": ["https://main.rpc.agoric.net:443", "https://main.rpc.agoric.net:443"],
"snapshot_provider": "",
"sdk_version": "0.41.3",
"coin_type": "564",
"min_tx_fee": "8000",

View File

@ -2,6 +2,7 @@
"chain_name": "akash-network",
"api": ["https://akash.api.ping.pub"],
"rpc": ["http://rpc.akash.forbole.com:80", "http://akashsentry01.skynetvalidators.com:26657"],
"snapshot_provider": "",
"sdk_version": "0.41.3",
"coin_type": "118",
"min_tx_fee": "8000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "band-protocol",
"api": "https://laozi1.bandchain.org/api",
"rpc": [],
"snapshot_provider": "",
"addr_prefix": "band",
"coin_type": "494",
"min_tx_fee": "8000",

View File

@ -2,6 +2,8 @@
"chain_name": "bitcanna",
"coingecko": "bitcanna",
"api":"https://lcd.bitcanna.io",
"rpc": ["https://rpc.bitcanna.io:443","https://rpc.bitcanna.ezstaking.io:443"],
"snapshot_provider": "",
"sdk_version": "0.44.2",
"coin_type": "118",
"min_tx_fee": "8000",

View File

@ -2,6 +2,8 @@
"chain_name": "bitsong",
"coingecko": "bitsong",
"api": "https://lcd.explorebitsong.com",
"rpc": ["https://rpc-bitsong.itastakers.com:443","https://rpc-bitsong.itastakers.com:443"],
"snapshot_provider": "",
"addr_prefix": "bitsong",
"coin_type": "639",
"min_tx_fee": "3500",

View File

@ -2,6 +2,8 @@
"chain_name": "bostrom",
"coingecko": "",
"api": "https://lcd.bostrom.cybernode.ai",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -2,6 +2,8 @@
"chain_name": "celestia",
"coingecko": "",
"api": "https://celestia-api.skynetvalidators.com",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.0",
"coin_type": "118",
"min_tx_fee": "800",

View File

@ -2,6 +2,8 @@
"chain_name": "cerberus",
"coingecko": "",
"api": ["https://api.cerberus.zone:1317"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "cheqd",
"api": "https://api.cheqd.net",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -2,6 +2,8 @@
"chain_name": "chihuahua",
"coingecko": "",
"api": ["https://api.chihuahua.wtf", "https://chihuahua-api.mercury-nodes.net"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -2,6 +2,8 @@
"chain_name": "chronic-token",
"coingecko": "",
"api": "https://chtd-api.skynetvalidators.com",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "800",

View File

@ -1,6 +1,8 @@
{
"chain_name": "cosmic-horizon",
"api": ["https://coho-api.skynetvalidators.com"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "300",

View File

@ -1,6 +1,8 @@
{
"chain_name": "comdex",
"api":"https://rest.comdex.one/",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -3,6 +3,7 @@
"coingecko": "cosmos",
"api": ["https://cosmos.api.ping.pub", "https://lcd-cosmoshub.blockapsis.com"],
"rpc": ["http://cosmos.rpc.ping.pub:26657", "https://cosmoshub.validator.network:443"],
"snapshot_provider": "d2008adf6d12f1a1951cce2b5ef531fbecb81895@cosmos.rpc.ping.pub:26656",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "800",

View File

@ -3,6 +3,8 @@
"chain_name": "crypto-com-chain",
"coingecko": "crypto-com-chain",
"api": "https://mainnet.crypto.org:1317",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.39.2",
"coin_type": "394",
"min_tx_fee": "5000",

View File

@ -2,6 +2,8 @@
"chain_name": "desmos",
"coingecko": "",
"api": "https://api.mainnet.desmos.network",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.0",
"coin_type": "852",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "dig",
"coingecko": "",
"api": "https://api-1-dig.notional.ventures",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -2,6 +2,8 @@
"chain_name": "DWS",
"coingecko": "",
"api": "https://dws-api.skynetvalidators.com",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "200",

View File

@ -2,6 +2,8 @@
"chain_name": "e-money",
"coingecko": "e-money",
"api": "https://emoney.validator.network/api",
"rpc": [],
"snapshot_provider": "",
"addr_prefix": "emoney",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -2,6 +2,8 @@
"chain_name": "evmos",
"coingecko": "",
"api": ["https://rest.bd.evmos.org:1317", "https://evmos-api.skynetvalidators.com"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.45.1",
"coin_type": "60",
"min_tx_fee": "3000000000000000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "fetchhub",
"api": ["https://rest-fetchhub.fetch.ai"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.45.1",
"coin_type": "118",
"min_tx_fee": "3000000000000000",

View File

@ -2,6 +2,8 @@
"chain_name": "genesisL1",
"coingecko": "",
"api": "https://api.genesisl1.org",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.4",
"coin_type": "118",
"min_tx_fee": "3000000000000000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "gravity-bridge",
"api": "https://gravitychain.io:1317",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "60",
"min_tx_fee": "5000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "injective",
"api": "https://lcd.injective.network",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "v0.44.5",
"coin_type": "60",
"min_tx_fee": "5000",

View File

@ -2,6 +2,7 @@
"chain_name": "iris-network",
"api": "https://iris.api.ping.pub",
"rpc": ["http://34.82.96.8:26657","http://34.77.68.145:26657"],
"snapshot_provider": "fcc1d9bc43163b20ce5163cf41a302b33f25375f@34.82.96.8:26656",
"sdk_version": "0.42.4",
"coin_type": "118",
"min_tx_fee": "40000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "ixo",
"api": ["https://impacthub.ixo.world/rest", "https://proxies.sifchain.finance/api/impacthub-3/rest"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.6",
"coin_type": "118",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "juno",
"coingecko": "juno-network",
"api": "https://lcd-juno.itastakers.com",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "kava",
"coingecko": "kava",
"api": "https://api.data.kava.io",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "kichain",
"api": ["https://api-mainnet.blockchain.ki", "https://ki.api.ping.pub"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.10",
"coin_type": "118",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "likecoin",
"coingecko": "likecoin",
"api": "https://mainnet-node.like.co",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.0",
"coin_type": "118",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "lum-network",
"coingecko": "",
"api": "https://node0.mainnet.lum.network/rest",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "880",
"min_tx_fee": "5000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "microtick",
"api": "https://lcd.microtick.zone",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.9",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -1,7 +1,8 @@
{
"chain_name": "okexchain",
"coingecko": "okexchain",
"api": "https://exchainrpc.okex.org/okexchain/v1",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.39.2",
"coin_type": "118",
"min_tx_fee": "800",

View File

@ -2,6 +2,8 @@
"chain_name": "omniflix",
"coingecko": "",
"api": "https://omniflixhub-api.skynetvalidators.com",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.45.1",
"coin_type": "118",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "osmosis",
"coingecko": "osmosis",
"api": ["https://lcd-osmosis.blockapsis.com", "https://osmo.api.ping.pub"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.5",
"coin_type": "118",
"min_tx_fee": "800",

View File

@ -2,6 +2,8 @@
"chain_name": "persistence",
"coingecko": "persistence",
"api": "https://rest.core.persistence.one",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.4",
"coin_type": "750",
"min_tx_fee": "3000",

View File

@ -2,6 +2,8 @@
"chain_name": "provenance",
"coingecko": "",
"api": "https://api.provenance.io",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "505",
"min_tx_fee": "400000000",

View File

@ -2,6 +2,8 @@
"chain_name": "regen",
"coingecko": "regen",
"api": "https://regen.api.ping.pub",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "3000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "rizon",
"api": ["https://rizon.api.ping.pub"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "v0.42.9",
"coin_type": "118",
"min_tx_fee": "8000",

View File

@ -2,6 +2,8 @@
"chain_name": "secret",
"coingecko": "secret",
"api": "https://api.scrt.network",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.33.8",
"coin_type": "529",
"min_tx_fee": "5000",

View File

@ -1,7 +1,8 @@
{
"chain_name": "sentinel",
"coingecko": "sentinel",
"api": "https://lcd.sentinel.co",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.6",
"coin_type": "750",
"min_tx_fee": "8000",

View File

@ -2,6 +2,8 @@
{
"chain_name": "shentu",
"api":"https://azuredragon.noopsbycertik.com",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.9",
"coin_type": "118",
"min_tx_fee": "5000",

View File

@ -1,7 +1,8 @@
{
"chain_name": "sifchain",
"coingecko": "sifchain",
"api": "https://api.sifchain.finance",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.6",
"coin_type": "118",
"min_tx_fee": "8000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "stargaze",
"api": ["https://rest.stargaze-apis.com", "https://rest.stargaze.publicawesome.dev"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.3",
"coin_type": "118",
"min_tx_fee": "800",

View File

@ -1,7 +1,8 @@
{
"chain_name": "starname",
"coingecko": "starname",
"api": "https://api.iov-mainnet-ibc.iov.one",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.6",
"coin_type": "234",
"min_tx_fee": "8000",

View File

@ -2,6 +2,8 @@
"chain_name": "terra-luna",
"coingecko": "terra-luna",
"api": "https://fcd.terra.dev",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.2",
"coin_type": "330",
"min_tx_fee": "5000",

View File

@ -1,6 +1,8 @@
{
"chain_name": "umee",
"api": ["https://api.blue.main.network.umee.cc", "https://api.bottlenose.main.network.umee.cc", "https://api.apollo.main.network.umee.cc", "https://api.aphrodite.main.network.umee.cc", "https://api.artemis.main.network.umee.cc", "https://api.athena.main.network.umee.cc", "https://api.beaked.main.network.umee.cc"],
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.45.1",
"coin_type": "118",
"min_tx_fee": "8000",

View File

@ -2,6 +2,8 @@
"chain_name": "vidulum",
"coingecko": "vidulum",
"api": "https://mainnet-lcd.vidulum.app",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.44.0",
"coin_type": "370",
"min_tx_fee": "8000",

View File

@ -28,9 +28,20 @@
readonly
placeholder="Loading..."
rows="7"
class="mt-1"
class="my-1"
@change="check()"
/>
<b class="mt-1">3. Snapshot Providers </b><br>
To reduce snapshot discovering time, we can add providers into persistent_peers in <code>$DAEMON_HOME/config/config.toml</code>.
<b-form-textarea
id="provider"
v-model="providers"
readonly
:state="snapshot_provider?true:false"
placeholder="Loading..."
rows="3"
class="mt-1"
/>
</b-card>
<b-card>
@ -63,25 +74,28 @@ export default {
BFormTextarea,
},
data() {
const { rpc } = this.$store.state.chains.selected
const { rpc, snapshot_provider } = this.$store.state.chains.selected
let servers = ''
if (rpc && Array.isArray(rpc)) {
servers = rpc.join(',')
}
// eslint-disable-next-line camelcase
const providers = snapshot_provider ? `# Comma separated list of nodes to keep persistent connections to \npersistent_peers = "${snapshot_provider}" ` : 'Currently, NO available providers'
return {
snapshot_provider,
servers,
providers,
height: 0,
hash: '',
error: [],
state: '',
valid: false,
snapshot: `[state-sync]
# snapshot-interval specifies the block interval at which local state sync snapshots are
# taken (0 to disable). Must be a multiple of pruning-keep-every.
snapshot-interval = 1000
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). each snapshot is around 500MiB
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). Each snapshot is about 500MiB
snapshot-keep-recent = 2`,
}
},