mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Fixes for Litecoin transaction priorities
This commit is contained in:
parent
6f215f5451
commit
c55144b0f0
3 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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 [];
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue