Skip to content

Commit

Permalink
Import getBestNode, fix node uri
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Feb 19, 2024
1 parent 9f83d4c commit 69e775c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var huginSyncer = require('./syncers/huginSyncer')

// utils
const { getTimestamp, sleep } = require('./utils/time')
const { openWallet, optimizeMessages, saveWallet } = require('./utils/wallet')
const { openWallet, optimizeMessages, saveWallet, getBestNode } = require('./utils/wallet')

// configs
const { swaggerOptions, swaggerCustomOptions } = require('./configs/swagger')
Expand Down
1 change: 1 addition & 0 deletions utils/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ async function optimizeMessages(wallet, nbrOfTxs, fee = 10000, attempt = 0) {
}

const fetchNodes = async () => {
const uri = 'https://raw.githubusercontent.com/kryptokrona/kryptokrona-public-nodes/main/nodes.json'
try {
const response = await fetch(uri)
const result = await response.json()
Expand Down

0 comments on commit 69e775c

Please sign in to comment.