-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* base setup for monero * update config for monero dep * try different port * get monero config working and add migration * add dependency config checks for monero * fix version and migrations * fix nginx upload limit and misc * add monero wallet rpc * todo note * Feat/monero (for comparison) (#67) * monero-wallet-rpc service * Fix s6 services dependencies * fixup, tidyup things * Fixup permissions for monero-wallet-rpc * Final touchups I think * Final arrangements#git commit -S -m Final * Final touchups\! (minus the final, final ones\!) * update config to handle multiple altcoin options * fix check * whoops typo --------- Co-authored-by: Lucy Cifferello <[email protected]> * update instructions * fix bug with saving monero node creds to template * Fixup final(?) monerod/monero-wallet-rpc settings * Move disable-rpc-login to .conf file * Fixup monero-wallet-rpc awaiting wallet files * Adjust sleep time to something more reasonable, comments phrasing * rework to read monero rpc creds from monero's config * fixes for wallet rpc and update version * remove redundant flag * fix build * adjust migrations * update instructions * rework wallet rpc config for fresh setups * update to upstream 2.0.3 --------- Co-authored-by: gStart9 <[email protected]> Co-authored-by: gStart9 <[email protected]>
- Loading branch information
1 parent
86b2d94
commit 09ff6d6
Showing
22 changed files
with
496 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
### Global settings ### | ||
network=mainnet | ||
chains={chains} | ||
|
||
### Server settings ### | ||
port=23000 | ||
|
@@ -16,4 +17,12 @@ sqlitefile=sqlite.db | |
#BTC.explorer.url=http://127.0.0.1:24444/ | ||
BTC.explorer.cookiefile=/datadir/nbxplorer/Main/.cookie | ||
#BTC.lightning=/root/.lightning/lightning-rpc | ||
#BTC.lightning=https://apitoken:[email protected]/ | ||
#BTC.lightning=https://apitoken:[email protected]/ | ||
|
||
### Monero settings ### | ||
XMR_daemon_uri=http://monerod.embassy:18089 | ||
XMR_wallet_daemon_uri=http://127.0.0.1:18082 | ||
XMR_wallet_daemon_walletdir=/datadir/btcpayserver/altcoins/monero/wallets | ||
# Only use username and password if Monero daemon's RPC is password protected | ||
XMR_daemon_username={monero_username} | ||
XMR_daemon_password={monero_password} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { types as T, matches } from "../deps.ts"; | ||
|
||
const { shape, string } = matches; | ||
|
||
export const migration_up_2_0_0 = (config: T.Config): T.Config => { | ||
if (Object.keys(config).length === 0) { | ||
// service was never configured | ||
return config; | ||
} | ||
|
||
const altcoinsConfig = shape({ | ||
monero: shape({ | ||
status: string, | ||
}), | ||
}); | ||
|
||
const matchConfigWithAltcoins = shape({ | ||
altcoins: altcoinsConfig, | ||
}); | ||
|
||
if (!matchConfigWithAltcoins.test(config)) { | ||
const newAltcoinsConfig: typeof altcoinsConfig._TYPE = { | ||
monero: { | ||
status: "disabled", | ||
}, | ||
}; | ||
return { | ||
...config, | ||
altcoins: newAltcoinsConfig, | ||
}; | ||
} else { | ||
return config; | ||
} | ||
}; |
Oops, something went wrong.