Browse Source

blockchain timeout

readme
Mayank 4 years ago
parent
commit
0c219e4e13
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 15
      src/components/Blockchain.vue

15
src/components/Blockchain.vue

@ -139,8 +139,11 @@ export default {
return;
}
this.pollInProgress = true;
await this.$store.dispatch("bitcoin/getBlocks");
this.pollInProgress = false;
//TODO: remove this timeout added so bitcoin can get fetch status first
setTimeout(async () => {
await this.$store.dispatch("bitcoin/getBlocks");
this.pollInProgress = false;
}, 1000);
},
poller(syncPercent) {
window.clearInterval(this.polling);
@ -250,6 +253,14 @@ export default {
height: 4rem;
width: 4rem;
svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
}
.blockchain-block-icon-chainlink {
position: absolute;
height: 4rem;

Loading…
Cancel
Save