post-upstream-merge fixes

This commit is contained in:
Łukasz Magiera
2020-02-24 18:45:25 +01:00
parent d787aa5007
commit 794429dd55
6 changed files with 8 additions and 16 deletions
-1
View File
@@ -105,7 +105,6 @@ func (t *HelloMessage) UnmarshalCBOR(r io.Reader) error {
if maj != cbg.MajUnsignedInt {
return fmt.Errorf("wrong type for uint64 field")
}
t.HeaviestTipSetHeight = uint64(extra)
// t.HeaviestTipSetWeight (types.BigInt) (struct)
{
+2 -1
View File
@@ -2,6 +2,7 @@ package hello
import (
"context"
"github.com/filecoin-project/specs-actors/actors/abi"
"time"
"github.com/filecoin-project/specs-actors/actors/abi/big"
@@ -25,7 +26,7 @@ var log = logging.Logger("hello")
type HelloMessage struct {
HeaviestTipSet []cid.Cid
HeaviestTipSetHeight uint64
HeaviestTipSetHeight abi.ChainEpoch
HeaviestTipSetWeight big.Int
GenesisHash cid.Cid
}