mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
add roundCount param to FusionParams
This commit is contained in:
parent
6351e47384
commit
a4c1814224
4 changed files with 6 additions and 3 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 7ebd6daa321867acebcc6adb8107c1322c03f3e7
|
||||
Subproject commit 1e291d807c3fa9d9287007588cd3bbfa45875b30
|
|
@ -340,6 +340,7 @@ class _CashFusionViewState extends ConsumerState<CashFusionView> {
|
|||
serverHost: serverController.text,
|
||||
serverPort: int.parse(portController.text),
|
||||
serverSsl: _enableSSLCheckbox,
|
||||
roundCount: 0, // TODO update fusion rounds.
|
||||
));
|
||||
|
||||
// TODO: navigate to progress screen
|
||||
|
|
|
@ -511,6 +511,7 @@ class _DesktopCashFusion extends ConsumerState<DesktopCashFusionView> {
|
|||
serverHost: serverController.text,
|
||||
serverPort: int.parse(portController.text),
|
||||
serverSsl: ref.read(checkBoxStateProvider),
|
||||
roundCount: 0, // TODO update fusion rounds.
|
||||
));
|
||||
// unawaited(fusionWallet.stepThruUiStates());
|
||||
|
||||
|
|
|
@ -295,13 +295,14 @@ mixin FusionWalletInterface {
|
|||
Future<void> fuse(
|
||||
{required String serverHost,
|
||||
required int serverPort,
|
||||
required bool serverSsl}) async {
|
||||
required bool serverSsl,
|
||||
required int roundCount}) async {
|
||||
// Initial attempt for CashFusion integration goes here.
|
||||
|
||||
// Use server host and port which ultimately come from text fields.
|
||||
// TODO validate.
|
||||
fusion.FusionParams serverParams = fusion.FusionParams(
|
||||
serverHost: serverHost, serverPort: serverPort, serverSsl: serverSsl);
|
||||
serverHost: serverHost, serverPort: serverPort, serverSsl: serverSsl, roundCount: roundCount);
|
||||
|
||||
// Instantiate a Fusion object with custom parameters.
|
||||
final mainFusionObject = fusion.Fusion(serverParams);
|
||||
|
|
Loading…
Reference in a new issue