Skip to content

Commit 2bf4d5e

Browse files
committed
Remove checks for "one signa", allowing default handler to dictate fees
1 parent 6959585 commit 2bf4d5e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/brs/TransactionType.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,9 +2959,6 @@ protected void validateAttachment(Transaction transaction) throws SignumExceptio
29592959
{
29602960
throw new SignumException.NotValidException("Invalid escrow creation amount");
29612961
}
2962-
if (transaction.getFeeNqt() < Constants.ONE_SIGNA) {
2963-
throw new SignumException.NotValidException("Escrow transaction must have a fee at least 1 burst");
2964-
}
29652962
if (attachment.getRequiredSigners() < 1 || attachment.getRequiredSigners() > 10) {
29662963
throw new SignumException.NotValidException("Escrow required signers much be 1 - 10");
29672964
}
@@ -3042,8 +3039,8 @@ public TransactionDuplicationKey getDuplicationKey(Transaction transaction) {
30423039
@Override
30433040
protected void validateAttachment(Transaction transaction) throws SignumException.ValidationException {
30443041
Attachment.AdvancedPaymentEscrowSign attachment = (Attachment.AdvancedPaymentEscrowSign) transaction.getAttachment();
3045-
if (transaction.getAmountNqt() != 0 || transaction.getFeeNqt() != Constants.ONE_SIGNA) {
3046-
throw new SignumException.NotValidException("Escrow signing must have amount 0 and fee of 1");
3042+
if (transaction.getAmountNqt() != 0) {
3043+
throw new SignumException.NotValidException("Escrow signing must have amount 0");
30473044
}
30483045
if (attachment.getEscrowId() == null || attachment.getDecision() == null) {
30493046
throw new SignumException.NotValidException("Escrow signing requires escrow id and decision set");

0 commit comments

Comments
 (0)