Skip to content

Commit

Permalink
core: bump blockchain database version
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Jan 22, 2019
1 parent 1ba971e commit b41c584
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b41c584

Please sign in to comment.