hasWitnessCommit method

bool hasWitnessCommit()

Is Block Has Witness Commit

Implementation

bool hasWitnessCommit() {
  if (witnessCommit != null && witnessCommit!.length == 32) {
    return true;
  }
  if (getWitnessCommit() != null) return true;
  return false;
}