-
decenteroven[m]
Sir, I have a question. For example, 24 words and after +25 words for Monero are entered on the Ledger Nano X device, is it possible to enter Monero without +25 words with 24 words that have been re-enter on the Ledger Nano X device or not? Without +25 words. With only 24 words.
-
ghostway[m]
Are you asking if you could guess the last word? You could, technically
-
decenteroven[m]
Let's say after you get 25 words for monero in ledger nano and buyed 30 monero and 30 monero in ledger nano. For example, if I enter 24 words without entering 25 words into Ledger nano, can I reach 30 monero or not?
-
merope
We have already answered your question in the other room
-
decenteroven[m]
merope: Sir u cannot got me
-
ryit[m]
Hello, I am trying to write integration tests for the RPC wallet client in the C# library. One of the tests I have creates a new wallet. When I run it in isolation, it works fine and can create a new wallet. If I try to run it with other tests however, there is a problem where it will get stuck and throw an exception with "The I/O operation has been aborted because of either a thread exit or an application request." For example, another
-
ryit[m]
test runs first that gets account info for a wallet then the create wallet test runs and it just hangs and throws the exception I mention. Is there something that needs to be unlocked/ released that is unique to the wallet creation? thanks
-
tevador
Monero doesn't have an official C# library AFAIK. I don't think anyone can help you without seeing the source code.
-
ryit[m]
I'll link to it on GitHub in a bit
-
ryit[m]
There was a C# RPC client and I have forked it to try to refactor it, add missing calls and add integration tests. My integration tests are here:
github.com/ryn0/csharp-monero-rpc-c…letTests/MoneroWalletClientTests.cs
-
-
ryit[m]
I'm using a remote daemon for these
-
-
ryit[m]
If I run just the wallet creation test, it does work as expected. It's when other tests run that it has this issue.
-
tevador
MoneroWalletClient is IDisposable, so you have to either call Dispose() on the client instance when you are done with it or use the "using" statement, which will dispose the object automatically when it leaves the scope.
-
tevador
The problem is that the wallet RPC can only have one wallet open at a time. Dispose will close the wallet, but you are not calling it.
-
ryit[m]
If you go back to the file, you will see I just added "walletClient.Dispose();" after it's used but I am still getting the same error.
-
ryit[m]
Two of the tests did run correctly without calling Dispose().
-
ryit[m]
What I see locally is that the test "GetAccountsAsync_WalletWithFunds_HasBalanceGreaterThanZero" runs first, it passes, then "CreateNewWalletAsync_ValidWalletInfo_ReturnsCorrectMnemonic" runs and that is where it hangs.
-
ryit[m]
It makes me think there is something different about a new wallet vs. an existing one.
-
tevador
ryit[m]: Maybe you are not starting monero-wallet-rpc with the --wallet-dir argument, which is required to create new wallets.
-
ryit[m]
It is started with "--wallet-dir" and it does create a new wallet. It's just that there seems to be some kind of lock/ async issue when running the wallet creation test and other tests in the same test run.
-
hyc
the wallet isn't really re-entrant or threadsafe
-
hyc
you shouldn't do anything else concurrently against it
-
ryit[m]
Is there a good strategy for writing these kinds of integration tests against the wallet? Even if I start and stop the wallet exe within each test, I am getting an exception.
-
ryit[m]
Only thing that seems to work is running each test in isolation.