chore: add comment to DaoState#addBlock

This commit is contained in:
thecockatiel 2025-02-14 16:08:11 +03:30
parent 631d0f9222
commit 7303f7e03f
No known key found for this signature in database
GPG key ID: 3E5CDC091FAF3BBA

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);
}