From ab5b69c5e4cb8ada3433c77c3bfbcac57aef45da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20M=C3=A4kel=C3=A4?= Date: Wed, 15 Jul 2020 12:56:41 +0300 Subject: [PATCH] add it to map --- chain/gen/genesis/t01_init.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chain/gen/genesis/t01_init.go b/chain/gen/genesis/t01_init.go index d37a9c306..ab26093f5 100644 --- a/chain/gen/genesis/t01_init.go +++ b/chain/gen/genesis/t01_init.go @@ -13,6 +13,8 @@ import ( cbor "github.com/ipfs/go-ipld-cbor" "golang.org/x/xerrors" + "github.com/filecoin-project/go-address" + "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/genesis" ) @@ -31,6 +33,12 @@ func SetupInitActor(bs bstore.Blockstore, netname string, initialActors []genesi for i, a := range initialActors { if a.Type == genesis.TMultisig { + addr, _ := address.NewActorAddress(a.Meta) + fmt.Printf("init set %s t0%d\n", addr, AccountStart+uint64(i)) + + if err := amap.Set(context.TODO(), string(addr.Bytes()), AccountStart+uint64(i)); err != nil { + return nil, err + } continue }