Skip to content

Add a native-Quit wallet-creation shutdown regression with restart-state checks #98

Closed

Description

@kiwidream

Summary

PR #87 removes the source-level worker-to-GUI mutual-wait cycle described by #79, but its regression tests do not exercise the production shutdown race end to end. The tests do not start CreateWalletActivity, pause at a durable creation boundary, deliver native/Cmd-Q QEvent::Quit through application shutdown, or verify wallet and startup state after restart.

The missing regression leaves the most important reachability and recovery guarantees unproved.

Current behavior

The added coverage proves that direct notification adoption is queued, that deleting a controller discards an already queued adoption, and that load activity completes after adoption. It does not overlap native application Quit with an actively running create/encrypt/setup operation. The reported Cocoa run also did not complete the existing modal wallet suite.

Expected behavior

A deterministic qbit-qt regression should prove that native application Quit completes within a fixed bound while wallet creation is paused at relevant durable boundaries. After restart, durable wallet state, loaded-wallet state, and startup selection should agree and clearly describe whether creation completed.

Acceptance criteria

  • Add latch-controlled coverage for both notification-driven and activity-driven model adoption.
  • Start CreateWalletActivity and pause before or during at least the NotifyWalletLoaded/model-adoption boundary; cover other durable creation boundaries identified by Quit during wallet creation can deadlock qbit-qt #79 where practical.
  • Deliver native/Cmd-Q QEvent::Quit through the production application shutdown path rather than directly deleting only the controller.
  • Assert bounded shutdown completion with no GUI/worker mutual wait.
  • After restart, inspect listwalletdir, listwallets, getwalletinfo, active-wallet selection, and startup settings.
  • Run the regression under the normal Qt suite and a sanitizer configuration.
  • Retain ordinary wallet load, unload, create, restore, and shutdown coverage.

References

Activity

  1. added
    bug
    on Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions