[lbry] claimtrie: init blockRepo with empty merkle hash at block 0
This commit is contained in:
parent
d2f8ad7657
commit
bf86d03f84
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ func New(cfg config.Config) (*ClaimTrie, error) {
|
|||
return nil, errors.Wrap(err, "creating block repo")
|
||||
}
|
||||
cleanups = append(cleanups, blockRepo.Close)
|
||||
err = blockRepo.Set(0, merkletrie.EmptyTrieHash)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "setting block repo genesis")
|
||||
}
|
||||
|
||||
dbPath = filepath.Join(dataDir, cfg.TemporalRepoPebble.Path)
|
||||
temporalRepo, err := temporalrepo.NewPebble(dbPath)
|
||||
|
|
Loading…
Add table
Reference in a new issue