Skip to content

Commit 419feee

Browse files
committed
Fix typo for numerator
1 parent 9801165 commit 419feee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Insert.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ insertGovActionProposal cache blkId txId govExpiresAt (index, pp) = do
15411541
void . DB.insertNewCommittee $
15421542
DB.NewCommittee
15431543
{ DB.newCommitteeGovActionProposalId = gaId
1544-
, DB.newCommitteeQuorumNominator = fromIntegral $ numerator r
1544+
, DB.newCommitteeQuorumNumerator = fromIntegral $ numerator r
15451545
, DB.newCommitteeQuorumDenominator = fromIntegral $ denominator r
15461546
, DB.newCommitteeDeletedMembers = textShow removed
15471547
, DB.newCommitteeAddedMembers = textShow added

cardano-db/src/Cardano/Db/Schema.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ share
609609

610610
NewCommittee
611611
govActionProposalId GovActionProposalId noreference
612-
quorumNominator Word64
612+
quorumNumerator Word64
613613
quorumDenominator Word64
614614
deletedMembers Text
615615
addedMembers Text
@@ -1248,7 +1248,7 @@ schemaDocs =
12481248
NewCommittee --^ do
12491249
"A table for new committee proposed on a GovActionProposal. New in 13.2-Conway."
12501250
NewCommitteeGovActionProposalId # "The GovActionProposal table index for this new committee."
1251-
NewCommitteeQuorumNominator # "The proposed quorum nominator."
1251+
NewCommitteeQuorumNumerator # "The proposed quorum nominator."
12521252
NewCommitteeQuorumDenominator # "The proposed quorum denominator."
12531253
NewCommitteeDeletedMembers # "The removed members of the committee. This is now given in a text as a description, but may change. TODO: Conway."
12541254
NewCommitteeAddedMembers # "The new members of the committee. This is now given in a text as a description, but may change. TODO: Conway."

schema/migration-2-0032-20230815.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BEGIN
2525
EXECUTE 'ALTER TABLE "new_committee" ADD COLUMN "deleted_members" VARCHAR NOT NULL' ;
2626
EXECUTE 'ALTER TABLE "new_committee" ADD COLUMN "added_members" VARCHAR NOT NULL' ;
2727
EXECUTE 'ALTER TABLE "new_committee" DROP COLUMN "members"' ;
28-
EXECUTE 'ALTER TABLE "new_committee" ADD COLUMN "quorum_nominator" INT8 NOT NULL' ;
28+
EXECUTE 'ALTER TABLE "new_committee" ADD COLUMN "quorum_numerator" INT8 NOT NULL' ;
2929
EXECUTE 'ALTER TABLE "new_committee" ADD COLUMN "quorum_denominator" INT8 NOT NULL' ;
3030
EXECUTE 'ALTER TABLE "new_committee" DROP COLUMN "quorum"' ;
3131
EXECUTE 'CREATe TABLE "voting_procedure"("id" SERIAL8 PRIMARY KEY UNIQUE,"tx_id" INT8 NOT NULL,"index" INT4 NOT NULL,"gov_action_proposal_id" INT8 NOT NULL,"voter_role" voterrole NOT NULL,"committee_voter" BYTEA NULL,"drep_voter" INT8 NULL,"pool_voter" INT8 NULL,"vote" vote NOT NULL,"voting_anchor_id" INT8 NULL)' ;

0 commit comments

Comments
 (0)