mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-22 15:19:06 +00:00
Correct processor's handling of the new Monero RPC code
This commit is contained in:
parent
adfbde6e24
commit
0c9c1aeff1
1 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ use monero_serai::{
|
||||||
Protocol,
|
Protocol,
|
||||||
transaction::Transaction,
|
transaction::Transaction,
|
||||||
block::Block as MBlock,
|
block::Block as MBlock,
|
||||||
rpc::{RpcError, Rpc},
|
rpc::{RpcError, HttpRpc, Rpc},
|
||||||
wallet::{
|
wallet::{
|
||||||
ViewPair, Scanner,
|
ViewPair, Scanner,
|
||||||
address::{Network, SubaddressIndex, AddressSpec},
|
address::{Network, SubaddressIndex, AddressSpec},
|
||||||
|
@ -158,7 +158,7 @@ impl BlockTrait<Monero> for Block {
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Monero {
|
pub struct Monero {
|
||||||
rpc: Rpc,
|
rpc: Rpc<HttpRpc>,
|
||||||
}
|
}
|
||||||
// Shim required for testing/debugging purposes due to generic arguments also necessitating trait
|
// Shim required for testing/debugging purposes due to generic arguments also necessitating trait
|
||||||
// bounds
|
// bounds
|
||||||
|
@ -171,7 +171,7 @@ impl Eq for Monero {}
|
||||||
|
|
||||||
impl Monero {
|
impl Monero {
|
||||||
pub fn new(url: String) -> Monero {
|
pub fn new(url: String) -> Monero {
|
||||||
Monero { rpc: Rpc::new(url).unwrap() }
|
Monero { rpc: HttpRpc::new(url).unwrap() }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn view_pair(spend: EdwardsPoint) -> ViewPair {
|
fn view_pair(spend: EdwardsPoint) -> ViewPair {
|
||||||
|
|
Loading…
Reference in a new issue