Skip to content
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

CLI sendtoaddress Errors with more complicated entries #383

Open
michal-zurkowski opened this issue Jul 8, 2024 · 0 comments · Fixed by #385
Open

CLI sendtoaddress Errors with more complicated entries #383

michal-zurkowski opened this issue Jul 8, 2024 · 0 comments · Fixed by #385

Comments

@michal-zurkowski
Copy link
Contributor

michal-zurkowski commented Jul 8, 2024

This issue tracker is only for technical issues related to Raptoreum Core.

General Raptoreum questions and/or support requests and are best directed to the Raptoreum Discord.

To report critical security issues, DM the Core or Developer Teams instead of creating Github issues.

Describe the issue

The sendtoaddress cli command does not work except default send or simplest futures send. Anything else in this command does not seem to be working. There is no way to add comment, label, to subtract fee and other parameters that are AFTER futures in the command arguments.

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. Launch wallet with daemon capabilities (server=1 with -qt)
  2. Unlock wallet if needed (does not need to be unlocked for the error to actually show itself)
  3. Try to send RTM with sendtoaddress without futures functionality, or with but with added comment or other option set to not default value. Example commands are in the first screenshot
raptoreum-cli sendtoaddress "RRyELUZD7mmHJ7zQtbKPRndFTg4b7bcaTF" 1 [] "" "" true
raptoreum-cli sendtoaddress "RRyELUZD7mmHJ7zQtbKPRndFTg4b7bcaTF" 1 "[]" "" "" true
raptoreum-cli sendtoaddress "RRyELUZD7mmHJ7zQtbKPRndFTg4b7bcaTF" 1 null "" "" true
raptoreum-cli sendtoaddress "RRyELUZD7mmHJ7zQtbKPRndFTg4b7bcaTF" 1 "" "" true
raptoreum-cli sendtoaddress "RRyELUZD7mmHJ7zQtbKPRndFTg4b7bcaTF" 1 '{"future_maturity":50, "future_locktime": 2}' "" "" true
raptoreum-cli sendtoaddress "RRyELUZD7mmHJ7zQtbKPRndFTg4b7bcaTF" 1 '{"future_maturity":50, "future_locktime": 2}' "comment" "comment to" true

Expected behaviour

Being able to set fields like comment, or false/true for the send to subtract fees from the sending amount.

Actual behaviour

It does not work.
You can execute simple sendtoaddress command like:
raptoreum-cli sendtoaddress "rrSVzNMxGHYX4XkZtFAYgMEyku8W9KTuCe" 10
raptoreum-cli sendtoaddress "rrSVzNMxGHYX4XkZtFAYgMEyku8W9KTuCe" 20 "{\"future_maturity\":50, \"future_locktime\": -1}"
Adding anything that would be AFTER futures, or skipping it like in the help example does not work and results in error: Error parsing JSON:

Screenshots.

image
image
Using just [] in zsh
image

What version of Raptoreum Core are you using?

  • 1.3.17.05 - official
  • 1.3.17.06 - official
  • 1.3.17.06 - self compiled
  • 2.0.2.99 - (did not check myself but had reports it is the same)
@michal-zurkowski michal-zurkowski changed the title CLI senttoaddress Errors with more complicated entries CLI sendtoaddress Errors with more complicated entries Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant