specs-actors: Fis some test compilation errors

This commit is contained in:
Łukasz Magiera
2020-02-10 20:16:36 +01:00
parent 7e70536bf1
commit c0ed0dda8e
24 changed files with 226 additions and 201 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"os"
"time"
"github.com/filecoin-project/specs-actors/actors/abi"
logging "github.com/ipfs/go-log/v2"
)
@@ -66,7 +67,7 @@ func main() {
log.Fatal(err)
}
tipsetsCh, err := GetTips(ctx, api, uint64(height))
tipsetsCh, err := GetTips(ctx, api, abi.ChainEpoch(height))
if err != nil {
log.Fatal(err)
}
+3 -2
View File
@@ -5,6 +5,7 @@ import (
"net/http"
"time"
"github.com/filecoin-project/specs-actors/actors/abi"
manet "github.com/multiformats/go-multiaddr-net"
"golang.org/x/xerrors"
@@ -120,7 +121,7 @@ sync_complete:
}
}
func GetTips(ctx context.Context, api api.FullNode, lastHeight uint64) (<-chan *types.TipSet, error) {
func GetTips(ctx context.Context, api api.FullNode, lastHeight abi.ChainEpoch) (<-chan *types.TipSet, error) {
chmain := make(chan *types.TipSet)
notif, err := api.ChainNotify(ctx)
@@ -175,7 +176,7 @@ func GetTips(ctx context.Context, api api.FullNode, lastHeight uint64) (<-chan *
return chmain, nil
}
func loadTipsets(ctx context.Context, api api.FullNode, curr *types.TipSet, lowestHeight uint64) ([]*types.TipSet, error) {
func loadTipsets(ctx context.Context, api api.FullNode, curr *types.TipSet, lowestHeight abi.ChainEpoch) ([]*types.TipSet, error) {
tipsets := []*types.TipSet{}
for {
if curr.Height() == 0 {