Skip to content

Commit

Permalink
BUG:Missing index info for genesis transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
lochjin committed Nov 15, 2023
1 parent 9247d9b commit 215cf72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions services/index/index_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ func (m *Manager) Init() error {
return err
}
}
if m.consensus.BlockChain().GetMainOrder() == 0 {
sblock, block, err := m.consensus.BlockChain().FetchBlockByOrder(0)
if err != nil {
return err
}
err = m.ConnectBlock(sblock, block, nil)
if err != nil {
return err
}
}
return nil
}

Expand Down

0 comments on commit 215cf72

Please sign in to comment.