add a comment

This commit is contained in:
colinlyguo
2023-12-17 19:37:46 +08:00
parent 60a4cdebfc
commit 3fc6534bbd

View File

@@ -120,6 +120,8 @@ func (c *L2MessageFetcher) updateL2WithdrawMessageProofs(ctx context.Context, l2
}
for i, messageHash := range messageHashes {
// AppendMessages is called for each message individually to obtain the correct proofs
// for the state of the trie after each message is appended.
proof := withdrawTrie.AppendMessages([]common.Hash{messageHash})
if err != nil {
log.Error("error generating proof", "messageHash", messageHash, "error", err)