add it to map
This commit is contained in:
parent
21b78514f5
commit
ab5b69c5e4
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user