Skip to content

Commit

Permalink
consensus: remove separator comment queries
Browse files Browse the repository at this point in the history
These put pgx's pipeline out of sync when it expects to find an Exec result
and instead finds the next query's output.
  • Loading branch information
pro-wh committed Feb 8, 2024
1 parent a103b3f commit bb3a3e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions analyzer/consensus/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ func (mg *GenesisProcessor) Process(document *genesis.Document, nodesOverride []

func (mg *GenesisProcessor) addRegistryBackendMigrations(document *genesis.Document, nodesOverride []nodeapi.Node) (queries []string, err error) {
// Populate entities.
queries = append(queries, "-- Registry Backend Data\n")
query := `INSERT INTO chain.entities (id, address)
VALUES
`
Expand Down Expand Up @@ -219,7 +218,6 @@ VALUES
//nolint:gocyclo
func (mg *GenesisProcessor) addStakingBackendMigrations(document *genesis.Document) (queries []string, err error) {
// Populate accounts.
queries = append(queries, "-- Staking Backend Data\n")

// Populate special accounts with reserved addresses.
query := `-- Reserved addresses
Expand Down Expand Up @@ -469,7 +467,6 @@ VALUES

func (mg *GenesisProcessor) addGovernanceBackendMigrations(document *genesis.Document) (queries []string) {
// Populate proposals.
queries = append(queries, "-- Governance Backend Data\n")

if len(document.Governance.Proposals) > 0 {
// TODO: Extract `executed` for proposal.
Expand Down

0 comments on commit bb3a3e7

Please sign in to comment.