Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Aug 10, 2020
1 parent 1432efb commit 663bba9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ public BitcoinTransaction(List<MultiTo> multiToList, int changeIdx, long fee, Ar
this.outputs = outputs;
this.changeIdx = changeIdx;
multiToList.forEach(multiTo -> {
if (multiTo.getAmount() < DUST_THRESHOLD) {
throw new TokenException(Messages.AMOUNT_LESS_THAN_MINIMUM);
}
multiToAmount += multiTo.getAmount();
});

if (amount < DUST_THRESHOLD) {
throw new TokenException(Messages.AMOUNT_LESS_THAN_MINIMUM);
}

}

@Override
Expand Down

0 comments on commit 663bba9

Please sign in to comment.