Merkle root of tx is for signbytes

This commit is contained in:
Jae Kwon
2015-04-14 15:57:13 -07:00
parent dcdf74ccc2
commit 37ddf3d09e

View File

@@ -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)
}