diff --git a/lotuspond/front/src/NodeList.js b/lotuspond/front/src/NodeList.js index 78203929b..a29d723c0 100644 --- a/lotuspond/front/src/NodeList.js +++ b/lotuspond/front/src/NodeList.js @@ -35,7 +35,7 @@ class NodeList extends React.Component { async mountNode(node) { const token = await this.props.client.call('Pond.TokenFor', [node.ID]) - const client = new Client(`ws://127.0.0.1:${node.ApiPort}/rpc/v0?token=${token}`) + const client = new Client(`ws://127.0.0.1:${node.APIPort}/rpc/v0?token=${token}`) client.on('open', async () => { const id = await client.call("Filecoin.ID", []) diff --git a/lotuspond/front/src/StorageNode.js b/lotuspond/front/src/StorageNode.js index 4f2005a67..bf85de642 100644 --- a/lotuspond/front/src/StorageNode.js +++ b/lotuspond/front/src/StorageNode.js @@ -59,7 +59,7 @@ class StorageNode extends React.Component { token: token, })) - const client = new Client(`ws://127.0.0.1:${this.props.node.ApiPort}/rpc/v0?token=${token}`) + const client = new Client(`ws://127.0.0.1:${this.props.node.APIPort}/rpc/v0?token=${token}`) client.on('open', async () => { this.setState(() => ({ state: stateConnected, diff --git a/lotuspond/spawn.go b/lotuspond/spawn.go index e28ac8753..f4e8decee 100644 --- a/lotuspond/spawn.go +++ b/lotuspond/spawn.go @@ -20,6 +20,7 @@ import ( "github.com/filecoin-project/specs-actors/actors/abi" "github.com/filecoin-project/specs-actors/actors/builtin/miner" + "github.com/filecoin-project/lotus/chain/gen" "github.com/filecoin-project/lotus/cmd/lotus-seed/seed" "github.com/filecoin-project/lotus/genesis" ) @@ -69,6 +70,7 @@ func (api *api) Spawn() (nodeInfo, error) { Balance: types.FromFil(5000000), Meta: (&genesis.AccountMeta{Owner: genm.Owner}).ActorMeta(), }) + template.VerifregRootKey = gen.DefaultVerifregRootkeyActor tb, err := json.Marshal(&template) if err != nil {