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] Completed transactions are shown as "Pending Accept" #2223

Open
Muffexx opened this issue Nov 7, 2023 · 9 comments
Open

[Bug] Completed transactions are shown as "Pending Accept" #2223

Muffexx opened this issue Nov 7, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Muffexx
Copy link

Muffexx commented Nov 7, 2023

What happened?

Hey.

I have several offers that are shown as "Pending Accept" although they have already been completed. Resyncing the wallet does not mitigate this issue.

Regards

Version

2.1.1

What platform are you using?

Windows

What ui mode are you using?

GUI

Relevant log output or stacktrace

No response

@Muffexx Muffexx added the bug Something isn't working label Nov 7, 2023
@paninaro
Copy link
Contributor

paninaro commented Nov 8, 2023

Can you try running chia wallet get_offers from the command line and see if the offers show as "PENDING_ACCEPT"?

Anything interesting to share about the offers and how they were created? Are these NFT offers, or CAT/XCH offers? NFT offers are a bit different because the coin isn't locked-up by the offer code, allowing you to create multiple offers for the same NFT(s). Token offers (CAT/XCH) will lock up the offered coins.

@paninaro paninaro self-assigned this Nov 8, 2023
@Muffexx
Copy link
Author

Muffexx commented Nov 8, 2023

The offer was created using the GUI. XCH were offered and USDSC were requested.

Running chia wallet get_offers produces the following output:

Record with id: *...*
---------------
Created at: 2023-10-*...*
Confirmed at: Not confirmed
Accepted at: N/A
Status: PENDING_ACCEPT

@Quexington
Copy link

Can you check your logs for the string "Trade for this offer already exists"?

@Muffexx
Copy link
Author

Muffexx commented Nov 9, 2023

I took a look inside the debug.log file. There was no occurence of "Trade for this offer already exists".

@Quexington
Copy link

Any other errors in there outside of what you would normally see?

@Muffexx
Copy link
Author

Muffexx commented Nov 10, 2023

There are several errors and warnings, but I don't know which might relate to this issue. This one occurs very often:

2023-11-07T*...* wallet chia.wallet.wallet_state_manager: ERROR Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: *...*, puzzle_hash: *...*, amount: *..*}, spent_height: Some(*...*), created_height: Some(*...*) }, error: list index out of range

This does also occur (at least) four times:

2023-11-08T*...* wallet chia.wallet.wallet_node : WARNING SpendBundle has been rejected by the FullNode. {'error': 'DOUBLE_SPEND', 'status': 3, 'txid': '*...*'}

*...* -> removed values

@Muffexx
Copy link
Author

Muffexx commented Nov 10, 2023

These stale offers also can't be removed. Trying to "cancel" these offers results in the "Pending Cancel" state.

@wjblanke
Copy link
Contributor

Can you give us the stack trace from the log where this happened: list index out of range

That seems not normal to me. But I think the exception is being thrown pretty deep in a function call

@Muffexx
Copy link
Author

Muffexx commented Nov 16, 2023

This error was logged 216 times within the past two weeks.

foo = 4451004 OR 4477586
created_height: Some(foo) }, error: list index out of range Traceback (most recent call last): File "chia\wallet\wallet_state_manager.py", line 1453, in _add_coin_states File "chia\wallet\trade_manager.py", line 167, in coins_of_interest_farmed IndexError: list index out of range

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