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()
=> BitcoinTransactionPriority.all;
List<TransactionPriority> getLitecoinTransactionPriorities()
=> LitecoinTransactionPriority.all;
@override
TransactionPriority deserializeBitcoinTransactionPriority(int raw)
=> BitcoinTransactionPriority.deserialize(raw: raw);

View file

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

View file

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