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) {
|
async mountNode(node) {
|
||||||
const token = await this.props.client.call('Pond.TokenFor', [node.ID])
|
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 () => {
|
client.on('open', async () => {
|
||||||
const id = await client.call("Filecoin.ID", [])
|
const id = await client.call("Filecoin.ID", [])
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ class StorageNode extends React.Component {
|
|||||||
token: token,
|
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 () => {
|
client.on('open', async () => {
|
||||||
this.setState(() => ({
|
this.setState(() => ({
|
||||||
state: stateConnected,
|
state: stateConnected,
|
||||||
|
@ -20,6 +20,7 @@ import (
|
|||||||
"github.com/filecoin-project/specs-actors/actors/abi"
|
"github.com/filecoin-project/specs-actors/actors/abi"
|
||||||
"github.com/filecoin-project/specs-actors/actors/builtin/miner"
|
"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/cmd/lotus-seed/seed"
|
||||||
"github.com/filecoin-project/lotus/genesis"
|
"github.com/filecoin-project/lotus/genesis"
|
||||||
)
|
)
|
||||||
@ -69,6 +70,7 @@ func (api *api) Spawn() (nodeInfo, error) {
|
|||||||
Balance: types.FromFil(5000000),
|
Balance: types.FromFil(5000000),
|
||||||
Meta: (&genesis.AccountMeta{Owner: genm.Owner}).ActorMeta(),
|
Meta: (&genesis.AccountMeta{Owner: genm.Owner}).ActorMeta(),
|
||||||
})
|
})
|
||||||
|
template.VerifregRootKey = gen.DefaultVerifregRootkeyActor
|
||||||
|
|
||||||
tb, err := json.Marshal(&template)
|
tb, err := json.Marshal(&template)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user