From 00e21878da1ce289ee0a6ae88d0222b1c55f9b83 Mon Sep 17 00:00:00 2001 From: Ivan Kalinin Date: Mon, 14 Oct 2024 18:15:08 +0200 Subject: [PATCH] feat: add `OutMsgQueueUpdates::tail_len` --- src/models/block/mod.rs | 3 +++ src/models/block/tests/mod.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/models/block/mod.rs b/src/models/block/mod.rs index ddde9d6b..a2297576 100755 --- a/src/models/block/mod.rs +++ b/src/models/block/mod.rs @@ -703,4 +703,7 @@ impl<'a> Load<'a> for ValueFlow { pub struct OutMsgQueueUpdates { /// Hash of the serialized queue diff. pub diff_hash: HashBytes, + /// The number of additional queue diffs, excluding the current one, + /// that may still be required by other shards. + pub tail_len: u32, } diff --git a/src/models/block/tests/mod.rs b/src/models/block/tests/mod.rs index f39c87bc..02d08bc7 100644 --- a/src/models/block/tests/mod.rs +++ b/src/models/block/tests/mod.rs @@ -448,6 +448,7 @@ fn block_with_tycho_updates_store_load() { .unwrap(), out_msg_queue_updates: OutMsgQueueUpdates { diff_hash: HashBytes::ZERO, + tail_len: 123, }, }; let encoded = BocRepr::encode(&block).unwrap(); @@ -461,6 +462,7 @@ fn block_with_tycho_updates_store_load() { decoded.out_msg_queue_updates, OutMsgQueueUpdates { diff_hash: HashBytes::ZERO, + tail_len: 123 } ); }