Skip to content

Commit b5c6eab

Browse files
committed
Add prdoc
1 parent 88cd1aa commit b5c6eab

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

prdoc/pr_12211.prdoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title: 'Snowbridge: drop outbound-queue-v2 message leaves from state'
2+
doc:
3+
- audience: Runtime Dev
4+
description: |-
5+
The `outbound-queue-v2` pallet stored the per-message merkle leaves in the `MessageLeaves` storage value
6+
and only cleared them at the start of the next block, so the leaves persisted across blocks and were
7+
needlessly included in the PoV. They are only needed to build the commitment root and to generate proofs
8+
off-chain.
9+
10+
`MessageLeaves` is now truly transient: the leaves are still appended during block execution to build the
11+
merkle root, but the value is killed within the same block, right after the commitment is produced in
12+
`commit()`. The committed root inserted into the header digest is unchanged, so relayers and the
13+
Ethereum-side verification are unaffected. The `prove_message` runtime API keeps the same signature and now
14+
recomputes the leaves from `Messages` (read off-chain only).
15+
crates:
16+
- name: snowbridge-pallet-outbound-queue-v2
17+
bump: patch

0 commit comments

Comments
 (0)