From 8a5befde4445f62b5154be44aec02ea3498019f8 Mon Sep 17 00:00:00 2001 From: i-norden Date: Wed, 15 Mar 2023 18:08:43 -0500 Subject: [PATCH] update indexer interfaces and shared constants --- statediff/indexer/interfaces/interfaces.go | 4 ++-- statediff/indexer/shared/constants.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/statediff/indexer/interfaces/interfaces.go b/statediff/indexer/interfaces/interfaces.go index 6910e3f49..9836d6a86 100644 --- a/statediff/indexer/interfaces/interfaces.go +++ b/statediff/indexer/interfaces/interfaces.go @@ -30,8 +30,8 @@ import ( // StateDiffIndexer interface required to index statediff data type StateDiffIndexer interface { PushBlock(block *types.Block, receipts types.Receipts, totalDifficulty *big.Int) (Batch, error) - PushStateNode(tx Batch, stateNode sdtypes.StateNode, headerID string) error - PushCodeAndCodeHash(tx Batch, codeAndCodeHash sdtypes.CodeAndCodeHash) error + PushStateNode(tx Batch, stateNode sdtypes.StateLeafNode, headerID string) error + PushIPLD(tx Batch, ipld sdtypes.IPLD) error ReportDBMetrics(delay time.Duration, quit <-chan bool) // Methods used by WatchAddress API/functionality diff --git a/statediff/indexer/shared/constants.go b/statediff/indexer/shared/constants.go index 6d1e298ad..95439e714 100644 --- a/statediff/indexer/shared/constants.go +++ b/statediff/indexer/shared/constants.go @@ -19,5 +19,4 @@ package shared const ( RemovedNodeStorageCID = "bagmacgzayxjemamg64rtzet6pwznzrydydsqbnstzkbcoo337lmaixmfurya" RemovedNodeStateCID = "baglacgzayxjemamg64rtzet6pwznzrydydsqbnstzkbcoo337lmaixmfurya" - RemovedNodeMhKey = "/blocks/DMQMLUSGAGDPOIZ4SJ7H3MW4Y4B4BZIAWZJ4VARHHN57VWAELWC2I4A" )