MyHush / SilentDragonAndroid

Android companion app for SilentDragon
https://www.myhush.org
GNU General Public License v3.0
5 stars 12 forks source link

Don't render explorer link if no txid exists yet #110

Open leto opened 3 years ago

leto commented 3 years ago

If one clicks on an "Unconfirmed" transaction, all it's details appear to view, as well as an explorer link.

If the GUI has not yet received an opid, we 100% know there is not yet a txid submitted to the local mempool and 100% no chance the txid can be looked up. Users clicking on it will just be confused. No explorer link should be rendered if no txid exists yet.

It could be the case that we have received an opid back but no txid yet. That is another edge case.

Finally, if we have a success response from z_getoperationstatus, we know we can render the explorer link, which is what we do unconditionally currently.