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

Transaction status pending forever if fee larger than balance #364

Open
hadacnot opened this issue Jun 1, 2019 · 1 comment
Open

Transaction status pending forever if fee larger than balance #364

hadacnot opened this issue Jun 1, 2019 · 1 comment

Comments

@hadacnot
Copy link

hadacnot commented Jun 1, 2019

I created an empty wallet. The balance is 0.
Then I created a message, using 0.25 quanta as a fee (which I do not have) .
The transaction is being relayed to the network, but stays in pending status forever, even if the raw details say 'null'.
Shouldn't it be rejected then?

Moreover, what happens to the signature? Is it relayed to the network, and so unsafe?

If, after some minutes, I switch to the send/receive tab, it still says OTS index 0, so a user could attempt to recreate a message and reuse a private key I guess.

It's true that it happens with 0 balance (and I am not willing to test with balance>0) but, if confirmed, it seems to me a critical bug.

@surg0r surg0r pinned this issue Jul 11, 2019
@surg0r
Copy link
Member

surg0r commented Jul 11, 2019

The tx should not be relayed. It is possible to relay two transactions and for them to be ordered backwards such that the first is no longer valid in terms of spendable state. We have discussed his to mitigate this dropped its previously at length (I'll dig up the issue) - but this should not be possible through the webwallet or Ledger Live.

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

2 participants