Skip to content

Commit

Permalink
Improve comment in hprop_check_predefined_abstain_drep
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed May 3, 2024
1 parent ad08d09 commit 5b72c6c
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@ import qualified Hedgehog.Extras as H
import qualified Hedgehog.Extras.Stock.IO.Network.Sprocket as IO
import Testnet.Components.TestWatchdog (runWithDefaultWatchdog_)

-- | This test creates a default testnet with three DReps and one stake holder delegated to each.
-- We then do a proposal for an arbitrary parameter change (in this case to the
-- @desiredNumberOfPools@ parameter) to check that it fails, when the first DRep votes "yes" and the
-- last two vote "no". Later we chack that if we change the stake holders under the DReps that vote
-- "no" to delegate to the automate "always abstain" DRep, the same kind of proposal passes.
-- | This test creates a default testnet with three DReps delegated to by three
-- separate stake holders (one per DRep). We then do a proposal for an arbitrary
-- parameter change (in this case to the @desiredNumberOfPools@ parameter) to check
-- that it fails, when the first DRep votes "yes" and the last two vote "no". Later
-- we chack that if we change the stake holders under the DReps that vote "no" to
-- delegate to the automate "always abstain" DRep, the same kind of proposal passes.
-- If the proposal passes, it means that the stake was counted as abstaining,
-- because the threshold of minimum participation is 50%, if the stake was not counted as
-- abstaining, the "yes" votes would not have been enough, since they only account
-- for the 33% of the total active stake.
--
-- This test is meant to ensure that delegating to "always abstain" has the desired effect of
-- counting as abstaining for the stake delegated.
-- This test is meant to ensure that delegating to "always abstain" has the desired
-- effect of counting as abstaining for the stake delegated.
--
-- Execute me with:
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/Predefined Abstain DRep/"'@
Expand Down

0 comments on commit 5b72c6c

Please sign in to comment.