chain events: Move to chain/events
This commit is contained in:
parent
50960b3f8c
commit
caed73ef6c
@ -1,14 +1,17 @@
|
||||
package store
|
||||
package events
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
logging "github.com/ipfs/go-log"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/filecoin-project/go-lotus/build"
|
||||
"github.com/filecoin-project/go-lotus/chain/types"
|
||||
)
|
||||
|
||||
var log = logging.Logger("events")
|
||||
|
||||
// `curH`-`ts.Height` = `confidence`
|
||||
type HeightHandler func(ts *types.TipSet, curH uint64) error
|
||||
type RevertHandler func(ts *types.TipSet) error
|
@ -1,10 +1,11 @@
|
||||
package store
|
||||
package events
|
||||
|
||||
import (
|
||||
"github.com/ipfs/go-cid"
|
||||
"math"
|
||||
"sync"
|
||||
|
||||
"github.com/ipfs/go-cid"
|
||||
|
||||
"github.com/filecoin-project/go-lotus/chain/address"
|
||||
"github.com/filecoin-project/go-lotus/chain/types"
|
||||
)
|
@ -1,8 +1,9 @@
|
||||
package store
|
||||
package events
|
||||
|
||||
import (
|
||||
"github.com/filecoin-project/go-lotus/chain/types"
|
||||
"sync"
|
||||
|
||||
"github.com/filecoin-project/go-lotus/chain/types"
|
||||
)
|
||||
|
||||
type heightEvents struct {
|
@ -1,14 +1,16 @@
|
||||
package store
|
||||
package events
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/filecoin-project/go-lotus/build"
|
||||
"github.com/filecoin-project/go-lotus/chain/address"
|
||||
"github.com/filecoin-project/go-lotus/chain/types"
|
||||
"testing"
|
||||
|
||||
"github.com/ipfs/go-cid"
|
||||
"github.com/multiformats/go-multihash"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
|
||||
"github.com/filecoin-project/go-lotus/build"
|
||||
"github.com/filecoin-project/go-lotus/chain/address"
|
||||
"github.com/filecoin-project/go-lotus/chain/types"
|
||||
)
|
||||
|
||||
var dummyCid cid.Cid
|
@ -1,4 +1,4 @@
|
||||
package store
|
||||
package events
|
||||
|
||||
import (
|
||||
"golang.org/x/xerrors"
|
Loading…
Reference in New Issue
Block a user