Skip to content

Commit

Permalink
[Backend] Temporally set compression module to retreive genesis block
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunsooda committed Dec 26, 2024
1 parent 4687f2f commit b4fc57b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node/cn/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ func New(ctx *node.ServiceContext, config *Config) (*CN, error) {
}
)

// Temporally set compression module for genesis block reterival
// Module will be reset in `SetupKaiaxModules`
chainDB.SetCompressModule(compress_impl.NewCompression())
bc, err := blockchain.NewBlockChain(chainDB, cacheConfig, cn.chainConfig, cn.engine, vmConfig)
if err != nil {
return nil, err
Expand Down

0 comments on commit b4fc57b

Please sign in to comment.