From 9dbcc7bb6951c5219161dd8ce7f6583f7473f0ca Mon Sep 17 00:00:00 2001 From: andri lim Date: Fri, 6 Dec 2019 12:27:29 +0700 Subject: [PATCH] improve comment in 'processBlock' --- nimbus/p2p/executor.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nimbus/p2p/executor.nim b/nimbus/p2p/executor.nim index 18ec3bd6b..4b9626949 100644 --- a/nimbus/p2p/executor.nim +++ b/nimbus/p2p/executor.nim @@ -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)