From 03f882375eb63ea4826136fe7210a869d2c27d07 Mon Sep 17 00:00:00 2001 From: Adam Spofford <93943719+adamspofford-dfinity@users.noreply.github.com> Date: Wed, 6 Nov 2024 03:29:26 -0800 Subject: [PATCH] Add BitcoinGetBlockHeaders (#615) --- ic-utils/src/interfaces/management_canister.rs | 2 ++ icx/src/main.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/ic-utils/src/interfaces/management_canister.rs b/ic-utils/src/interfaces/management_canister.rs index ffdf2420..7b194f8b 100644 --- a/ic-utils/src/interfaces/management_canister.rs +++ b/ic-utils/src/interfaces/management_canister.rs @@ -89,6 +89,8 @@ pub enum MgmtMethod { BitcoinSendTransaction, /// There is no corresponding agent function as only canisters can call it. Use [`BitcoinCanister`](super::BitcoinCanister) instead. BitcoinGetCurrentFeePercentiles, + /// There is no corresponding agent function as only canisters can call it. Use [`BitcoinCanister`](super::BitcoinCanister) instead. + BitcoinGetBlockHeaders, /// There is no corresponding agent function as only canisters can call it. NodeMetricsHistory, } diff --git a/icx/src/main.rs b/icx/src/main.rs index 31ddb3a0..d6ab7c3f 100644 --- a/icx/src/main.rs +++ b/icx/src/main.rs @@ -323,6 +323,7 @@ pub fn get_effective_canister_id( | MgmtMethod::BitcoinGetUtxos | MgmtMethod::BitcoinSendTransaction | MgmtMethod::BitcoinGetCurrentFeePercentiles + | MgmtMethod::BitcoinGetBlockHeaders | MgmtMethod::EcdsaPublicKey | MgmtMethod::SignWithEcdsa | MgmtMethod::NodeMetricsHistory => {