extraWeight property
int
get
extraWeight
Data Request extra weight related by commits, reveals and tally
Implementation
int get extraWeight {
final commitsWeight = witnesses * COMMIT_WEIGHT;
final revealsWeight = witnesses * REVEAL_WEIGHT * BETA;
final tallyOutputsWeight = witnesses * OUTPUT_SIZE;
final tallyWeight = TALLY_WEIGHT * BETA + tallyOutputsWeight;
return commitsWeight + revealsWeight + tallyWeight;
}