From b41c584ab43cd52e6cdcd43f09c673d0466ea29f Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Tue, 22 Jan 2019 16:01:01 +0800 Subject: [PATCH] core: bump blockchain database version --- core/blockchain.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 156efe303a..df20998ba4 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -65,7 +65,12 @@ const ( triesInMemory = 128 // BlockChainVersion ensures that an incompatible database forces a resync from scratch. - BlockChainVersion uint64 = 3 + // + // During the process of upgrading the database version from 3 to 4, + // the following incompatible database changes were added. + // * the `BlockNumber`, `TxHash`, `TxIndex`, `BlockHash` and `Index` fields of log are deleted + // * the `Bloom` field of receipt is deleted + BlockChainVersion uint64 = 4 ) // CacheConfig contains the configuration values for the trie caching/pruning