package beaconchain import "testing" func TestNewNode(t *testing.T) { var ip, port string ip = "127.0.0.1" port = "8080" numshards := 2 bc := New(numshards, ip, port) if bc.PubKey == nil { t.Error("beacon chain public key not initialized") } if bc.NumberOfNodesAdded != 0 { t.Error("beacon chain number of nodes starting with is not zero! (should be zero)") } if bc.NumberOfShards != numshards { t.Error("beacon chain number of shards not initialized to given number of desired shards") } }