Skip to content

Commit

Permalink
add rpc password & user when importing wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
mayrmartin authored and Stezido committed Aug 11, 2022
1 parent 1a4123b commit b2a8b81
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions blockchain/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const {startBeta, registerNodeAtAlpha} = require("./connectToChain");
const {startMultichainDaemon, configureChain} = require("./createChain");
const {isMultichainReady} = require("./readiness");

const { importWallet, listAvailableWallets } = require("./wallet-backup");

const { importWallet, listAvailableWallets } = require("./wallet-backup");
const {importWallet, listAvailableWallets} = require("./wallet-backup");

const {
moveBackup,
Expand Down Expand Up @@ -375,15 +373,13 @@ rpcport=${MULTICHAIN_RPC_PORT}
rpcuser=${MULTICHAIN_RPC_USER}
rpcpassword=${MULTICHAIN_RPC_PASSWORD}
rpcallowip=${RPC_ALLOW_IP}
walletnotifynew=${__dirname}/multichain-feed/multichain-feed %j
`);
walletnotifynew=${__dirname}/multichain-feed/multichain-feed %j`);
} else {
shell.exec(`cat <<EOF >"${multichainDir}/multichain.conf"
rpcport=${MULTICHAIN_RPC_PORT}
rpcuser=${MULTICHAIN_RPC_USER}
rpcpassword=${MULTICHAIN_RPC_PASSWORD}
rpcallowip=${RPC_ALLOW_IP}
`);
rpcallowip=${RPC_ALLOW_IP}`);
}
await spawnProcess(() =>
startMultichainDaemon(
Expand Down

0 comments on commit b2a8b81

Please sign in to comment.