diff --git a/Makefile b/Makefile index f3ea3b4272..d60565ed34 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ GithubTop=github.com -Version=v1.1.3 +Version=v1.1.4.1 CosmosSDK=v0.39.2 Tendermint=v0.33.9 Iavl=v0.14.3 diff --git a/libs/tendermint/mempool/clist_mempool.go b/libs/tendermint/mempool/clist_mempool.go index 73327afc96..2e9756f974 100644 --- a/libs/tendermint/mempool/clist_mempool.go +++ b/libs/tendermint/mempool/clist_mempool.go @@ -1105,8 +1105,9 @@ func (nopTxCache) Remove(types.Tx) {} //-------------------------------------------------------------------------------- // txKey is the fixed length array sha256 hash used as the key in maps. -func txKey(tx types.Tx) [sha256.Size]byte { - return sha256.Sum256(tx) +func txKey(tx types.Tx) (retHash [sha256.Size]byte) { + copy(retHash[:], tx.Hash(types.GetVenusHeight())[:sha256.Size]) + return } // txID is the hex encoded hash of the bytes as a types.Tx.