get height from database
This commit is contained in:
parent
2ca84df5ca
commit
95219ba35d
1 changed files with 10 additions and 1 deletions
|
|
@ -1857,7 +1857,16 @@ async function waitForDb() {
|
|||
if (!state.now_delete_offers) {
|
||||
try {
|
||||
const response = await get_info();
|
||||
setBlockInfo(response.data.result);
|
||||
|
||||
const databaseHeight = await Block.max('height') || 0;
|
||||
|
||||
console.log('databaseHeight', databaseHeight)
|
||||
|
||||
|
||||
setBlockInfo({
|
||||
...response.data.result,
|
||||
height: databaseHeight
|
||||
});
|
||||
|
||||
const txs = await Transaction.findAll({
|
||||
where: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue