Handle mempool transactions in test of logged socket.io
This commit is contained in:
parent
84c4bc1811
commit
61e2f90f4f
@ -281,14 +281,15 @@ func verifyGetDetailedTransaction(t *testing.T, id int, lrs *logRequestResponse,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// the tx in the log could have been still in mempool with height -1
|
||||
// the tx in the log could have been still in mempool with Height -1
|
||||
if (bbResponse.Result.Height != logResponse.Result.Height && logResponse.Result.Height != -1) ||
|
||||
bbResponse.Result.Hash != logResponse.Result.Hash {
|
||||
t.Log("getDetailedTransaction", id, "mismatch bb:", bbResponse.Result.Hash, bbResponse.Result.Height,
|
||||
"log:", logResponse.Result.Hash, logResponse.Result.Height)
|
||||
return
|
||||
}
|
||||
if bbResponse.Result.BlockTimestamp != logResponse.Result.BlockTimestamp {
|
||||
// the tx in the log could have been still in mempool with BlockTimestamp 0
|
||||
if bbResponse.Result.BlockTimestamp != logResponse.Result.BlockTimestamp && logResponse.Result.BlockTimestamp != 0 {
|
||||
t.Log("getDetailedTransaction", id, "mismatch BlockTimestamp:", bbResponse.Result.BlockTimestamp,
|
||||
"log:", logResponse.Result.BlockTimestamp)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user