VotingPolicy class

The voting rules for the network to decide if a proposal is accepted

Applies only to Hyperledger Fabric.

Constructors

VotingPolicy({ApprovalThresholdPolicy? approvalThresholdPolicy})
VotingPolicy.fromJson(Map<String, dynamic> json)
factory

Properties

approvalThresholdPolicy 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.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited