Comments (6)
- Isn't it
true
by default though? - Is the request being rejected on the RPC Server-side?
struct COMMAND_RPC_CLOSE_WALLET
{
struct request_t
{
bool autosave_current;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE_OPT(autosave_current, true)
END_KV_SERIALIZE_MAP()
};
typedef epee::misc_utils::struct_init<request_t> request;
struct response_t
{
BEGIN_KV_SERIALIZE_MAP()
END_KV_SERIALIZE_MAP()
};
typedef epee::misc_utils::struct_init<response_t> response;
};
What I do notice though, is that when I call CloseWalletAsync
, I see nothing printed to screen on the RPC Server. Im guessing it should at least say something about the wallet being saved and closed.
from csharp-monero-rpc-client.
Hmm, you are right about the default, overlooked that. I will try to investigate further. First attempt will probably be to call the save method myself before closing.
I had at least one occurence where I lost some destinations by merely calling CloseWalletAsync
but where later other destinations where made permanent when I stopped the RPC daemon with ^C which causes it to save the currently open wallet before terminating (which it also says on console).
from csharp-monero-rpc-client.
Yeah I noticed that. When I close with Ctrl ^ C I get the nice message. When I use the CloseWalletAsync call, I don't get anything, which I'm suspect of. Thanks for investigating further.
from csharp-monero-rpc-client.
I debugged the RPC binary on Linux and the default parameter mechanism was working, autosave_current
was true. With this the mystery only deepens.
Preserving destinations (and maybe other things) works for me with a explicite call to SaveWalletAsync
prior to closing, so for the time being that's a simple workaround. Calling save does not result in a log line "Saved" or similar apparently.
Anyway, as far as your library is concerned, I don't think adding that autosave_current
parameter should have high priority.
from csharp-monero-rpc-client.
Feel free to close this Issue report then (unless you'd like to keep it open). Thanks for bringing this to my attention.
from csharp-monero-rpc-client.
Alright, let's close this, as the problem really is not on side of the library, and as I said adding the parameter does not seem pressing, as wanting to close a wallet without saving seems pretty obscure to me.
from csharp-monero-rpc-client.
Related Issues (14)
- Possible simplification of function name passing HOT 1
- Make available errors / error codes as coming in over RPC HOT 6
- Typo in member name HOT 1
- How to requst wallet-RPC with --rpc-login ? HOT 3
- Consider removing unneeded "using" lines HOT 1
- MoneroWalletClient return Method not found error on CreateAsync HOT 3
- \ HOT 1
- MultiSig versus Multisig HOT 2
- Possible use of variables instead of properties HOT 1
- An idea to simplify "GenericRequest" creation HOT 1
- Simplifying "JsonSerializerOptions" HOT 1
- Small typo HOT 1
- Suggestion: Add syntax highlighting to README.md HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharp-monero-rpc-client.