feat: monero files and config feat: monero interface feat: monero rpc digest request feat: add monero to wallet wizard splash fix: tarball unzipping fix: monero files fix: monero zipped folder path fix: undefined variable chore: xmr stagenet fix: prune-blockchain flag fix: monero wallet arguments chore: rpc-bind-port on monero wallet chore: monero wallet directory fix: fetch digest request fix: monero authentication fix: monero address creation fix: monero config port fix: wallet creation fix: wallet rpc daemon login fix: get monero funding fix: unauthorized issue with multiple requests on Promise.all fix: generate funding addresses fix: destination address balance for XMR cashout fix: transaction creation feat: transaction recommended mixin and ring size fix: monero wallet error handling fix: error handling fix: monero wallet error feat: guide to add new cryptos chore: small code shortcuts fix: crypto implementation guide chore: add XMR to exchange files
30 lines
964 B
JavaScript
30 lines
964 B
JavaScript
const path = require('path')
|
|
|
|
const { utils } = require('lamassu-coins')
|
|
|
|
const common = require('./common')
|
|
|
|
module.exports = {setup}
|
|
|
|
const coinRec = utils.getCryptoCurrency('XMR')
|
|
|
|
function setup (dataDir) {
|
|
common.firewall([coinRec.defaultPort])
|
|
const auth = `lamassuserver:${common.randomPass()}`
|
|
const config = buildConfig(auth)
|
|
common.writeFile(path.resolve(dataDir, coinRec.configFile), config)
|
|
const cmd = `/usr/local/bin/${coinRec.daemon} --data-dir ${dataDir} --config-file ${dataDir}/${coinRec.configFile}`
|
|
const walletCmd = `/usr/local/bin/${coinRec.wallet} --stagenet --rpc-login ${auth} --daemon-host 127.0.0.1 --daemon-port 38081 --trusted-daemon --daemon-login ${auth} --rpc-bind-port 38083 --wallet-dir ${dataDir}/wallets`
|
|
common.writeSupervisorConfig(coinRec, cmd, walletCmd)
|
|
}
|
|
|
|
function buildConfig (auth) {
|
|
return `rpc-login=${auth}
|
|
stagenet=1
|
|
restricted-rpc=1
|
|
db-sync-mode=safe
|
|
out-peers=20
|
|
in-peers=20
|
|
prune-blockchain=1
|
|
`
|
|
}
|