Skip to content
This repository was archived by the owner on Sep 26, 2018. It is now read-only.

Commit 3262e42

Browse files
authored
Fix occasional fusion fails due to incorrect overload
1 parent 568915d commit 3262e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CryptoNoteCore/Core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ bool Core::isTransactionValidForPool(const CachedTransaction& cachedTransaction,
10411041
return false;
10421042
}
10431043

1044-
bool isFusion = fee == 0 && currency.isFusionTransaction(cachedTransaction.getTransaction(), cachedTransaction.getTransactionBinaryArray().size());
1044+
bool isFusion = fee == 0 && currency.isFusionTransaction(cachedTransaction.getTransaction(), cachedTransaction.getTransactionBinaryArray().size(), getTopBlockIndex());
10451045
if (!isFusion && fee < currency.minimumFee()) {
10461046
logger(Logging::WARNING) << "Transaction " << cachedTransaction.getTransactionHash()
10471047
<< " is not valid. Reason: fee is too small and it's not a fusion transaction";

0 commit comments

Comments
 (0)