This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
Merkle root of tx is for signbytes
pull/55/head
Jae Kwon
10 years ago
parent
dcdf74ccc2
commit
37ddf3d09e
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
{
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
)
}
Write
Preview
Loading…
Cancel
Save