Some test fixes

This commit is contained in:
Łukasz Magiera
2020-02-26 10:05:22 +01:00
parent 1b6646b55a
commit cb09e48e8c
7 changed files with 33 additions and 23 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ func syncHead(ctx context.Context, api api.FullNode, st *storage, ts *types.TipS
for len(allToSync) > 0 {
actors := map[address.Address]map[types.Actor]actorInfo{}
addresses := map[address.Address]address.Address{}
minH := abi.ChainEpoch(math.MaxUint64)
minH := abi.ChainEpoch(math.MaxInt64)
for _, header := range allToSync {
if header.Height < minH {
@@ -123,7 +123,7 @@ func syncHead(ctx context.Context, api api.FullNode, st *storage, ts *types.TipS
toSync := map[cid.Cid]*types.BlockHeader{}
for c, header := range allToSync {
if header.Height < minH+uint64(maxBatch) {
if header.Height < minH+abi.ChainEpoch(maxBatch) {
toSync[c] = header
addresses[header.Miner] = address.Undef
}