Skip to content

Commit f76c30f

Browse files
committed
Add a invalid vote field as placeholder
1 parent 333d459 commit f76c30f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ insertVotingProcedure trce cache blkId txId voter (index, (gaId, vp)) = do
308308
, DB.votingProcedureVoterRole = Generic.toVoterRole voter
309309
, DB.votingProcedureVote = Generic.toVote $ vProcVote vp
310310
, DB.votingProcedureVotingAnchorId = votingAnchorId
311+
, DB.votingProcedureInvalid = Nothing
311312
}
312313

313314
insertVotingAnchor :: (MonadIO m, MonadBaseControl IO m) => DB.BlockId -> DB.AnchorType -> Anchor StandardCrypto -> ReaderT SqlBackend m DB.VotingAnchorId

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ share
660660
poolVoter PoolHashId Maybe noreference
661661
vote Vote sqltype=vote
662662
votingAnchorId VotingAnchorId Maybe noreference
663+
invalid EventInfoId Maybe noreference
663664

664665
DrepDistr
665666
hashId DrepHashId noreference
@@ -674,6 +675,12 @@ share
674675
constitutionId ConstitutionId Maybe noreference
675676
epochNo Word64 sqltype=word31type
676677

678+
EventInfo
679+
txId TxId Maybe noreference
680+
epoch Word64 sqltype=word31type
681+
type Text
682+
explanation Text Maybe
683+
677684
-- -----------------------------------------------------------------------------------------------
678685
-- OffChain (ie not on the blockchain) data.
679686

@@ -1388,6 +1395,7 @@ schemaDocs =
13881395
VotingProcedurePoolVoter # "A reference to the pool hash entry that voted"
13891396
VotingProcedureVote # "The Vote. Can be one of Yes, No, Abstain."
13901397
VotingProcedureVotingAnchorId # "The VotingAnchor table index associated with this VotingProcedure."
1398+
VotingProcedureInvalid # "TODO: This is currently not implemented and always stays null. Not null if the vote is invalid."
13911399

13921400
OffChainVoteData --^ do
13931401
"The table with the offchain metadata related to Vote Anchors. It accepts metadata in a more lenient way than what's\

0 commit comments

Comments
 (0)