mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
mempool: correct args order in the log msg (#3221)
Before: Unexpected tx response from proxy during recheck\n Expected: {r.CheckTx.Data}, got: {memTx.tx} After: Unexpected tx response from proxy during recheck\n Expected: {memTx.tx}, got: {tx} Closes #3214
This commit is contained in:
parent
e1edd2aa6a
commit
0b3a87a323
@ -408,14 +408,11 @@ func (mem *Mempool) resCbRecheck(req *abci.Request, res *abci.Response) {
|
|||||||
case *abci.Response_CheckTx:
|
case *abci.Response_CheckTx:
|
||||||
tx := req.GetCheckTx().Tx
|
tx := req.GetCheckTx().Tx
|
||||||
memTx := mem.recheckCursor.Value.(*mempoolTx)
|
memTx := mem.recheckCursor.Value.(*mempoolTx)
|
||||||
if !bytes.Equal(req.GetCheckTx().Tx, memTx.tx) {
|
if !bytes.Equal(tx, memTx.tx) {
|
||||||
cmn.PanicSanity(
|
panic(fmt.Sprintf(
|
||||||
fmt.Sprintf(
|
"Unexpected tx response from proxy during recheck\nExpected %X, got %X",
|
||||||
"Unexpected tx response from proxy during recheck\nExpected %X, got %X",
|
memTx.tx,
|
||||||
r.CheckTx.Data,
|
tx))
|
||||||
memTx.tx,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
var postCheckErr error
|
var postCheckErr error
|
||||||
if mem.postCheck != nil {
|
if mem.postCheck != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user