mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
add tx version flag to decide on which transaction "table" to access from db
This commit is contained in:
parent
f415334d21
commit
56bd1eff37
2 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,9 @@ import 'package:stackwallet/wallets/wallet/mixins/electrumx_mixin.dart';
|
|||
import 'package:tuple/tuple.dart';
|
||||
|
||||
class BitcoinWallet extends Bip39HDWallet with ElectrumXMixin {
|
||||
@override
|
||||
int get isarTransactionVersion => 2;
|
||||
|
||||
BitcoinWallet(
|
||||
super.cryptoCurrency, {
|
||||
required NodeService nodeService,
|
||||
|
|
|
@ -12,6 +12,8 @@ import 'package:stackwallet/wallets/wallet/impl/bitcoin_wallet.dart';
|
|||
import 'package:stackwallet/wallets/wallet/mixins/electrumx_mixin.dart';
|
||||
|
||||
abstract class Wallet<T extends CryptoCurrency> {
|
||||
int get isarTransactionVersion => 1;
|
||||
|
||||
Wallet(this.cryptoCurrency);
|
||||
|
||||
//============================================================================
|
||||
|
|
Loading…
Reference in a new issue