diff --git a/.circleci/config.yml b/.circleci/config.yml index 295b3e650..cdb4ae1cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -916,6 +916,11 @@ workflows: suite: itest-dup_mpool_messages target: "./itests/dup_mpool_messages_test.go" + - test: + name: test-itest-fevm_events + suite: itest-fevm_events + target: "./itests/fevm_events_test.go" + - test: name: test-itest-fevm suite: itest-fevm diff --git a/chain/events/filter/index.go b/chain/events/filter/index.go index db31e930f..821b49eff 100644 --- a/chain/events/filter/index.go +++ b/chain/events/filter/index.go @@ -8,12 +8,12 @@ import ( "sort" "strings" + "github.com/ipfs/go-cid" _ "github.com/mattn/go-sqlite3" "golang.org/x/xerrors" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" - "github.com/ipfs/go-cid" "github.com/filecoin-project/lotus/chain/types" ) diff --git a/itests/fevm_events_test.go b/itests/fevm_events_test.go index 46a938437..4a16dc38f 100644 --- a/itests/fevm_events_test.go +++ b/itests/fevm_events_test.go @@ -8,9 +8,11 @@ import ( "testing" "time" - "github.com/filecoin-project/go-address" - "github.com/filecoin-project/lotus/itests/kit" "github.com/stretchr/testify/require" + + "github.com/filecoin-project/go-address" + + "github.com/filecoin-project/lotus/itests/kit" ) // TestFEVMEvents does a basic events smoke test. diff --git a/itests/kit/evm.go b/itests/kit/evm.go index 23d5951dd..0245bd73f 100644 --- a/itests/kit/evm.go +++ b/itests/kit/evm.go @@ -6,12 +6,12 @@ import ( "encoding/binary" "fmt" - amt4 "github.com/filecoin-project/go-amt-ipld/v4" "github.com/ipfs/go-cid" "github.com/stretchr/testify/require" cbg "github.com/whyrusleeping/cbor-gen" "github.com/filecoin-project/go-address" + amt4 "github.com/filecoin-project/go-amt-ipld/v4" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/big" builtintypes "github.com/filecoin-project/go-state-types/builtin" diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index f8f4c5fdb..6dd12f6f8 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -69,6 +69,14 @@ this time become eligible for automatic deletion.`, Comment: `MaxFilterHeightRange specifies the maximum range of heights that can be used in a filter (to avoid querying the entire chain)`, }, + { + Name: "ActorEventDatabasePath", + Type: "string", + + Comment: `EventHistoryDatabasePath is the full path to a sqlite database that will be used to index actor events to +support the historic filter APIs. If the database does not exist it will be created. The directory containing +the database must already exist and be writeable.`, + }, }, "Backup": []DocField{ {