Skip to content

Commit

Permalink
hotfix election price calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Oct 10, 2023
1 parent 19c6d68 commit 6fbef22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vochain/transaction/election_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func checkRevealProcessKeys(tx *models.AdminTx, process *models.Process) error {
func (t *TransactionHandler) txElectionCostFromProcess(process *models.Process) uint64 {
return t.state.ElectionPriceCalc.Price(&electionprice.ElectionParameters{
MaxCensusSize: process.GetMaxCensusSize(),
ElectionDuration: process.BlockCount + process.StartBlock,
ElectionDuration: process.BlockCount,
EncryptedVotes: process.GetEnvelopeType().EncryptedVotes,
AnonymousVotes: process.GetEnvelopeType().Anonymous,
MaxVoteOverwrite: process.GetVoteOptions().MaxVoteOverwrites,
Expand Down

0 comments on commit 6fbef22

Please sign in to comment.