diff --git a/config.yaml.example b/config.yaml.example index 08fa3e6..0b72924 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -28,7 +28,7 @@ blockchains: chain_reorg_max_depth: 0 # # Parameters for local Monero node # - chain_id: monero:regtest -# daemon_url: 'http://127.0.0.1:58081' +# node_url: 'http://127.0.0.1:58081' # wallet_url: 'http://127.0.0.1:58083' # wallet_name: test # wallet_password: test diff --git a/contrib/mitra_config.yaml b/contrib/mitra_config.yaml index 063f244..7f21438 100644 --- a/contrib/mitra_config.yaml +++ b/contrib/mitra_config.yaml @@ -46,7 +46,7 @@ registrations_open: false # chain_sync_step: 1000 # chain_reorg_max_depth: 10 # - chain_id: monero:mainnet -# daemon_url: 'http://opennode.xmr-tw.org:18089' +# node_url: 'http://opennode.xmr-tw.org:18089' # wallet_url: 'http://127.0.0.1:18083' # wallet_name: mitra # wallet_password: mitra diff --git a/src/config/blockchain.rs b/src/config/blockchain.rs index fb88a97..a40820d 100644 --- a/src/config/blockchain.rs +++ b/src/config/blockchain.rs @@ -53,7 +53,8 @@ impl EthereumConfig { #[derive(Clone, Deserialize)] pub struct MoneroConfig { pub chain_id: ChainId, - pub daemon_url: String, + #[serde(alias = "daemon_url")] + pub node_url: String, pub wallet_url: String, pub wallet_name: String, pub wallet_password: Option,