|
|
@ -107,8 +107,6 @@ func (IDC *IdentityChain) acceptNewConnection(msgPayload []byte) { |
|
|
|
challengeNonce := int((rnd.Int31())) |
|
|
|
challengeNonce := int((rnd.Int31())) |
|
|
|
req := pow.NewRequest(5, []byte(strconv.Itoa(challengeNonce))) |
|
|
|
req := pow.NewRequest(5, []byte(strconv.Itoa(challengeNonce))) |
|
|
|
IDC.PowMap[Node.Self] = req |
|
|
|
IDC.PowMap[Node.Self] = req |
|
|
|
fmt.Println(Node.Self) |
|
|
|
|
|
|
|
fmt.Println(req) |
|
|
|
|
|
|
|
buffer.Write([]byte(req)) |
|
|
|
buffer.Write([]byte(req)) |
|
|
|
// 32 byte block hash
|
|
|
|
// 32 byte block hash
|
|
|
|
// buffer.Write(prevBlockHash)
|
|
|
|
// buffer.Write(prevBlockHash)
|
|
|
|