-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5 - Wallet - Late locking - pre-generate transaction not working correctly #541
Comments
If I understand this correctly you want to do some "extreme" form of late locking with outputs to be spent that do not yet exist? This is interesting. This was not (as far as I know) a use-case that we considered for "late locking". But its not that different to what we currently have. |
At the moment, sending multiple transactions at the same time, without having the The current late locking, to my understanding, allows us to send multiple transactions successively without having to wait for a
Correct, the idea is to empower the possibility of having a |
This suggests there might be an existing edge case that we potentially don't have test coverage for. Say I have 100 grin in my wallet. The transaction will clearly fail, just not sure if we check for sufficient funds in a user friendly way during the finalize step. |
Yes this is the correct behavior, as you don't have enough funds. You could after you did send 50 GRINs add another 50 GRINs and the pre-generated In your example you are pre-generating But when you try, generating a Use case would be after you would receive sufficient funds, you then can use one of the pre-calculated |
Describe the bug
In reference to #530 and #485
I was trying to setup two wallets (hot/cold wallets) and pre-generate
slate transactions
between them without finalizing them.As long as I did have funds on the sending wallet it was working , but when I started to generate transactions which where bigger then the remaining funds on my sending wallets the
Libwallet Error: not enough funds
error triggersTo Reproduce
/grin-wallet -t /tmp/wallet/v5-1 send --late-lock --outfile /tmp/wallet/v5-1/slatepack/1-GRIN-Cold-storage..slatepack --dest grin1tt74pwyywxds403nydk5rjk9tlxvpkf9u9t50u3td69a6dfrrs4qxvwhg3 20
This was more then the sending wallet had in funds.
Expected behavior
Have some kind of an
command-line
flag to allow this even with not enough funds on the sending wallet.Desktop (please complete the following information):
[1] HOT-Wallet: https://github.com/mimblewimble/grin-wallet/releases/tag/v5.0.0-beta.2
[2] Cold-Wallet: https://github.com/mimblewimble/grin-wallet/releases/tag/v5.0.0-beta.2
[3] Node: https://github.com/mimblewimble/grin/tree/v5.0.0-beta.2
[4] Linux System 64bit
Additional context
It is a good solution you are not deducting the pre-generated and not yet finalized transaction from the sending wallet.
The text was updated successfully, but these errors were encountered: