Browse Source

Merkle root of tx is for signbytes

pull/55/head
Jae Kwon 10 years ago
parent
commit
37ddf3d09e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/block.go

+ 1
- 1
types/block.go View File

@ -277,7 +277,7 @@ func (data *Data) Hash() []byte {
if data.hash == nil { if data.hash == nil {
bs := make([]interface{}, len(data.Txs)) bs := make([]interface{}, len(data.Txs))
for i, tx := range data.Txs { for i, tx := range data.Txs {
bs[i] = tx
bs[i] = account.SignBytes(tx)
} }
data.hash = merkle.HashFromBinaries(bs) data.hash = merkle.HashFromBinaries(bs)
} }


Loading…
Cancel
Save