calculate & index cpfp packages

This commit is contained in:
Mononaut
2022-11-27 13:46:23 +09:00
parent 421438cb7c
commit bc076a850e
13 changed files with 295 additions and 21 deletions

View File

@@ -187,6 +187,13 @@ export class Common {
);
}
static cpfpIndexingEnabled(): boolean {
return (
Common.indexingEnabled() &&
config.MEMPOOL.TRANSACTION_INDEXING === true
);
}
static setDateMidnight(date: Date): void {
date.setUTCHours(0);
date.setUTCMinutes(0);