Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[iip-15]sgdRegistry implementation (#3845) " #4357

Merged
merged 8 commits into from
Aug 12, 2024
Prev Previous commit
Next Next commit
Revert "[iip-15] sgd indexer to ignore block less than start height (#…
…3873)"

This reverts commit e0b129f.
  • Loading branch information
dustinxie committed Aug 12, 2024
commit db74d38e4f20296da413b3165bbb6331276d083a
5 changes: 1 addition & 4 deletions blockindex/sgd_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,11 @@ func (sgd *sgdRegistry) StartHeight() uint64 {

// PutBlock puts a block into SGDIndexer
func (sgd *sgdRegistry) PutBlock(ctx context.Context, blk *block.Block) error {
if blk.Height() < sgd.startHeight {
return nil
}
var (
r *action.Receipt
ok bool
b = batch.NewBatch()
)
b := batch.NewBatch()
receipts := getReceiptsFromBlock(blk)
for _, selp := range blk.Actions {
actHash, err := selp.Hash()
Expand Down