hubiinetwork / hubii-core

The home of hubii core (aka Omphalos UI), the reference desktop app for nahmii
GNU General Public License v3.0
21 stars 4 forks source link

Feature/1.1.0 beta 4 #763

Closed katat closed 5 years ago

katat commented 5 years ago

So we will need two types of sync checkings. The one at the front end to check if the transaction is either mining or mined or failed. The other one is to check with the backend and the contracts to see if the off-chain balance is in sync or not.

At the moment, the time block is a simple form of checking for the front end side, as it is having a constant time for blocking. The optimal alternative would be persisting the transaction hash in localstorage, so UI can check the status of the new settlement transaction even after restarted hubii core.

katat commented 5 years ago

Updated to deprecate the time block, and check the mining status of the settlement transactions instead. The payment blocking now should be more reliable based on the checkings against both the statuses of transaction mining and the off-chain balance synchronisation.