LightClientAttackEvidence constructor
LightClientAttackEvidence({
- LightBlock? conflictingBlock,
- Int64? commonHeight,
- Iterable<
Validator> ? byzantineValidators, - Int64? totalVotingPower,
- Timestamp? timestamp,
Implementation
factory LightClientAttackEvidence({
$5.LightBlock? conflictingBlock,
$fixnum.Int64? commonHeight,
$core.Iterable<$4.Validator>? byzantineValidators,
$fixnum.Int64? totalVotingPower,
$3.Timestamp? timestamp,
}) {
final _result = create();
if (conflictingBlock != null) {
_result.conflictingBlock = conflictingBlock;
}
if (commonHeight != null) {
_result.commonHeight = commonHeight;
}
if (byzantineValidators != null) {
_result.byzantineValidators.addAll(byzantineValidators);
}
if (totalVotingPower != null) {
_result.totalVotingPower = totalVotingPower;
}
if (timestamp != null) {
_result.timestamp = timestamp;
}
return _result;
}