fix TxID to use ripemd160 in events and rpc return

This commit is contained in:
Ethan Buchman
2015-07-10 05:56:38 +00:00
parent 69a9dc932a
commit 72b681a1bc
7 changed files with 11 additions and 11 deletions

View File

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