add tx version flag to decide on which transaction "table" to access from db

This commit is contained in:
julian 2023-10-30 11:41:03 -06:00
parent f415334d21
commit 56bd1eff37
2 changed files with 5 additions and 0 deletions

View file

@ -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,

View file

@ -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);
//============================================================================