Index asciiScriptSig and display it in /mining/blocks

This commit is contained in:
nymkappa
2022-03-15 23:33:51 +01:00
parent 9c60c7ba79
commit 94dbec46cf
8 changed files with 59 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ class BlocksRepository {
block.size,
block.weight,
block.tx_count,
block.extras.coinbaseRaw,
connection.escape(block.extras.coinbaseRaw),
block.difficulty,
block.extras.pool?.id, // Should always be set to something
block.extras.totalFees,
@@ -56,7 +56,7 @@ class BlocksRepository {
logger.debug(`$saveBlockInDatabase() - Block ${block.height} has already been indexed, ignoring`);
} else {
connection.release();
logger.err('$saveBlockInDatabase() error' + (e instanceof Error ? e.message : e));
logger.err('$saveBlockInDatabase() error: ' + (e instanceof Error ? e.message : e));
throw e;
}
}