Generate mining basic pool ranking (sorted by block found) for a specified timeframe

This commit is contained in:
nymkappa
2022-01-06 19:59:33 +09:00
parent 4646cc6df3
commit 5ca98af7d1
16 changed files with 366 additions and 48 deletions

View File

@@ -1,11 +1,23 @@
import { RowDataPacket } from 'mysql2';
import { IEsploraApi } from './api/bitcoin/esplora-api.interface';
export interface PoolTag extends RowDataPacket {
export interface PoolTag {
id: number | null, // mysql row id
name: string,
link: string,
regexes: string,
addresses: string,
regexes: string, // JSON array
addresses: string, // JSON array
}
export interface PoolInfo {
poolId: number, // mysql row id
name: string,
link: string,
blockCount: number,
}
export interface PoolStats extends PoolInfo {
rank: number,
emptyBlocks: number,
}
export interface MempoolBlock {