Merge branch 'master' into simon/remove-included-in-block
This commit is contained in:
commit
df578f64ee
@ -600,9 +600,11 @@ class Blocks {
|
|||||||
* Index a block if it's missing from the database. Returns the block after indexing
|
* Index a block if it's missing from the database. Returns the block after indexing
|
||||||
*/
|
*/
|
||||||
public async $indexBlock(height: number): Promise<BlockExtended> {
|
public async $indexBlock(height: number): Promise<BlockExtended> {
|
||||||
const dbBlock = await blocksRepository.$getBlockByHeight(height);
|
if (Common.indexingEnabled()) {
|
||||||
if (dbBlock != null) {
|
const dbBlock = await blocksRepository.$getBlockByHeight(height);
|
||||||
return prepareBlock(dbBlock);
|
if (dbBlock !== null) {
|
||||||
|
return prepareBlock(dbBlock);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const blockHash = await bitcoinApi.$getBlockHash(height);
|
const blockHash = await bitcoinApi.$getBlockHash(height);
|
||||||
|
@ -123,8 +123,10 @@
|
|||||||
(pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false">
|
(pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false">
|
||||||
</ngb-pagination>
|
</ngb-pagination>
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<ng-template [ngIf]="!widget">
|
||||||
<br>
|
<div class="clearfix"></div>
|
||||||
|
<br>
|
||||||
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -103,6 +103,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
</div>
|
@ -106,7 +106,7 @@ build_backend()
|
|||||||
-e "s!__MEMPOOL_SIGNET_LIGHTNING_PASS__!${MEMPOOL_SIGNET_LIGHTNING_PASS}!" \
|
-e "s!__MEMPOOL_SIGNET_LIGHTNING_PASS__!${MEMPOOL_SIGNET_LIGHTNING_PASS}!" \
|
||||||
-e "s!__MEMPOOL_LIQUID_USER__!${MEMPOOL_LIQUID_USER}!" \
|
-e "s!__MEMPOOL_LIQUID_USER__!${MEMPOOL_LIQUID_USER}!" \
|
||||||
-e "s!__MEMPOOL_LIQUID_PASS__!${MEMPOOL_LIQUID_PASS}!" \
|
-e "s!__MEMPOOL_LIQUID_PASS__!${MEMPOOL_LIQUID_PASS}!" \
|
||||||
-e "s!__MEMPOOL_LIQUIDTESTNET_USER__!${LIQUIDTESTNET_USER}!" \
|
-e "s!__MEMPOOL_LIQUIDTESTNET_USER__!${MEMPOOL_LIQUIDTESTNET_USER}!" \
|
||||||
-e "s!__MEMPOOL_LIQUIDTESTNET_PASS__!${MEMPOOL_LIQUIDTESTNET_PASS}!" \
|
-e "s!__MEMPOOL_LIQUIDTESTNET_PASS__!${MEMPOOL_LIQUIDTESTNET_PASS}!" \
|
||||||
-e "s!__MEMPOOL_BISQ_USER__!${MEMPOOL_BISQ_USER}!" \
|
-e "s!__MEMPOOL_BISQ_USER__!${MEMPOOL_BISQ_USER}!" \
|
||||||
-e "s!__MEMPOOL_BISQ_PASS__!${MEMPOOL_BISQ_PASS}!" \
|
-e "s!__MEMPOOL_BISQ_PASS__!${MEMPOOL_BISQ_PASS}!" \
|
||||||
|
@ -45,6 +45,6 @@
|
|||||||
"PORT": 3306,
|
"PORT": 3306,
|
||||||
"USERNAME": "__MEMPOOL_MAINNET_LIGHTNING_USER__",
|
"USERNAME": "__MEMPOOL_MAINNET_LIGHTNING_USER__",
|
||||||
"PASSWORD": "__MEMPOOL_MAINNET_LIGHTNING_PASS__",
|
"PASSWORD": "__MEMPOOL_MAINNET_LIGHTNING_PASS__",
|
||||||
"PASSWORD": "mempool_mainnet_lightning"
|
"DATABASE": "mempool_mainnet_lightning"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user