diff --git a/bios.go b/bios.go index ac1cf09..a34afda 100644 --- a/bios.go +++ b/bios.go @@ -201,7 +201,7 @@ func (b *BIOS) RunBootSequence(secretP2PAddress string) error { pubKey := ephemeralPrivateKey.PublicKey().String() privKey := ephemeralPrivateKey.String() - fmt.Println("Generated ephemeral private keys:", pubKey, privKey) + fmt.Printf("Generated ephemeral keys: pub=%s priv=%s..%s\n", pubKey, privKey[:7], privKey[len(privKey)-7:]) // Store keys in wallet, to sign `SetCode` and friends.. if err := b.EOSAPI.Signer.ImportPrivateKey(privKey); err != nil { diff --git a/network.go b/network.go index dd3adb4..fd12d8a 100644 --- a/network.go +++ b/network.go @@ -69,6 +69,10 @@ func (c *Network) TraverseGraph() error { c.visitedFiles[ipfsRef] = true + c.MyPeer = &Peer{ + Discovery: disco, + } + return c.traversePeer(disco, IPNSRef("local "+c.myDiscoveryFile), ipfsRef) } diff --git a/sample_config/publish_discovery_file.sh b/sample_config/publish_discovery_file.sh deleted file mode 100755 index 5ca19cf..0000000 --- a/sample_config/publish_discovery_file.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -echo "Publishing our discovery file to a well-known location." - -# Publish to a location where there is NO CACHING, so the community -# can quickly get updated when you change your mind or your peers. - -# To avoid a single point of failure, be creative as to where you -# publish it. Choose a highly available location, with DDoS protection - -cp my_discovery_file.yaml /keybase/public/my-keybase-user/eos-freezing/testnet-name1.yaml - -# This would be made available at: https://my-keybase-user.keybase.pub/eos-freezing/testnet-name1.yaml diff --git a/sample_config/run_ipfs.sh b/sample_config/run_ipfs.sh index fbb1d68..6c6c910 100755 --- a/sample_config/run_ipfs.sh +++ b/sample_config/run_ipfs.sh @@ -9,14 +9,4 @@ if [ ! -f ./ipfs ]; then exit 1 fi -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ -# ./ipfs config swarm.preseed.addres /ip4/1.2.3.4/tcp/4001/ - ./ipfs daemon --init