Code Monkey home page Code Monkey logo

Comments (6)

Agorist-Action avatar Agorist-Action commented on July 26, 2024
  1. Isn't it true by default though?
  2. Is the request being rejected on the RPC Server-side?

https://github.com/monero-project/monero/blob/8286f07b265d16a87b3fe3bb53e8d7bf37b5265a/src/wallet/wallet_rpc_server_commands_defs.h

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.

rbrunner7 avatar rbrunner7 commented on July 26, 2024

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.

Agorist-Action avatar Agorist-Action commented on July 26, 2024

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.

rbrunner7 avatar rbrunner7 commented on July 26, 2024

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.

Agorist-Action avatar Agorist-Action commented on July 26, 2024

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.

rbrunner7 avatar rbrunner7 commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.