Merge branch 'master' into nymkappa/feature/align-dashboards

This commit is contained in:
softsimon
2023-03-01 06:31:25 +04:00
committed by GitHub
43 changed files with 5527 additions and 2485 deletions

View File

@@ -642,6 +642,11 @@ class NodesApi {
*/
public async $saveNode(node: ILightningApi.Node): Promise<void> {
try {
// https://github.com/mempool/mempool/issues/3006
if ((node.last_update ?? 0) < 1514736061) { // January 1st 2018
node.last_update = null;
}
const sockets = (node.addresses?.map(a => a.addr).join(',')) ?? '';
const query = `INSERT INTO nodes(
public_key,