Skip to content

Commit

Permalink
Allow fee-less transactions when there is a ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptokatz committed Apr 16, 2019
1 parent 6375069 commit 4f02f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WalletLegacy/WalletLegacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ TransactionId WalletLegacy::sendTransaction(Crypto::SecretKey& transactionSK,
std::deque<std::unique_ptr<WalletLegacyEvent>> events;
throwIfNotInitialised();

if (fee < 100) {
if ((fee < 100) && (ttl == 0)) {
fee = 100;
}

Expand Down

0 comments on commit 4f02f38

Please sign in to comment.