Struct bitcoin_indexed_chain::ChainImpl
source · pub struct ChainImpl { /* private fields */ }
Implementations§
source§impl ChainImpl
impl ChainImpl
pub fn chainman(&mut self) -> &mut ChainstateManager
pub fn new(node: &mut NodeContext) -> Self
pub fn get_height(&mut self) -> Option<i32>
pub fn get_block_hash(&mut self, height: i32) -> u256
pub fn have_block_on_disk(&mut self, height: i32) -> bool
pub fn get_tip_locator(&mut self) -> BlockLocator
pub fn check_final_tx(&mut self, tx: &Transaction) -> bool
pub fn find_locator_fork(&mut self, locator: &BlockLocator) -> Option<i32>
pub fn find_block(&mut self, hash: &u256, block: &FoundBlock) -> bool
pub fn find_first_block_with_time_and_height( &mut self, min_time: i64, min_height: i32, block: &FoundBlock ) -> bool
pub fn find_ancestor_by_height( &mut self, block_hash: &u256, ancestor_height: i32, ancestor_out: &FoundBlock ) -> bool
pub fn find_ancestor_by_hash( &mut self, block_hash: &u256, ancestor_hash: &u256, ancestor_out: &FoundBlock ) -> bool
pub fn find_common_ancestor( &mut self, block_hash1: &u256, block_hash2: &u256, ancestor_out: &FoundBlock, block1_out: &FoundBlock, block2_out: &FoundBlock ) -> bool
pub fn find_coins(&mut self, coins: &mut HashMap<OutPoint, Coin>)
pub fn guess_verification_progress(&mut self, block_hash: &u256) -> f64
pub fn has_blocks( &mut self, block_hash: &u256, min_height: i32, max_height: Option<i32> ) -> bool
pub fn is_rbf_opt_in(&mut self, tx: &Transaction) -> RBFTransactionState
pub fn is_in_mempool(&mut self, txid: &u256) -> bool
pub fn has_descendants_in_mempool(&mut self, txid: &u256) -> bool
pub fn broadcast_transaction( &mut self, tx: &TransactionRef, max_tx_fee: &Amount, relay: bool, err_string: &mut String ) -> bool
pub fn get_transaction_ancestry( &mut self, txid: &u256, ancestors: &mut usize, descendants: &mut usize, ancestorsize: *mut usize, ancestorfees: *mut Amount )
pub fn get_package_limits( &mut self, limit_ancestor_count: &mut u32, limit_descendant_count: &mut u32 )
pub fn check_chain_limits(&mut self, tx: &TransactionRef) -> bool
pub fn estimate_smart_fee( &mut self, num_blocks: i32, conservative: bool, calc: *mut FeeCalculation ) -> FeeRate
pub fn estimate_max_blocks(&mut self) -> u32
pub fn mempool_min_fee(&mut self) -> FeeRate
pub fn relay_min_fee(&mut self) -> FeeRate
pub fn relay_incremental_fee(&mut self) -> FeeRate
pub fn relay_dust_fee(&mut self) -> FeeRate
pub fn have_pruned(&mut self) -> bool
pub fn is_ready_to_broadcast(&mut self) -> bool
pub fn is_initial_block_download(&mut self) -> bool
pub fn shutdown_requested(&mut self) -> bool
pub fn get_adjusted_time(&mut self) -> i64
pub fn init_message(&mut self, message: &String)
pub fn init_warning(&mut self, message: &BilingualStr)
pub fn init_error(&mut self, message: &BilingualStr)
pub fn show_progress( &mut self, title: &String, progress: i32, resume_possible: bool )
pub fn handle_notifications( &mut self, notifications: Arc<dyn ChainNotifications> ) -> Box<dyn Handler>
pub fn wait_for_notifications_if_tip_changed(&mut self, old_tip: &u256)
pub fn handle_rpc(&mut self, command: &RPCCommand) -> Box<dyn Handler>
pub fn rpc_enable_deprecated(&mut self, method: &String) -> bool
pub fn rpc_run_later(&mut self, name: &String, fn_: fn(), seconds: i64)
pub fn rpc_serialization_flags(&mut self) -> i32
pub fn get_setting(&mut self, name: &String) -> SettingsValue
pub fn get_settings_list(&mut self, name: &String) -> Vec<SettingsValue>
pub fn get_rw_setting(&mut self, name: &String) -> SettingsValue
pub fn update_rw_setting( &mut self, name: &String, value: &SettingsValue, write: bool ) -> bool
pub fn request_mempool_transactions( &mut self, notifications: Rc<RefCell<dyn ChainNotifications>> )
pub fn is_taproot_active(&mut self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for ChainImpl
impl !Send for ChainImpl
impl !Sync for ChainImpl
impl Unpin for ChainImpl
impl !UnwindSafe for ChainImpl
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more