Fixes for Litecoin transaction priorities

This commit is contained in:
M 2022-01-12 18:13:16 +02:00
parent 6f215f5451
commit c55144b0f0
3 changed files with 5 additions and 1 deletions

View file

@ -35,6 +35,9 @@ class CWBitcoin extends Bitcoin {
List<TransactionPriority> getTransactionPriorities() List<TransactionPriority> getTransactionPriorities()
=> BitcoinTransactionPriority.all; => BitcoinTransactionPriority.all;
List<TransactionPriority> getLitecoinTransactionPriorities()
=> LitecoinTransactionPriority.all;
@override @override
TransactionPriority deserializeBitcoinTransactionPriority(int raw) TransactionPriority deserializeBitcoinTransactionPriority(int raw)
=> BitcoinTransactionPriority.deserialize(raw: raw); => BitcoinTransactionPriority.deserialize(raw: raw);

View file

@ -42,7 +42,7 @@ List<TransactionPriority> priorityForWalletType(WalletType type) {
case WalletType.bitcoin: case WalletType.bitcoin:
return bitcoin.getTransactionPriorities(); return bitcoin.getTransactionPriorities();
case WalletType.litecoin: case WalletType.litecoin:
return bitcoin.getTransactionPriorities(); return bitcoin.getLitecoinTransactionPriorities();
default: default:
return []; return [];
} }

View file

@ -70,6 +70,7 @@ abstract class Bitcoin {
List<String> getWordList(); List<String> getWordList();
Map<String, String> getWalletKeys(Object wallet); Map<String, String> getWalletKeys(Object wallet);
List<TransactionPriority> getTransactionPriorities(); List<TransactionPriority> getTransactionPriorities();
List<TransactionPriority> getLitecoinTransactionPriorities();
TransactionPriority deserializeBitcoinTransactionPriority(int raw); TransactionPriority deserializeBitcoinTransactionPriority(int raw);
int getFeeRate(Object wallet, TransactionPriority priority); int getFeeRate(Object wallet, TransactionPriority priority);
Future<void> generateNewAddress(Object wallet); Future<void> generateNewAddress(Object wallet);