mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
set and use particl tx version #
s
This commit is contained in:
parent
b87105773c
commit
e10eb90511
2 changed files with 2 additions and 4 deletions
|
@ -232,7 +232,7 @@ class Particl extends Bip39HDCurrency with ElectrumXCurrencyInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get transactionVersion => 1;
|
int get transactionVersion => 160;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
BigInt get defaultFeeRate => BigInt.from(20000);
|
BigInt get defaultFeeRate => BigInt.from(20000);
|
||||||
|
|
|
@ -436,9 +436,7 @@ class ParticlWallet<T extends ElectrumXCurrencyInterface>
|
||||||
final txb = bitcoindart.TransactionBuilder(
|
final txb = bitcoindart.TransactionBuilder(
|
||||||
network: convertedNetwork,
|
network: convertedNetwork,
|
||||||
);
|
);
|
||||||
const version = 160; // buildTransaction overridden for Particl to set this.
|
txb.setVersion(cryptoCurrency.transactionVersion);
|
||||||
// TODO: [prio=low] refactor overridden buildTransaction to use eg. cryptocurrency.networkParams.txVersion.
|
|
||||||
txb.setVersion(version);
|
|
||||||
|
|
||||||
// Temp tx data for GUI while waiting for real tx from server.
|
// Temp tx data for GUI while waiting for real tx from server.
|
||||||
final List<InputV2> tempInputs = [];
|
final List<InputV2> tempInputs = [];
|
||||||
|
|
Loading…
Reference in a new issue