remove hardcoded junkola p2

This commit is contained in:
jwinterm
2026-01-28 17:33:51 -05:00
parent 3aeb4fc2f1
commit c6425a6a47
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -85,8 +85,8 @@ class DatabaseManager {
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
database: process.env.DB_NAME || 'wownerogue',
user: process.env.DB_USER || 'jw',
password: process.env.DB_PASSWORD || 'jw',
user: process.env.DB_USER || 'wownerogue',
password: process.env.DB_PASSWORD,
max: 20, // Maximum number of clients in the pool
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 2000,
+1 -1
View File
@@ -26,7 +26,7 @@
"simulated_blocks": false
}
},
"author": "jw",
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^1.9.0",
+2 -2
View File
@@ -9,8 +9,8 @@ const CONSOLE_LOGGING = true; // Temporarily enable for debugging
class RPCService {
constructor() {
this.primaryEndpoint = process.env.PRIMARY_RPC_ENDPOINT || 'http://jw-nodes:18081';
this.fallbackEndpoint = process.env.FALLBACK_RPC_ENDPOINT || 'http://jw-nodes:18081';
this.primaryEndpoint = process.env.PRIMARY_RPC_ENDPOINT || 'http://127.0.0.1:34568';
this.fallbackEndpoint = process.env.FALLBACK_RPC_ENDPOINT || 'http://127.0.0.1:34568';
this.currentEndpoint = this.primaryEndpoint;
this.failoverActive = false;
this.lastBlockHeight = 0;
+2 -2
View File
@@ -2,8 +2,8 @@ require('dotenv').config({ path: '../.env' });
const { Client } = require('pg');
const DB_CONFIG = {
user: process.env.DB_USER || 'jw',
password: process.env.DB_PASSWORD || 'jw',
user: process.env.DB_USER || 'wownerogue',
password: process.env.DB_PASSWORD,
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
database: process.env.DB_NAME || 'wownerogue'