Support an authenticated Monero RPC

Closes https://github.com/serai-dex/serai/issues/143.
This commit is contained in:
Luke Parker
2022-11-14 23:24:35 -05:00
parent b05a223b69
commit 6f9cf510da
5 changed files with 93 additions and 12 deletions

View File

@@ -70,7 +70,7 @@ pub struct Monero {
impl Monero {
pub async fn new(url: String) -> Monero {
Monero { rpc: Rpc::new(url), view: additional_key::<Monero>(0).0 }
Monero { rpc: Rpc::new(url).unwrap(), view: additional_key::<Monero>(0).0 }
}
fn scanner(&self, spend: dfg::EdwardsPoint) -> Scanner {