diff --git a/backend/src/api/mining/mining.ts b/backend/src/api/mining/mining.ts index 386f22c17..d3fadbcce 100644 --- a/backend/src/api/mining/mining.ts +++ b/backend/src/api/mining/mining.ts @@ -218,7 +218,7 @@ class Mining { const now = new Date(); // Run only if: - // * this.lastWeeklyHashrateIndexingDate is set to null (node backend restart, reorg) + // * this.lastWeeklyHashrateIndexingDate is set to null (node backend restart, reorg, or re-indexing was requested after mining pools update) // * we started a new week (around Monday midnight) const runIndexing = this.lastWeeklyHashrateIndexingDate === null || now.getUTCDay() === 1 && this.lastWeeklyHashrateIndexingDate !== now.getUTCDate(); @@ -334,6 +334,7 @@ class Mining { logger.notice(`hashrates will now be re-indexed`); await database.query(`TRUNCATE hashrates`); this.lastHashrateIndexingDate = 0; + this.lastWeeklyHashrateIndexingDate = null; this.reindexHashrateRequested = false; } diff --git a/contributors/most-improve123.txt b/contributors/most-improve123.txt new file mode 100644 index 000000000..1fa329369 --- /dev/null +++ b/contributors/most-improve123.txt @@ -0,0 +1,3 @@ +I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of January 25, 2022. + +Signed: most-improve123 diff --git a/frontend/src/app/components/blockchain/blockchain.component.scss b/frontend/src/app/components/blockchain/blockchain.component.scss index 32225598a..701e44673 100644 --- a/frontend/src/app/components/blockchain/blockchain.component.scss +++ b/frontend/src/app/components/blockchain/blockchain.component.scss @@ -113,4 +113,12 @@ .blockchain-wrapper .blocks-wrapper { direction: rtl; } -} \ No newline at end of file +} +.blockchain-wrapper { + cursor: grab; +} + +.blockchain-wrapper:active { + cursor: grabbing; +} + diff --git a/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html b/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html index 11fb9227c..9f12b9c99 100644 --- a/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html +++ b/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html @@ -10,7 +10,7 @@ - + @@ -24,7 +24,7 @@ - + diff --git a/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.ts b/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.ts index 2e7ced4f7..0de18e9c7 100644 --- a/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.ts +++ b/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { Observable, share } from 'rxjs'; -import { INodesRanking } from '@interfaces/node-api.interface'; +import { INodesRanking, INodesStatistics } from '@interfaces/node-api.interface'; import { SeoService } from '@app/services/seo.service'; import { LightningApiService } from '@app/lightning/lightning-api.service'; @@ -13,6 +13,7 @@ import { LightningApiService } from '@app/lightning/lightning-api.service'; }) export class NodesRankingsDashboard implements OnInit { nodesRanking$: Observable; + statistics$: Observable; constructor( private lightningApiService: LightningApiService, @@ -23,5 +24,6 @@ export class NodesRankingsDashboard implements OnInit { this.seoService.setTitle($localize`Top lightning nodes`); this.seoService.setDescription($localize`:@@meta.description.lightning.rankings-dashboard:See the top Lightning network nodes ranked by liquidity, connectivity, and age.`); this.nodesRanking$ = this.lightningApiService.getNodesRanking$().pipe(share()); + this.statistics$ = this.lightningApiService.getLatestStatistics$().pipe(share()); } }