[indexing] save missing fee_percentiles and median_fee_amt when indexing on the fly

This commit is contained in:
nymkappa
2023-04-06 11:55:17 +09:00
parent b23f14b798
commit 6016db2533
2 changed files with 28 additions and 0 deletions

View File

@@ -857,6 +857,7 @@ class Blocks {
}
if (cleanBlock.fee_amt_percentiles !== null) {
cleanBlock.median_fee_amt = cleanBlock.fee_amt_percentiles[3];
await blocksRepository.$updateFeeAmounts(cleanBlock.hash, cleanBlock.fee_amt_percentiles, cleanBlock.median_fee_amt);
}
}