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

@@ -11,7 +11,7 @@ use monero_serai::{
};
pub async fn rpc() -> Rpc {
let rpc = Rpc::new("http://127.0.0.1:18081".to_string());
let rpc = Rpc::new("http://127.0.0.1:18081".to_string()).unwrap();
// Only run once
if rpc.get_height().await.unwrap() != 1 {