Struct ic_btc_interface::Config
source · pub struct Config {
pub stability_threshold: u128,
pub network: Network,
pub blocks_source: Principal,
pub syncing: Flag,
pub fees: Fees,
pub api_access: Flag,
pub disable_api_if_not_fully_synced: Flag,
pub watchdog_canister: Option<Principal>,
}Expand description
The payload used to initialize the canister.
Fields§
§stability_threshold: u128§network: Network§blocks_source: PrincipalThe principal from which blocks are retrieved.
Setting this source to the management canister means that the blocks will be fetched directly from the replica, and that’s what is used in production.
syncing: Flag§fees: Fees§api_access: FlagFlag to control access to the apis provided by the canister.
disable_api_if_not_fully_synced: FlagFlag to determine if the API should be automatically disabled if the canister isn’t fully synced.
watchdog_canister: Option<Principal>The principal of the watchdog canister. The watchdog canister has the authority to disable the Bitcoin canister’s API if it suspects that there is a problem.
Trait Implementations§
source§impl CandidType for Config
impl CandidType for Config
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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