Changed chain_id to chainid

This commit is contained in:
James Wells 2021-11-03 15:09:02 -07:00
parent 52f8d521cd
commit 8515707300
Signed by: jwells
GPG key ID: 73196D10B8E65666
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
"genesis_time" = "2021-10-25:00:00.000000000Z"
"chain_id" = "gagent_ledger"
"chainid" = "gagent_ledger"
"agent" = {
"client" = "7e9d13fe-5151-5876-66c0-20ca03e8fca4"

View file

@ -1,6 +1,6 @@
{
"genesis_time": "2021-10-25:00:00.000000000Z",
"chain_id": "gagent_ledger",
"chainid": "gagent_ledger",
"agent": {
"client": "7e9d13fe-5151-5876-66c0-20ca03e8fca4",
"shasum": "a76f7c3c7bc0f94b4f8aa63c605f8534db5675bb05d761f4461127fcadbf32d4",

View file

@ -119,13 +119,13 @@ type WorkerDetails struct {
}
type BlockChainDB struct {
DBName string `hcl:"chain_id,optional"`
DBName string `hcl:"chainid,optional"`
Agents []*AgentDetails `hcl:"agent,block"`
}
type AgentDetails struct {
ScriptCode []byte
Hints []*string
Client string `hcl:"client"`
Shasum string `hcl:"shasum"`
Status string `hcl:"status"`
ScriptCode []byte
Hints []*string
}