ping-pub / explorer

A light explorer for Cosmos-based Blockchains.
https://ping.pub
GNU General Public License v2.0
321 stars 1.01k forks source link

On software upgrade proposal page, time left till upgrade is wrong #553

Open freak12techno opened 6 months ago

freak12techno commented 6 months ago

Example: on Jackal latest chain upgrade proposal: https://ping.pub/jackal/gov/12

изображение

It says "in 7 hours" next to the "Upgrade plan", which is wrong, as it's more than 1 day. It shows the correct time left till the upgrade below the "Upgrade plan" though.

Guess this line https://github.com/ping-pub/explorer/blob/master/src/modules/%5Bchain%5D/gov/%5Bproposal_id%5D.vue#L375 should be updated to use the upgrade time itself rather than the voting end time.

liangping commented 6 months ago

it highly depends on blocktimes. here might used the 6s, that's why it's not accurate.

freak12techno commented 6 months ago

@liangping yes, I mean it displays the correct data under the "Upgrade plan" block (1 days 13 hours 56 minutes 10 seconds), but wrong estimate (in 7 hours) on the right from "Upgrade plan" block