improve comment in 'processBlock'

This commit is contained in:
andri lim 2019-12-06 12:27:29 +07:00 committed by zah
parent 9596dbc267
commit 9dbcc7bb69
1 changed files with 3 additions and 2 deletions

View File

@ -188,6 +188,7 @@ proc processBlock*(chainDB: BaseChainDB, header: BlockHeader, body: BlockBody, v
return ValidationResult.Error
# `applyDeletes = false`
# preserve previous block stateRoot
# while still benefits from trie pruning
# If the trie pruning activated, each of the block will have its own state trie keep intact,
# rather than destroyed by trie pruning. But the current block will still get a pruned trie.
# If trie pruning deactivated, `applyDeletes` have no effects.
dbTx.commit(applyDeletes = false)