From 6fbef22b3cb2451b5b514ef260ef73a805580600 Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Tue, 10 Oct 2023 16:46:37 +0200 Subject: [PATCH] hotfix election price calculation --- vochain/transaction/election_tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vochain/transaction/election_tx.go b/vochain/transaction/election_tx.go index 7e8f4ac37..478ff3447 100644 --- a/vochain/transaction/election_tx.go +++ b/vochain/transaction/election_tx.go @@ -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,