Skip to content

Commit f47976e

Browse files
committed
clarified backward compatibility for coinbase checks
1 parent fbc7e8e commit f47976e

File tree

1 file changed

+2
-0
lines changed
  • stackslib/src/chainstate/nakamoto

1 file changed

+2
-0
lines changed

stackslib/src/chainstate/nakamoto/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4856,6 +4856,8 @@ impl NakamotoChainState {
48564856
}
48574857

48584858
// for sip-031 we append the mint event to the coinbase
4859+
// note that the above coinbase checks are left with index assumptions (get_mut(0))
4860+
// for backward compatibility (even if since nakamoto the coinbase is at index 1)
48594861
if let Some(event) = sip31_event {
48604862
if let Some(coinbase_receipt) = tx_receipts
48614863
.iter_mut()

0 commit comments

Comments
 (0)