From 24e5406e8422ecb551a5300224e1513c8688dd59 Mon Sep 17 00:00:00 2001 From: Hendrik Hofstadt Date: Mon, 9 Aug 2021 14:23:13 +0200 Subject: [PATCH] Always log sequence Change-Id: I0fe6e2f0f564f719b6207067b7824e395e91a65c --- solana/bridge/program/src/api/post_message.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solana/bridge/program/src/api/post_message.rs b/solana/bridge/program/src/api/post_message.rs index 88da4d70c..18a6e34eb 100644 --- a/solana/bridge/program/src/api/post_message.rs +++ b/solana/bridge/program/src/api/post_message.rs @@ -57,8 +57,7 @@ pub struct PostMessage<'b> { pub clock: Sysvar<'b, Clock>, } -impl<'b> InstructionContext<'b> for PostMessage<'b> { -} +impl<'b> InstructionContext<'b> for PostMessage<'b> {} #[derive(BorshDeserialize, BorshSerialize)] pub struct PostMessageData { @@ -111,6 +110,9 @@ pub fn post_message( .create(&(&*accs).into(), ctx, accs.payer.key, Exempt)?; } + // DO NOT REMOVE - CRITICAL OUTPUT + msg!("Sequence: {}", accs.sequence.sequence); + // Initialize transfer trace!("Setting Message Details"); accs.message.submission_time = accs.clock.unix_timestamp as u32;