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

silent failure to vote or pose question on insufficient funds #10

Closed
dckc opened this issue Nov 3, 2022 · 3 comments · Fixed by #11
Closed

silent failure to vote or pose question on insufficient funds #10

dckc opened this issue Nov 3, 2022 · 3 comments · Fixed by #11
Labels
bug Something isn't working ui

Comments

@dckc
Copy link
Member

dckc commented Nov 3, 2022

EC members struggled to vote today. Signing with keplr + ledger seemed to go ok, but then their proposal would fail to appear or a question would fail for lack of quorum.

With seconds to spare, we diagnosed the problem as insufficient funds using the browser console:

sign spend action { ... }
SES_UNHANDLED_REJECTION: (Error#3)
Error#3: Broadcasting transaction failed with code 20 (codespace: sdk). Log: controller refused message admission: 150000uist is smaller than 200000uist: insufficient funds: mempool is full
  at new BroadcastTxError
  at Dt.broadcastTx
  at async Object.submitSpendAction

That is: the 0.20IST batch fee threshold came up, but the voter had only 0.15IST in their account. When supplied with funds, the vote went thru and the board02152 proposal passed. (whew!)

Diagnosing this was complicated by

and by the fact that walletStatus data can be pruned:

Expected behavior

insufficient funds error should be prominently displayed.

cc @rowgraus @Chris-Hibbert @warner @turadg @samsiegart

@dckc dckc added bug Something isn't working ui labels Nov 3, 2022
@turadg
Copy link
Member

turadg commented Nov 3, 2022

insufficient funds error should be prominently displayed.

This ticket is on econ-gov, but the problem seems more general. Should such an error be displayed in Wallet UI?

@dckc
Copy link
Member Author

dckc commented Nov 3, 2022

The rejection seems to get dropped at...

walletUtils.sendOffer(offer);

I don't believe the wallet UI is involved (though I suppose it could have a similar bug)

@dckc
Copy link
Member Author

dckc commented Nov 3, 2022

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

Successfully merging a pull request may close this issue.

2 participants