Skip to content

Commit 74ad71d

Browse files
committed
Extract interface for utxo priority algorithm
1 parent 392dd79 commit 74ad71d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

divi/src/I_UtxoPriorityAlgorithm.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef I_UTXO_PRIORITY_ALGORITHM_H
2+
#define I_UTXO_PRIORITY_ALGORITHM_H
3+
struct InputToSpendAndSigSize;
4+
class I_UtxoPriorityAlgorithm
5+
{
6+
public:
7+
virtual ~I_UtxoPriorityAlgorithm(){}
8+
virtual bool operator()(const InputToSpendAndSigSize& first, const InputToSpendAndSigSize& second) const = 0;
9+
};
10+
#endif //I_UTXO_PRIORITY_ALGORITHM_H

divi/src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ BITCOIN_CORE_H = \
385385
CachedTransactionDeltasCalculator.h \
386386
wallet.h \
387387
WalletTx.h \
388+
I_UtxoPriorityAlgorithm.h \
388389
I_UtxoOwnershipDetector.h \
389390
I_TransactionDetailCalculator.h \
390391
CachedUtxoBalanceCalculator.h \

0 commit comments

Comments
 (0)