Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data VotingPolicy Source #
The voting rules for the network to decide if a proposal is accepted
Applies only to Hyperledger Fabric.
See: newVotingPolicy
smart constructor.
VotingPolicy' | |
|
Instances
newVotingPolicy :: VotingPolicy Source #
Create a value of VotingPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:approvalThresholdPolicy:VotingPolicy'
, votingPolicy_approvalThresholdPolicy
- Defines the rules for the network for voting on proposals, such as the
percentage of YES
votes required for the proposal to be approved and
the duration of the proposal. The policy applies to all proposals and is
specified when the network is created.
votingPolicy_approvalThresholdPolicy :: Lens' VotingPolicy (Maybe ApprovalThresholdPolicy) Source #
Defines the rules for the network for voting on proposals, such as the
percentage of YES
votes required for the proposal to be approved and
the duration of the proposal. The policy applies to all proposals and is
specified when the network is created.