remove bootstrap node (#3447)

This commit is contained in:
Nishant Das
2019-09-12 12:46:16 +05:30
committed by GitHub
parent 273b917319
commit 3e8a94516d
3 changed files with 6 additions and 7 deletions

View File

@@ -589,10 +589,10 @@ func TestProcessJustificationAndFinalization_NoBlockRootCurrentEpoch(t *testing.
Root: params.BeaconConfig().ZeroHash[:],
},
FinalizedCheckpoint: &ethpb.Checkpoint{},
JustificationBits: []byte{0x03}, // 0b0011
Validators: []*ethpb.Validator{{ExitEpoch: e}, {ExitEpoch: e}, {ExitEpoch: e}, {ExitEpoch: e}},
Balances: []uint64{a, a, a, a}, // validator total balance should be 128000000000
BlockRoots: blockRoots,
JustificationBits: []byte{0x03}, // 0b0011
Validators: []*ethpb.Validator{{ExitEpoch: e}, {ExitEpoch: e}, {ExitEpoch: e}, {ExitEpoch: e}},
Balances: []uint64{a, a, a, a}, // validator total balance should be 128000000000
BlockRoots: blockRoots,
}
attestedBalance := 4 * e * 3 / 2
_, err := ProcessJustificationAndFinalization(state, 0, attestedBalance)

View File

@@ -6,14 +6,13 @@ import (
"testing"
"github.com/gogo/protobuf/proto"
"github.com/prysmaticlabs/go-ssz"
ob "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
eth "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
"github.com/prysmaticlabs/go-ssz"
"github.com/prysmaticlabs/prysm/shared/params"
"gopkg.in/d4l3k/messagediff.v1"
)
func loadSszOrDie(t *testing.T, filepath string, dst interface{}) {
b, err := ioutil.ReadFile(filepath)
if err != nil {

View File

@@ -67,7 +67,7 @@ var (
BootstrapNode = cli.StringFlag{
Name: "bootstrap-node",
Usage: "The address of bootstrap node. Beacon node will connect for peer discovery via DHT",
Value: "/ip4/35.224.249.2/tcp/30001/p2p/QmQEe7o6hKJdGdSkJRh7WJzS6xrex5f4w2SPR6oWbJNriw",
Value: "",
}
// RelayNode tells the beacon node which relay node to connect to.
RelayNode = cli.StringFlag{