algorand / indexer

searchable history and current state

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[License] update idb interface

shiqizng opened this issue · comments

  1. update ValidatedBlock definition in types.go to
type ValidatedBlock struct {
	Block sdk.Block
	Delta models.LedgerStateDelta
}
  1. update AddBlock(block *ledgercore.ValidatedBlock) error to AddBlock(block *types.ValidatedBlock) error - this will break all the code in idb that's using ledgercore.StateDelta.
  2. update block types to types.ValidatedBlock in integration tests