From f6fb3cf43263cdc725cfba4d924032519711a995 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Mon, 27 May 2024 15:20:31 +0100 Subject: [PATCH] TESTING CI REMOVE ME PLS --- crates/sdk/src/masp/shielded_ctx.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/sdk/src/masp/shielded_ctx.rs b/crates/sdk/src/masp/shielded_ctx.rs index 16c22dcf99..80c635f499 100644 --- a/crates/sdk/src/masp/shielded_ctx.rs +++ b/crates/sdk/src/masp/shielded_ctx.rs @@ -1446,6 +1446,21 @@ impl ShieldedContext { let (task_scheduler, mut task_manager) = TaskManager::::new(self.clone()); + { + use std::panic; + + let panic_hook = panic::take_hook(); + + panic::set_hook(Box::new(move |panic_info| { + println!("========================================================="); + println!("========================================================="); + println!("{panic_info}"); + panic_hook(panic_info); + println!("========================================================="); + println!("========================================================="); + })); + } + // The main loop that performs // * fetching and caching MASP txs in sequence // * trial decryption of each note to determine if it is owned by a