Skip to content

Commit

Permalink
feat: add OutMsgQueueUpdates::tail_len
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon authored and drmick committed Nov 14, 2024
1 parent 9f26d07 commit 5563b69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 2 additions & 0 deletions src/models/block/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -461,6 +462,7 @@ fn block_with_tycho_updates_store_load() {
decoded.out_msg_queue_updates,
OutMsgQueueUpdates {
diff_hash: HashBytes::ZERO,
tail_len: 123
}
);
}

0 comments on commit 5563b69

Please sign in to comment.