Skip to content

Commit

Permalink
Update config.ts
Browse files Browse the repository at this point in the history
Fix borked wallet with last change
  • Loading branch information
aivve authored Feb 8, 2024
1 parent a20ef65 commit 3b4339d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@
let myGlobal : any = typeof window !== 'undefined' ? window : self;
myGlobal.config = {
debug: false,
nodeList: [
nodeList: [
"https://karbo.club:32448/",
"https://node.karbo.org:32448/",
"https://node.karbo.io:32448/"
],
nodeUrl: "",
apiUrl: [
"https://node.karbo.io:32448/"
],
nodeUrl: "https://node.karbo.org:32448/",
mainnetExplorerUrl: "http://explorer.karbowanec.com/",
mainnetExplorerUrlHash: "http://explorer.karbowanec.com/?hash={ID}#blockchain_transaction",
mainnetExplorerUrlBlock: "http://explorer.karbowanec.com/?hash={ID}#blockchain_block",
testnetExplorerUrl: "http://testnet.karbo.org/",
testnetExplorerUrlHash: "http://testnet.karbo.org/?hash={ID}#blockchain_transaction",
testnetExplorerUrlBlock: "http://testnet.karbo.org/?hash={ID}#blockchain_block",
testnet: false,
coinUnitPlaces: 12,
coinDisplayUnitPlaces: 2,
coinUnitPlaces: 12,
coinDisplayUnitPlaces: 2,
txMinConfirms: 5,
txCoinbaseMinConfirms: 10,
addressPrefix: 111,
Expand All @@ -37,6 +40,9 @@ myGlobal.config = {
maxBlockNumber: 500000000,
};

let randInt = Math.floor(Math.random() * Math.floor(config.nodeList.length));
config.nodeUrl = config.nodeList[randInt];

function logDebugMsg(...data: any[]) {
if (config.debug) {
if (data.length > 1) {
Expand Down

0 comments on commit 3b4339d

Please sign in to comment.