mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 02:31:46 +00:00
fix TxID to use ripemd160 in events and rpc return
This commit is contained in:
@ -314,7 +314,9 @@ func (tx *DupeoutTx) String() string {
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
func TxId(chainID string, tx Tx) []byte {
|
||||
// NOTE: the tx merkle tree uses sha256, so this TxID is really just for
|
||||
// reference when using the rpc and catching events
|
||||
func TxID(chainID string, tx Tx) []byte {
|
||||
signBytes := account.SignBytes(chainID, tx)
|
||||
return binary.BinaryRipemd160(signBytes)
|
||||
}
|
||||
|
Reference in New Issue
Block a user