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

API Inconsistency between grin wallet info and retrieve_summary_info #2613

Closed
waynenilsen opened this issue Feb 21, 2019 · 0 comments
Closed

Comments

@waynenilsen
Copy link

waynenilsen commented Feb 21, 2019

Describe the bug

When sending grin, from the sender's perspective, there is an inconsistency between grin wallet info and the owner api retrieve_summary_info endpoint.

To Reproduce
Steps to reproduce the behavior:

  1. Send some grin to yourself using file, grin --floonet wallet send --method=file --dest=temp.json
  2. Receive the file grin --floonet wallet receive --input=temp.json
  3. Run grin --floonet wallet info note the UTXOs get locked up (that's good)
  4. Run curl -v -u grin:PASSWORD --request GET --url "http://127.0.0.1:13420/v1/wallet/owner/retrieve_summary_info?refresh=true" -H 'Content-Type: application/json' where PASSWORD is from the .api_secret file. Note the outputs are consistent.
  5. Finalize grin --floonet wallet finalize --input=temp.json.response
  6. Run grin --floonet wallet info again and note that nothing has changed
  7. Keep running the info command, note that once you get one confirm, the info command output changes (as it should) but the output from the curl command to the owner api goes IMMEDIATELY to spendable and does not wait for the change to settle. This inconsistency persists while the number of confirmations on the change is more than 1 and less than 10.

Desktop (please complete the following information):

  • OS: System Version: macOS 10.13.6 (17G4015) Kernel Version: Darwin 17.7.0
  • Version 1.0.1
@waynenilsen waynenilsen changed the title API Inconsistency API Inconsistency between grin wallet info and retrieve_summary_info Feb 21, 2019
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

No branches or pull requests

1 participant