mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
add and use transactionVersion property for peercoin
TODO add versions for the rest of the coins
This commit is contained in:
parent
7cef4c45eb
commit
b909c72cb9
3 changed files with 6 additions and 2 deletions
|
@ -254,4 +254,7 @@ class Peercoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
int get transactionVersion => 3;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import '../intermediate/bip39_hd_currency.dart';
|
||||
|
||||
mixin ElectrumXCurrencyInterface on Bip39HDCurrency {
|
||||
//
|
||||
int get transactionVersion;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'dart:typed_data';
|
|||
|
||||
import 'package:coinlib_flutter/coinlib_flutter.dart' as coinlib;
|
||||
import 'package:isar/isar.dart';
|
||||
|
||||
import '../../../electrumx_rpc/cached_electrumx_client.dart';
|
||||
import '../../../electrumx_rpc/client_manager.dart';
|
||||
import '../../../electrumx_rpc/electrumx_client.dart';
|
||||
|
@ -651,7 +652,7 @@ mixin ElectrumXInterface<T extends ElectrumXCurrencyInterface>
|
|||
final List<coinlib.Output> prevOuts = [];
|
||||
|
||||
coinlib.Transaction clTx = coinlib.Transaction(
|
||||
version: 1, // TODO: check if we can use 3 (as is default in coinlib)
|
||||
version: cryptoCurrency.transactionVersion,
|
||||
inputs: [],
|
||||
outputs: [],
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue