Skip to content

Commit be9caff

Browse files
committed
.
1 parent e64ed9e commit be9caff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

network/network.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,12 @@ func HandleBlock(request []byte, chain *blockchain.BlockChain) {
204204
buff.Write(request[commandLength:])
205205
dec := gob.NewDecoder(&buff)
206206
err := dec.Decode(&payload)
207+
fmt.Println("Handle Block hatası oncesi")
207208
if err != nil {
209+
fmt.Println("Handle Block hatası içi")
208210
log.Panic(err)
209211
}
212+
fmt.Println("Handle Block hatası sonrasıs")
210213

211214
blockData := payload.Block
212215
block := blockchain.Deserialize(blockData)

0 commit comments

Comments
 (0)