mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
untested fusion ui state update change
This commit is contained in:
parent
fb1a997406
commit
fd6bb546f7
1 changed files with 14 additions and 0 deletions
|
@ -417,6 +417,12 @@ mixin FusionWalletInterface {
|
||||||
}) async {
|
}) async {
|
||||||
// Initial attempt for CashFusion integration goes here.
|
// Initial attempt for CashFusion integration goes here.
|
||||||
|
|
||||||
|
_updateStatus(status: fusion.FusionStatus.reset);
|
||||||
|
_updateStatus(
|
||||||
|
status: fusion.FusionStatus.connecting,
|
||||||
|
info: "Connecting to the CashFusion server.",
|
||||||
|
);
|
||||||
|
|
||||||
// Use server host and port which ultimately come from text fields.
|
// Use server host and port which ultimately come from text fields.
|
||||||
fusion.FusionParams serverParams = fusion.FusionParams(
|
fusion.FusionParams serverParams = fusion.FusionParams(
|
||||||
serverHost: fusionInfo.host,
|
serverHost: fusionInfo.host,
|
||||||
|
@ -484,6 +490,14 @@ mixin FusionWalletInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
while (shouldFuzeAgain()) {
|
while (shouldFuzeAgain()) {
|
||||||
|
if (_completedFuseCount > 0 || _failedFuseCount > 0) {
|
||||||
|
_updateStatus(status: fusion.FusionStatus.reset);
|
||||||
|
_updateStatus(
|
||||||
|
status: fusion.FusionStatus.connecting,
|
||||||
|
info: "Connecting to the CashFusion server.",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// refresh wallet utxos
|
// refresh wallet utxos
|
||||||
await _updateWalletUTXOS();
|
await _updateWalletUTXOS();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue