Merge pull request #7394 from thecockatiel/add_comment

chore: add comment to DaoState#addBlock
This commit is contained in:
Alejandro García 2025-02-25 12:53:01 +00:00 committed by GitHub
commit b14739dedd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -319,6 +319,8 @@ public class DaoState implements PersistablePayload {
}
public void addBlock(Block block) {
// The block added here does not have any tx,
// so we do not need to update the txCache or txOutputsByTxOutputType
blocks.add(block);
blocksByHeight.put(block.getHeight(), block);
}