Compare commits

...

4 commits

Author SHA1 Message Date
hinto.janai
5fd4718103
fmt 2024-10-28 18:02:08 -04:00
hinto-janai
71579a6c2a
Update binaries/cuprated/src/rpc/request/blockchain_manager.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
2024-10-28 18:00:58 -04:00
hinto-janai
59609a88ce
Update binaries/cuprated/src/rpc/request/blockchain_context.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
2024-10-28 18:00:48 -04:00
hinto-janai
63fcc3f71c
Update binaries/cuprated/src/rpc/request/address_book.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
2024-10-28 18:00:36 -04:00
3 changed files with 5 additions and 5 deletions

View file

@ -3,8 +3,6 @@
use std::convert::Infallible; use std::convert::Infallible;
use anyhow::{anyhow, Error}; use anyhow::{anyhow, Error};
use cuprate_pruning::PruningSeed;
use cuprate_rpc_types::misc::{ConnectionInfo, Span};
use tower::ServiceExt; use tower::ServiceExt;
use cuprate_helper::cast::usize_to_u64; use cuprate_helper::cast::usize_to_u64;
@ -13,6 +11,8 @@ use cuprate_p2p_core::{
types::BanState, types::BanState,
AddressBook, NetworkZone, AddressBook, NetworkZone,
}; };
use cuprate_pruning::PruningSeed;
use cuprate_rpc_types::misc::{ConnectionInfo, Span};
use crate::rpc::constants::FIELD_NOT_SUPPORTED; use crate::rpc::constants::FIELD_NOT_SUPPORTED;

View file

@ -3,7 +3,6 @@
use std::convert::Infallible; use std::convert::Infallible;
use anyhow::{anyhow, Error}; use anyhow::{anyhow, Error};
use cuprate_helper::cast::u64_to_usize;
use monero_serai::block::Block; use monero_serai::block::Block;
use tower::{Service, ServiceExt}; use tower::{Service, ServiceExt};
@ -11,6 +10,7 @@ use cuprate_consensus_context::{
BlockChainContext, BlockChainContextRequest, BlockChainContextResponse, BlockChainContext, BlockChainContextRequest, BlockChainContextResponse,
BlockChainContextService, BlockChainContextService,
}; };
use cuprate_helper::cast::u64_to_usize;
use cuprate_types::{FeeEstimate, HardFork, HardForkInfo}; use cuprate_types::{FeeEstimate, HardFork, HardForkInfo};
// FIXME: use `anyhow::Error` over `tower::BoxError` in blockchain context. // FIXME: use `anyhow::Error` over `tower::BoxError` in blockchain context.

View file

@ -1,13 +1,13 @@
//! Functions for [`BlockchainManagerRequest`] & [`BlockchainManagerResponse`]. //! Functions for [`BlockchainManagerRequest`] & [`BlockchainManagerResponse`].
use anyhow::Error; use anyhow::Error;
use cuprate_p2p_core::NetworkZone;
use cuprate_rpc_types::misc::Span;
use monero_serai::block::Block; use monero_serai::block::Block;
use tower::{Service, ServiceExt}; use tower::{Service, ServiceExt};
use cuprate_helper::cast::{u64_to_usize, usize_to_u64}; use cuprate_helper::cast::{u64_to_usize, usize_to_u64};
use cuprate_p2p_core::NetworkZone;
use cuprate_pruning::PruningSeed; use cuprate_pruning::PruningSeed;
use cuprate_rpc_types::misc::Span;
use cuprate_types::{AddAuxPow, AuxPow, HardFork}; use cuprate_types::{AddAuxPow, AuxPow, HardFork};
use crate::rpc::{ use crate::rpc::{