Struct floresta_wire::running_node::RunningNode
source · pub struct RunningNode { /* private fields */ }
Trait Implementations§
source§impl Clone for RunningNode
impl Clone for RunningNode
source§fn clone(&self) -> RunningNode
fn clone(&self) -> RunningNode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RunningNode
impl Debug for RunningNode
source§impl Default for RunningNode
impl Default for RunningNode
source§impl NodeContext for RunningNode
impl NodeContext for RunningNode
const REQUEST_TIMEOUT: u64 = 30u64
fn get_required_services(&self) -> ServiceFlags
source§const MAX_OUTGOING_PEERS: usize = 10usize
const MAX_OUTGOING_PEERS: usize = 10usize
Max number of simultaneous connections we initiates we are willing to hold
source§const ASK_FOR_PEERS_INTERVAL: u64 = 3_600u64
const ASK_FOR_PEERS_INTERVAL: u64 = 3_600u64
We ask for peers every ASK_FOR_PEERS_INTERVAL seconds
source§const PEER_DB_DUMP_INTERVAL: u64 = 30u64
const PEER_DB_DUMP_INTERVAL: u64 = 30u64
Save our database of peers every PEER_DB_DUMP_INTERVAL seconds
source§const TRY_NEW_CONNECTION: u64 = 10u64
const TRY_NEW_CONNECTION: u64 = 10u64
Attempt to open a new connection (if needed) every TRY_NEW_CONNECTION seconds
source§const ASSUME_STALE: u64 = 900u64
const ASSUME_STALE: u64 = 900u64
If ASSUME_STALE seconds passed since our last tip update, treat it as stale
source§const IBD_REQUEST_BLOCKS_AGAIN: u64 = 30u64
const IBD_REQUEST_BLOCKS_AGAIN: u64 = 30u64
While on IBD, if we’ve been without blocks for this long, ask for headers again
source§const BROADCAST_DELAY: u64 = 30u64
const BROADCAST_DELAY: u64 = 30u64
How often we broadcast transactions
source§const MAX_INFLIGHT_REQUESTS: usize = 1_000usize
const MAX_INFLIGHT_REQUESTS: usize = 1_000usize
Max number of simultaneous inflight requests we allow
source§const FEELER_INTERVAL: u64 = 30u64
const FEELER_INTERVAL: u64 = 30u64
Interval at which we open new feeler connections
source§const ADDRESS_REARRANGE_INTERVAL: u64 = 3_600u64
const ADDRESS_REARRANGE_INTERVAL: u64 = 3_600u64
Interval at which we rearrange our addresses
source§const BLOCK_CHECK_INTERVAL: u64 = 300u64
const BLOCK_CHECK_INTERVAL: u64 = 300u64
How often we check if we haven’t missed a block
source§const SEND_ADDRESSES_INTERVAL: u64 = 3_600u64
const SEND_ADDRESSES_INTERVAL: u64 = 3_600u64
How often we send our addresses to our peers
Auto Trait Implementations§
impl RefUnwindSafe for RunningNode
impl Send for RunningNode
impl Sync for RunningNode
impl Unpin for RunningNode
impl UnwindSafe for RunningNode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more