Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Handshake error (IvI-1) #57

Open
ThetaShis opened this issue Mar 11, 2020 · 8 comments
Open

Handshake error (IvI-1) #57

ThetaShis opened this issue Mar 11, 2020 · 8 comments

Comments

@ThetaShis
Copy link

ThetaShis commented Mar 11, 2020

while starting the aud (IvI-1) I'm facing the below error:

➜   aud start
I[2020-03-11|22:33:00.630] starting ABCI with Tendermint                module=main 
ERROR: error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain

➜ aud version --long
name: ""
server_name: <appd>
client_name: <appcli>
version: ""
commit: ""
build_tags: ""
go: go version go1.13.5 darwin/amd64
➜  testchain git:(master) ✗ cat ~/.aud/config/genesis.json 
{
  "genesis_time": "2020-03-11T12:59:39.463501Z",
  "chain_id": "test",
  "consensus_params": {
    "block": {
      "max_bytes": "22020096",
      "max_gas": "-1",
      "time_iota_ms": "1000"
    },
    "evidence": {
      "max_age_num_blocks": "100000",
      "max_age_duration": "172800000000000"
    },
    "validator": {
      "pub_key_types": [
        "ed25519"
      ]
    }
  },
  "app_hash": "",
  "app_state": {
    "supply": {
      "supply": []
    },
    "genutil": {
      "gentxs": [
        {
          "type": "cosmos-sdk/StdTx",
          "value": {
            "msg": [
              {
                "type": "cosmos-sdk/MsgCreateValidator",
                "value": {
                  "description": {
                    "moniker": "lcnem",
                    "identity": "",
                    "website": "",
                    "security_contact": "",
                    "details": ""
                  },
                  "commission": {
                    "rate": "0.100000000000000000",
                    "max_rate": "0.200000000000000000",
                    "max_change_rate": "0.010000000000000000"
                  },
                  "min_self_delegation": "1",
                  "delegator_address": "cosmos1yn6arg2ckdrpatkhkw0xkhvq84326pchgax7d7",
                  "validator_address": "cosmosvaloper1yn6arg2ckdrpatkhkw0xkhvq84326pchdfjtpd",
                  "pubkey": "cosmosvalconspub1zcjduepqn7wen3yg6glwwqfwqumrzpfl0h7ptln9pa9492ftek73wv679v2sy6t0sq",
                  "value": {
                    "denom": "stake",
                    "amount": "1000"
                  }
                }
              }
            ],
            "fee": {
              "amount": [],
              "gas": "200000"
            },
            "signatures": [
              {
                "pub_key": {
                  "type": "tendermint/PubKeySecp256k1",
                  "value": "AnSeX9DNHvTdOkmMu5jduLt+PtAxzG3kJmz2s2eKGpaU"
                },
                "signature": "P0mdq4cZJ0qLWDFjqiJoKuZ5xZqgKT0zo+4zPf/nzlxZyWhn34e1RwT9lbyUEMcGeogjR1bpHOJPfhiy3qKUmA=="
              }
            ],
            "memo": "[email protected]:26656"
          }
        }
      ]
    },
    "auth": {
      "params": {
        "max_memo_characters": "256",
        "tx_sig_limit": "7",
        "tx_size_cost_per_byte": "10",
        "sig_verify_cost_ed25519": "590",
        "sig_verify_cost_secp256k1": "1000"
      },
      "accounts": [
        {
          "type": "cosmos-sdk/Account",
          "value": {
            "address": "cosmos19heqcnme8tamv6p6283m0dwexyu39wactnxeac",
            "coins": [
              {
                "denom": "stake",
                "amount": "1000000"
              }
            ],
            "public_key": "",
            "account_number": 0,
            "sequence": 0
          }
        },
        {
          "type": "cosmos-sdk/Account",
          "value": {
            "address": "cosmos1yn6arg2ckdrpatkhkw0xkhvq84326pchgax7d7",
            "coins": [
              {
                "denom": "stake",
                "amount": "1000"
              }
            ],
            "public_key": "",
            "account_number": 0,
            "sequence": 0
          }
        },
        {
          "type": "cosmos-sdk/Account",
          "value": {
            "address": "cosmos12xvflmsseg7axy6emndzhledemcf50lr203cz4",
            "coins": [
              {
                "denom": "stake",
                "amount": "1000000"
              }
            ],
            "public_key": "",
            "account_number": 0,
            "sequence": 0
          }
        },
        {
          "type": "cosmos-sdk/Account",
          "value": {
            "address": "cosmos13ga3qs7kw95dan4wydflamkxppjxruynk3twd0",
            "coins": [
              {
                "denom": "stake",
                "amount": "1000000"
              }
            ],
            "public_key": "",
            "account_number": 0,
            "sequence": 0
          }
        }
      ]
    },
    "bank": {
      "send_enabled": true
    },
    "staking": {
      "params": {
        "unbonding_time": "1814400000000000",
        "max_validators": 100,
        "max_entries": 7,
        "historical_entries": 0,
        "bond_denom": "stake"
      },
      "last_total_power": "0",
      "last_validator_powers": null,
      "validators": null,
      "delegations": null,
      "unbonding_delegations": null,
      "redelegations": null,
      "exported": false
    },
    "distribution": {
      "params": {
        "community_tax": "0.020000000000000000",
        "base_proposer_reward": "0.010000000000000000",
        "bonus_proposer_reward": "0.040000000000000000",
        "withdraw_addr_enabled": true
      },
      "fee_pool": {
        "community_pool": []
      },
      "delegator_withdraw_infos": [],
      "previous_proposer": "",
      "outstanding_rewards": [],
      "validator_accumulated_commissions": [],
      "validator_historical_rewards": [],
      "validator_current_rewards": [],
      "delegator_starting_infos": [],
      "validator_slash_events": []
    },
    "params": null,
    "slashing": {
      "params": {
        "signed_blocks_window": "100",
        "min_signed_per_window": "0.500000000000000000",
        "downtime_jail_duration": "600000000000",
        "slash_fraction_double_sign": "0.050000000000000000",
        "slash_fraction_downtime": "0.010000000000000000"
      },
      "signing_infos": {},
      "missed_blocks": {}
    }
  }
}%                    
@tac0turtle
Copy link
Member

did you pass --amount when running the gentx?

@ThetaShis
Copy link
Author

Thanks for reply.

"gentxs": [
        {
          "type": "cosmos-sdk/StdTx",
          "value": {
            "msg": [
              {
                "type": "cosmos-sdk/MsgCreateValidator",
                "value": {
                  "description": {
                    "moniker": "lcnem",
                    "identity": "",
                    "website": "",
                    "security_contact": "",
                    "details": ""
                  },
                  "commission": {
                    "rate": "0.100000000000000000",
                    "max_rate": "0.200000000000000000",
                    "max_change_rate": "0.010000000000000000"
                  },
                  "min_self_delegation": "1",
                  "delegator_address": "cosmos1yn6arg2ckdrpatkhkw0xkhvq84326pchgax7d7",
                  "validator_address": "cosmosvaloper1yn6arg2ckdrpatkhkw0xkhvq84326pchdfjtpd",
                  "pubkey": "cosmosvalconspub1zcjduepqn7wen3yg6glwwqfwqumrzpfl0h7ptln9pa9492ftek73wv679v2sy6t0sq",
                  "value": {
                    "denom": "stake",
                    "amount": "1000"
                  }
                }
              }
            ],

1000 stake is recorded in MsgCreateValidator

@tac0turtle
Copy link
Member

yes, I believe you need a greater amount so was wondering if you set that amount or it was the default amount?

@ThetaShis
Copy link
Author

➜  ~ aud gentx --amount 1000stake --name main --pubkey cosmosvalconspub1zcjduepqn7wen3yg6glwwqfwqumrzpfl0h7ptln9pa9492ftek73wv679v2sy6t0sq

I executed this command.

@tac0turtle
Copy link
Member

if you try without the --amount flag then it will work as it would use a greater amount of tokens

@ThetaShis
Copy link
Author

  • As I was told, I deleted --amount and then the balance was not enough(error message).

  • 1000000 stake was given to “add-genesis-account”, but 100000000 stake was requested to gentx without --amount.

  • it worked when "--amount 1000000 stake" instead of 1000 stake.

Is this the specification?

@ValarDragon
Copy link

Im facing a similar error in starting a testnet. Why would the genesis require a minimum amount?

@tac0turtle
Copy link
Member

Im facing a similar error in starting a testnet. Why would the genesis require a minimum amount?

It's set by the cosmos-sdk. I think this was a gaia setting that never changed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants