From 37ddf3d09efa41b59a9929466235c5bcfc3cf384 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Tue, 14 Apr 2015 15:57:13 -0700 Subject: [PATCH] Merkle root of tx is for signbytes --- types/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/block.go b/types/block.go index c00e90ccb..555395c43 100644 --- a/types/block.go +++ b/types/block.go @@ -277,7 +277,7 @@ func (data *Data) Hash() []byte { if data.hash == nil { bs := make([]interface{}, len(data.Txs)) for i, tx := range data.Txs { - bs[i] = tx + bs[i] = account.SignBytes(tx) } data.hash = merkle.HashFromBinaries(bs) }