@ -63,6 +63,15 @@ func (IDC *IdentityChain) SelectIds() {
}
//AcceptConnections welcomes new connections
func (IDC *IdentityChain) AcceptConnections() {
registerNode()
func (IDC *IdentityChain) registerNode() {
//StartServer a server and process the request by a handler.
func (IDC *IdentityChain) StartServer() {
fmt.Println("Starting server...")
@ -38,12 +38,12 @@ func (msgType MessageType) String() string {
"Register",
"Acknowledge",
"Leader",
"IDCKey"
"Node_Info"
"Peers"
"IDCKey",
"Node_Info",
"Peers",
if msgType < Register || msgType > Config {
if msgType < Register || msgType > Peers {
return "Unknown"
return names[msgType]