From cb8f5303ddf9d79faab4a78dce8394c3819d0f18 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Wed, 16 Aug 2017 13:08:07 +0700 Subject: [PATCH] Remove a debug print --- block.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/block.go b/block.go index b770a2c..6d8a074 100644 --- a/block.go +++ b/block.go @@ -3,7 +3,6 @@ package main import ( "bytes" "crypto/sha256" - "fmt" "strconv" "time" ) @@ -20,7 +19,6 @@ type Block struct { func (b *Block) SetHash() { timestamp := []byte(strconv.FormatInt(b.Timestamp, 10)) headers := bytes.Join([][]byte{b.PrevBlock, b.Data, timestamp}, []byte{}) - fmt.Printf("%s\n", headers) hash := sha256.Sum256(headers) b.Hash = hash[:]