Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Add KamiD's validator key to genesis.json #9

Merged
merged 6 commits into from
Aug 6, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions coral/config/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,25 @@
"account_number": "0",
"sequence": "0"
}
},
{
"type": "cosmos-sdk/Account",
"value": {
"address": "cosmos1xgf0cm289z0z2w5phhy6ay3xscq5fpmt8xefhn",
KamiD marked this conversation as resolved.
Show resolved Hide resolved
"coins": [
{
"denom": "ureef",
"amount": "100000000"
},
{
"denom": "ushell",
"amount": "100000000"
}
],
"public_key": null,
"account_number": "0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not look right. We already have 0 above. But I am not an expert in genesis files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Account numbers start at 1. If I understand properly, new accounts always have 0 which mean "assign new auto-increment number". If you do a genesis export/import, you will have plenty of non-zero account_number and sequence number.

This is just how cosmos works, not a bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I am using command coral add-genesis-account to add my address, the account_number always be "0"

"sequence": "0"
}
}
]
},
Expand Down