From 00d1b6ef4b1203e80271c16c0d5b179525de1913 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Fri, 31 Oct 2025 09:45:33 +0100 Subject: [PATCH] doc: clarify UpdateUncommittedBlockStructures --- src/validation.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/validation.h b/src/validation.h index 291c1021dc9..cd448f3ca9e 100644 --- a/src/validation.h +++ b/src/validation.h @@ -1276,7 +1276,11 @@ public: //! ResizeCoinsCaches() as needed. void MaybeRebalanceCaches() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); - /** Update uncommitted block structures (currently: only the witness reserved value). This is safe for submitted blocks. */ + /** + * Update uncommitted block structures (currently: only the witness reserved + * value). This is safe for submitted blocks as long as they honor + * default_witness_commitment from the template. + */ void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev) const; /** Produce the necessary coinbase commitment for a block (modifies the hash, don't call for mined blocks). */