Cleanup block before sending response in /blocks-bulk API

Remove block_time
Index summaries on the fly
This commit is contained in:
nymkappa
2023-02-24 11:33:36 +09:00
parent 086ee68b52
commit a0488dba76
2 changed files with 55 additions and 20 deletions

View File

@@ -23,7 +23,7 @@ class BlocksRepository {
pool_id, fees, fee_span, median_fee,
reward, version, bits, nonce,
merkle_root, previous_block_hash, avg_fee, avg_fee_rate,
median_timestamp, block_time, header, coinbase_address,
median_timestamp, header, coinbase_address,
coinbase_signature, utxoset_size, utxoset_change, avg_tx_size,
total_inputs, total_outputs, total_input_amt, total_output_amt,
fee_percentiles, segwit_total_txs, segwit_total_size, segwit_total_weight,
@@ -34,7 +34,7 @@ class BlocksRepository {
?, ?, ?, ?,
?, ?, ?, ?,
?, ?, ?, ?,
FROM_UNIXTIME(?), ?, ?, ?,
FROM_UNIXTIME(?), ?, ?,
?, ?, ?, ?,
?, ?, ?, ?,
?, ?, ?, ?,
@@ -63,7 +63,6 @@ class BlocksRepository {
block.extras.avgFee,
block.extras.avgFeeRate,
block.extras.medianTimestamp,
block.extras.blockTime,
block.extras.header,
block.extras.coinbaseAddress,
block.extras.coinbaseSignature,