vocdoni / vocdoni-node

A set of libraries and tools for the Vocdoni decentralized backend infrastructure, the main ground of our universally verifiable, privacy-centric and scalable digital voting protocol
GNU Affero General Public License v3.0
86 stars 16 forks source link

vochain: add set_process_duration transaction #1344

Closed p4u closed 3 months ago

p4u commented 3 months ago

With this transaction we can now modify the duration of an existing project (while in READY or PAUSE state).

If interruptible=false the duration can only be extended.

The cost of the transactions is computed dynamically by: max(nextPrice - previousPrice, txBaseCost)

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 9582611282

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
vochain/keykeeper/keykeeper.go 0 1 0.0%
vochain/offchaindatahandler/offchaindatahandler.go 0 1 0.0%
vochain/indexer/indexer.go 0 5 0.0%
vochain/transaction/transaction.go 7 13 53.85%
vochain/transaction/election_tx.go 16 25 64.0%
vochain/state/process.go 16 36 44.44%
<!-- Total: 65 107 60.75% -->
Totals Coverage Status
Change from base Build 9578771142: 0.004%
Covered Lines: 15971
Relevant Lines: 26057

💛 - Coveralls
coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 9582741182

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
vochain/keykeeper/keykeeper.go 0 1 0.0%
vochain/offchaindatahandler/offchaindatahandler.go 0 1 0.0%
vochain/indexer/indexer.go 0 5 0.0%
vochain/transaction/transaction.go 7 13 53.85%
vochain/transaction/election_tx.go 16 25 64.0%
vochain/state/process.go 16 36 44.44%
<!-- Total: 65 107 60.75% -->
Totals Coverage Status
Change from base Build 9578771142: 0.02%
Covered Lines: 15975
Relevant Lines: 26057

💛 - Coveralls