diff --git a/chain/ethhashlookup/eth_transaction_hash_lookup.go b/chain/ethhashlookup/eth_transaction_hash_lookup.go index 66e6a7b947d..7dd57bc737a 100644 --- a/chain/ethhashlookup/eth_transaction_hash_lookup.go +++ b/chain/ethhashlookup/eth_transaction_hash_lookup.go @@ -6,13 +6,13 @@ import ( "errors" "strconv" - "github.com/filecoin-project/go-state-types/abi" - "github.com/filecoin-project/go-state-types/builtin" - "github.com/filecoin-project/lotus/build/buildconstants" "github.com/ipfs/go-cid" _ "github.com/mattn/go-sqlite3" "golang.org/x/xerrors" + "github.com/filecoin-project/go-state-types/abi" + "github.com/filecoin-project/go-state-types/builtin" + "github.com/filecoin-project/lotus/build/buildconstants" "github.com/filecoin-project/lotus/chain/types/ethtypes" "github.com/filecoin-project/lotus/lib/sqlite" ) diff --git a/cmd/lotus-shed/indexes.go b/cmd/lotus-shed/indexes.go index de0665b104f..1d4680d21b1 100644 --- a/cmd/lotus-shed/indexes.go +++ b/cmd/lotus-shed/indexes.go @@ -44,8 +44,6 @@ const ( const ( deleteMsgIndexFromStartHeight = `DELETE FROM messages WHERE epoch < ?` - deleteTxHashIndexByCID = `DELETE FROM eth_tx_hashes WHERE cid = ?` - deleteEventFromStartHeight = `DELETE FROM event WHERE height < ?;` deleteEventEntriesByEventIDs = `DELETE FROM event_entry WHERE event_id IN (SELECT id FROM event WHERE height < ?);` deleteEventsSeenByHeight = `DELETE FROM events_seen WHERE height < ?;`