mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Merge pull request #2940 from knorrium/augment_backend_info
Expose whether Lightning is enabled on the backend
This commit is contained in:
commit
b4bac7ea09
2 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,7 @@ import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import os from 'os';
|
import os from 'os';
|
||||||
import { IBackendInfo } from '../mempool.interfaces';
|
import { IBackendInfo } from '../mempool.interfaces';
|
||||||
|
import config from '../config';
|
||||||
|
|
||||||
class BackendInfo {
|
class BackendInfo {
|
||||||
private backendInfo: IBackendInfo;
|
private backendInfo: IBackendInfo;
|
||||||
|
@ -22,7 +23,8 @@ class BackendInfo {
|
||||||
this.backendInfo = {
|
this.backendInfo = {
|
||||||
hostname: os.hostname(),
|
hostname: os.hostname(),
|
||||||
version: versionInfo.version,
|
version: versionInfo.version,
|
||||||
gitCommit: versionInfo.gitCommit
|
gitCommit: versionInfo.gitCommit,
|
||||||
|
lightning: config.LIGHTNING.ENABLED
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -274,6 +274,7 @@ export interface IBackendInfo {
|
||||||
hostname: string;
|
hostname: string;
|
||||||
gitCommit: string;
|
gitCommit: string;
|
||||||
version: string;
|
version: string;
|
||||||
|
lightning: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IDifficultyAdjustment {
|
export interface IDifficultyAdjustment {
|
||||||
|
@ -337,4 +338,4 @@ export interface IOldestNodes {
|
||||||
updatedAt?: number,
|
updatedAt?: number,
|
||||||
city?: any,
|
city?: any,
|
||||||
country?: any,
|
country?: any,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue