Skip to content

Commit e8ecc08

Browse files
iltogaandy-shi88
authored andcommitted
#82 - updated-recompiled the schema after adding node registration tx body proto message (#88)
* #82 - recompiled schema after adding node registration message and fixing bug in accountBalance request message * recompiled schema after adding queued to noderegistration message * fixed wrong data type for queued field
1 parent ea2cf4f commit e8ecc08

File tree

4 files changed

+332
-94
lines changed

4 files changed

+332
-94
lines changed

common/database/migration.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ func (m *Migration) Init(qe *query.Executor) error {
103103
"payload_hash" BLOB,
104104
PRIMARY KEY("id")
105105
);`,
106+
`
107+
CREATE TABLE IF NOT EXISTS "node_registry" (
108+
"node_public_key" BLOB,
109+
"account_id" BLOB,
110+
"registration_height" INTEGER,
111+
"node_address" VARCHAR(255),
112+
"locked_balance" INTEGER,
113+
"queued" INTEGER,
114+
"latest" INTEGER,
115+
"height" INTEGER,
116+
PRIMARY KEY("node_public_key", "account_id", "height")
117+
);`,
106118
}
107119
return nil
108120
}

common/model/accountBalance.pb.go

Lines changed: 66 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)