store starting time of the proposal in its datum
... hardcoded to 0 upon creation for now
This commit is contained in:
parent
d44fe083da
commit
fc48709c07
7 changed files with 26 additions and 2 deletions
|
|
@ -152,6 +152,7 @@ proposalValidator proposal =
|
|||
, "thresholds"
|
||||
, "votes"
|
||||
, "timingConfig"
|
||||
, "startingTime"
|
||||
]
|
||||
proposalDatum
|
||||
|
||||
|
|
@ -255,6 +256,7 @@ proposalValidator proposal =
|
|||
.& #thresholds .= proposalF.thresholds
|
||||
.& #votes .= pdata expectedNewVotes
|
||||
.& #timingConfig .= proposalF.timingConfig
|
||||
.& #startingTime .= proposalF.startingTime
|
||||
)
|
||||
|
||||
tcassert "Invalid output proposal" $ proposalOut #== expectedProposalOut
|
||||
|
|
@ -345,6 +347,7 @@ proposalValidator proposal =
|
|||
.& #thresholds .= proposalF.thresholds
|
||||
.& #votes .= proposalF.votes
|
||||
.& #timingConfig .= proposalF.timingConfig
|
||||
.& #startingTime .= proposalF.startingTime
|
||||
)
|
||||
)
|
||||
in foldr1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue