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

[Bug]: Can't load slatepack file at #80

Open
phyro opened this issue Jan 19, 2024 · 5 comments
Open

[Bug]: Can't load slatepack file at #80

phyro opened this issue Jan 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@phyro
Copy link
Member

phyro commented Jan 19, 2024

Describe the bug
Clicking on Show slatepack gives an error message at the top of the gui app saying "Can't load slatepack file at ".

NOTE: This is the same on Contracts and Legacy flow.

To Reproduce
Steps to reproduce the behavior:

  1. Make a self-spend tx and broadcast it to the node
  2. Click on tx log entry that was created
  3. Click on Show slatepack
  4. See error

Expected behavior
I would expect that either the button isn't there or that it shows a slatepack.

Screenshots
/

Desktop (please complete the following information):

  • OS: Linux (Debian)
  • Version of Grin-gui: v0.1.0-alpha.3

Additional context
It works until I finalize the transaction. From this I'd assume that the slatepack file gets deleted upon finalization.

@phyro phyro added the bug Something isn't working label Jan 19, 2024
@Anynomouss
Copy link

I have the same issue, I use alpha-4 version, I thought that contained the bug fix, or is it not yet in that release?
Let me know, if it is the main branch but not in alpha-4 I can test if it works when I build from the main branch.

@yeastplume
Copy link
Member

I have the same issue, I use alpha-4 version, I thought that contained the bug fix, or is it not yet in that release? Let me know, if it is the main branch but not in alpha-4 I can test if it works when I build from the main branch.

It's ready in the PR but not merged yet.. I'm going to fix one or two more things, merge the PR and tag another build soon

@yeastplume
Copy link
Member

Merged now in alpha 5 if anyone wants to check

@cekickafa
Copy link

  • Windows 10

    Made a self-spend tx and broadcast it to the node.
    Clicked on tx log entry that was created.
    Clicked on Show slatepack, it works as expected, it shows SLATEPACK.

wwd

@Anynomouss
Copy link

Anynomouss commented Mar 1, 2024

I tried sending between IronBelly and GrinGUI by pasting slates. Unfortunately the bug persists for me in Alpha-5, I use the debug version. the information from the debug does not tell me much except that the wallet does see the transaction as awaiting finalization for 0.01 Grin. I do see the path that is shown in the error is strange since it is mixing forward and backward slashes 'Can't load slatepack file at C:\anynomous.grin\main\grin_wallet\default/slatepack/6a.........slatepack'

20240301 15:19:19.340 DEBUG grin_gui::gui::element::wallet::operation::home - Reload stored slatepack at: 6a6c86cf-41cf-4998-9cf4-00bb2804bf49 20240301 15:19:20.001 DEBUG grin_gui::gui::element::wallet::operation::home - Update Wallet Info Summary: false, WalletInfo { last_confirmed_height: 2682168, minimum_confirmations: 2, total: 0, amount_awaiting_finalization: 1000000, amount_awaiting_confirmation: 0, amount_immature: 0, amount_currently_spendable: 0, amount_locked: 0, amount_reverted: 0 }.

I tried to cancel the transaction, that also failed:
Error_canceling

Cancelling the transaction results in an time-out:

20240301 15:30:54.383 ERROR grin_wallet_impls::node_clients::http - Outputs by id failed: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): operation timed out
20240301 15:30:54.384 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node

Tried again later, this time cancelling failed because it cannot find the json

20240301 15:34:19.477 ERROR grin_wallet_impls::node_clients::http - Response { result: Some(Object {"Err": String("NotFound")}), error: None, id: Number(1), jsonrpc: Some("2.0") }
20240301 15:34:19.478 ERROR grin_wallet_impls::node_clients::http - Unable to parse response for get_unspent_outputs: JSON decode error: invalid type: null, expected struct OutputListing
20240301 15:34:19.492 ERROR grin_gui - Failed to Cancel Transaction
20240301 15:34:19.492 ERROR grin_gui - caused by: Client Callback Error: Unable to parse response for get_unspent_outputs: JSON decode error: invalid type: null, expected struct OutputListing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants