pub struct ChainImpl { /* private fields */ }

Implementations§

source§

impl ChainImpl

source

pub fn chainman(&mut self) -> &mut ChainstateManager

source

pub fn new(node: &mut NodeContext) -> Self

source

pub fn get_height(&mut self) -> Option<i32>

source

pub fn get_block_hash(&mut self, height: i32) -> u256

source

pub fn have_block_on_disk(&mut self, height: i32) -> bool

source

pub fn get_tip_locator(&mut self) -> BlockLocator

source

pub fn check_final_tx(&mut self, tx: &Transaction) -> bool

source

pub fn find_locator_fork(&mut self, locator: &BlockLocator) -> Option<i32>

source

pub fn find_block(&mut self, hash: &u256, block: &FoundBlock) -> bool

source

pub fn find_first_block_with_time_and_height( &mut self, min_time: i64, min_height: i32, block: &FoundBlock ) -> bool

source

pub fn find_ancestor_by_height( &mut self, block_hash: &u256, ancestor_height: i32, ancestor_out: &FoundBlock ) -> bool

source

pub fn find_ancestor_by_hash( &mut self, block_hash: &u256, ancestor_hash: &u256, ancestor_out: &FoundBlock ) -> bool

source

pub fn find_common_ancestor( &mut self, block_hash1: &u256, block_hash2: &u256, ancestor_out: &FoundBlock, block1_out: &FoundBlock, block2_out: &FoundBlock ) -> bool

source

pub fn find_coins(&mut self, coins: &mut HashMap<OutPoint, Coin>)

source

pub fn guess_verification_progress(&mut self, block_hash: &u256) -> f64

source

pub fn has_blocks( &mut self, block_hash: &u256, min_height: i32, max_height: Option<i32> ) -> bool

source

pub fn is_rbf_opt_in(&mut self, tx: &Transaction) -> RBFTransactionState

source

pub fn is_in_mempool(&mut self, txid: &u256) -> bool

source

pub fn has_descendants_in_mempool(&mut self, txid: &u256) -> bool

source

pub fn broadcast_transaction( &mut self, tx: &TransactionRef, max_tx_fee: &Amount, relay: bool, err_string: &mut String ) -> bool

source

pub fn get_transaction_ancestry( &mut self, txid: &u256, ancestors: &mut usize, descendants: &mut usize, ancestorsize: *mut usize, ancestorfees: *mut Amount )

source

pub fn get_package_limits( &mut self, limit_ancestor_count: &mut u32, limit_descendant_count: &mut u32 )

source

pub fn check_chain_limits(&mut self, tx: &TransactionRef) -> bool

source

pub fn estimate_smart_fee( &mut self, num_blocks: i32, conservative: bool, calc: *mut FeeCalculation ) -> FeeRate

source

pub fn estimate_max_blocks(&mut self) -> u32

source

pub fn mempool_min_fee(&mut self) -> FeeRate

source

pub fn relay_min_fee(&mut self) -> FeeRate

source

pub fn relay_incremental_fee(&mut self) -> FeeRate

source

pub fn relay_dust_fee(&mut self) -> FeeRate

source

pub fn have_pruned(&mut self) -> bool

source

pub fn is_ready_to_broadcast(&mut self) -> bool

source

pub fn is_initial_block_download(&mut self) -> bool

source

pub fn shutdown_requested(&mut self) -> bool

source

pub fn get_adjusted_time(&mut self) -> i64

source

pub fn init_message(&mut self, message: &String)

source

pub fn init_warning(&mut self, message: &BilingualStr)

source

pub fn init_error(&mut self, message: &BilingualStr)

source

pub fn show_progress( &mut self, title: &String, progress: i32, resume_possible: bool )

source

pub fn handle_notifications( &mut self, notifications: Arc<dyn ChainNotifications> ) -> Box<dyn Handler>

source

pub fn wait_for_notifications_if_tip_changed(&mut self, old_tip: &u256)

source

pub fn handle_rpc(&mut self, command: &RPCCommand) -> Box<dyn Handler>

source

pub fn rpc_enable_deprecated(&mut self, method: &String) -> bool

source

pub fn rpc_run_later(&mut self, name: &String, fn_: fn(), seconds: i64)

source

pub fn rpc_serialization_flags(&mut self) -> i32

source

pub fn get_setting(&mut self, name: &String) -> SettingsValue

source

pub fn get_settings_list(&mut self, name: &String) -> Vec<SettingsValue>

source

pub fn get_rw_setting(&mut self, name: &String) -> SettingsValue

source

pub fn update_rw_setting( &mut self, name: &String, value: &SettingsValue, write: bool ) -> bool

source

pub fn request_mempool_transactions( &mut self, notifications: Rc<RefCell<dyn ChainNotifications>> )

source

pub fn is_taproot_active(&mut self) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> StaticUpcast<T> for T

§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V