Wasabi Daemon #10216
lontivero
started this conversation in
General & Publications
Wasabi Daemon
#10216
Replies: 1 comment
-
the PR of the daemon: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Vision
We are really far from that vision but it is possible to achieve something not so ambitious with relatively low effort by simply separating the UI from the rest of the wallet allowing us to have a process with a smaller footprint in memory and cpu while at the same time would make easier (to swallow) to start it with the OS.
Questions
This is about having a headless wasabi process that can be started from command line with parameters.
No. That's completely out of the scope. But it would be easier to do in the future ofc once we have a daemon processes.
It should remain untouched. From the technical point of view however, it should be moved from the UI (where currently it is) to the daemon project (where makes more sense).
I say low effort because in some sense the UI is already separated in projects:
That means that a new
WalletWasabi.Daemon
would be pretty similar toWalletWasabi.Fluent.Desktop
(which is a one-file project) except that it shouldn't launch the UI and should process a different set commands. For example, it cannot process thecrashreport
argument nor the-url
argument (if implemented).Challenges
Single instance checker.
The SIC is designed under the assumption that there is only one project: the Desktop project. I assume the daemon will be used by very few people (it is headless after all) and then it doesn't worth the effort to make the SIC more complex to handle very edge cases.
How to start
WalletWasabi.Daemon
could be used as the template for the Daemon project but itsProgram.cs
(the only file in that project) its a little messy so, it would be good to clone the project, make it work and then extract the common code (a few tends of LoC) to aWasabiApp
class or similar.Beta Was this translation helpful? Give feedback.
All reactions