You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (BigInteger.ZERO.equals(verifiedTx.getFee())) {
138
+
StringerrorMessage = "Deposit transaction from " + (isFromTaker ? "taker" : "maker") + " has 0 fee for trade " + trade.getId() + ". This should never happen.";
139
+
log.warn(errorMessage + "\n" + verifiedTx);
140
+
thrownewRuntimeException(errorMessage);
141
+
}
142
+
143
+
// update trade state
144
+
sender.setSecurityDeposit(sender.getSecurityDeposit().subtract(verifiedTx.getFee())); // subtract mining fee from security deposit
if (BigInteger.ZERO.equals(verifiedTx.getFee())) {
85
+
StringerrorMessage = "Reserve transaction from " + (isFromMaker ? "maker" : "taker") + " has 0 fee for trade " + trade.getId() + ". This should never happen.";
86
+
log.warn(errorMessage + "\n" + verifiedTx);
87
+
thrownewRuntimeException(errorMessage);
88
+
}
89
+
90
+
// save reserve tx to model
91
+
sender.setSecurityDeposit(sender.getSecurityDeposit().subtract(verifiedTx.getFee())); // subtract mining fee from security deposit
0 commit comments