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()
|
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);
|
||||||
|
|
|
@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue