add roundCount param to FusionParams

This commit is contained in:
sneurlax 2023-10-16 15:55:08 -05:00
parent 6351e47384
commit a4c1814224
4 changed files with 6 additions and 3 deletions

@ -1 +1 @@
Subproject commit 7ebd6daa321867acebcc6adb8107c1322c03f3e7
Subproject commit 1e291d807c3fa9d9287007588cd3bbfa45875b30

View file

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

View file

@ -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());

View file

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