PandoraPay / PandoraPay-wallet

Zero Wallet
4 stars 10 forks source link

bug report. if tx fails when broadcasting (old data), the form should go one tab behind #3

Closed xiangwei22 closed 2 years ago

xiangwei22 commented 2 years ago

some users reported a bug. if tx fails when broadcasting (due to old data already), the form should go one tab behind. this way tx becomes valid with fresh data.

ibudisteanu commented 2 years ago

Let me understand your bug report. In case of an transaction propagation error, the wizzard tab index should switch with one tab backward ? Wouldn't the user select to go back and create the tx again ?

xiangwei22 commented 2 years ago

yes. some users don't know how to use the wallet.

ibudisteanu commented 2 years ago

I think the best way would be to do like it an infinite loop. If any change is being detected that will invalidate the transaction, the transaction would have to be reconstructed. This way we don't show any error to the end user and the entire process is automatic. One solution would be to allow the web wallet to subscribe to the entire sender ring and listen to changes.

ibudisteanu commented 2 years ago

I have been thinking more about the issue you posted. I think the best way would be the solution proposed by me. This way it would not show any error message. It is a little bit tricky to implement because it requires to subscribe to all sender ring members.

ibudisteanu commented 2 years ago

Is this commit solving your issue https://github.com/PandoraPay/PandoraPay-wallet/commit/683fdf6f12e78d8b284e0b3f0796c0a29e42a65f ?

xiangwei22 commented 2 years ago

yes !!