Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadikSunbul committed Jun 24, 2024
1 parent e64ed9e commit be9caff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,12 @@ func HandleBlock(request []byte, chain *blockchain.BlockChain) {
buff.Write(request[commandLength:])
dec := gob.NewDecoder(&buff)
err := dec.Decode(&payload)
fmt.Println("Handle Block hatası oncesi")
if err != nil {
fmt.Println("Handle Block hatası içi")
log.Panic(err)
}
fmt.Println("Handle Block hatası sonrasıs")

blockData := payload.Block
block := blockchain.Deserialize(blockData)
Expand Down

0 comments on commit be9caff

Please sign in to comment.