is pending logic (#198)

This commit is contained in:
drethereum 2024-08-08 18:44:17 -06:00 committed by GitHub
parent d929f49d2c
commit da5b4d81a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,7 +304,13 @@ missing_data AS (
t.error_reason,
t.trace_status,
t.data,
FALSE AS is_pending,
IFF(
txs.tx_hash IS NULL
OR txs.block_timestamp IS NULL
OR txs.tx_status IS NULL,
TRUE,
FALSE
) AS is_pending,
t._call_id,
GREATEST(
t._inserted_timestamp,