pond: Fix network setup
This commit is contained in:
parent
051be61452
commit
73342e1fcf
@ -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", [])
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user