mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 17:31:34 +00:00
fix TxID to use ripemd160 in events and rpc return
This commit is contained in:
@ -3,7 +3,6 @@ package rpctest
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/tendermint/tendermint/account"
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
"github.com/tendermint/tendermint/types"
|
||||
"testing"
|
||||
@ -59,9 +58,9 @@ func testSignedTx(t *testing.T, typ string) {
|
||||
func testOneSignTx(t *testing.T, typ string, addr []byte, amt int64) {
|
||||
tx := makeDefaultSendTx(t, typ, addr, amt)
|
||||
tx2 := signTx(t, typ, tx, user[0])
|
||||
tx2hash := account.HashSignBytes(chainID, tx2)
|
||||
tx2hash := types.TxID(chainID, tx2)
|
||||
tx.SignInput(chainID, 0, user[0])
|
||||
txhash := account.HashSignBytes(chainID, tx)
|
||||
txhash := types.TxID(chainID, tx)
|
||||
if bytes.Compare(txhash, tx2hash) != 0 {
|
||||
t.Fatal("Got different signatures for signing via rpc vs tx_utils")
|
||||
}
|
||||
|
Reference in New Issue
Block a user