Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing value for invalid_hereafter #390

Closed
ArturWieczorek opened this issue Dec 11, 2020 · 0 comments · Fixed by #391
Closed

Missing value for invalid_hereafter #390

ArturWieczorek opened this issue Dec 11, 2020 · 0 comments · Fixed by #391
Assignees
Labels

Comments

@ArturWieczorek
Copy link
Contributor

Network: shelley-qa
Release target: 8b8c39d , [email protected]

I am trying to query my TX that contains both, lower and upper time boundary using shelley-qa GQL playground and value for invalid_hereafter is null instead of 10023520:

Query:

query transactionByIdWithBoundaries  {
    transactions(
        where: { hash: { _eq: "65fee935675b77228da6c0b8f0fea740cd6c1ca7c84a23b69f30a02fd72cb1d6" } }
    ) {
        invalidBefore
        invalidHereAfter
    }
}

Response:

{
  "data": {
    "transactions": [
      {
        "invalidBefore": "9923760",
        "invalidHereAfter": null
      }
    ]
  }
}

Here are details for TX:

cardano-cli transaction build-raw --allegra-era \
--tx-in ec7c653924a4b95b57ea26e91d953df1f67ca73dc18ba7d9a2d07f8fc46ae1a7#1 \
--tx-out $(cat extended-payment.addr)+10000000 \
--tx-out $(cat payment.addr)+889958903990 \
--invalid-before 9923760 \
--invalid-hereafter 10023520 \
--fee 184025 \
--metadata-json-file metadata.json \
--metadata-json-file metadata2.json \
--metadata-cbor-file metadata3.cbor \
--metadata-cbor-file metadata4.cbor \
--out-file tx003.raw


cardano-cli transaction sign \
--tx-body-file tx003.raw \
--signing-key-file ../keys/payment.skey \
--testnet-magic 3 \
--out-file tx003.signed


cardano-cli transaction submit \
--tx-file tx003.signed \
--testnet-magic 3


cardano-cli query utxo --address "$(cat payment.addr)" --testnet-magic  3 --allegra-era
                           TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------
65fee935675b77228da6c0b8f0fea740cd6c1ca7c84a23b69f30a02fd72cb1d6     1        889958903990 lovelace
select * from tx where hash='\x65fee935675b77228da6c0b8f0fea740cd6c1ca7c84a23b69f30a02fd72cb1d6';
  id   |                                hash                                | block_id | block_index |   out_sum    |  fee   | deposit | size | invalid_before | invalid_hereafter
-------+--------------------------------------------------------------------+----------+-------------+--------------+--------+---------+------+----------------+-------------------
 21670 | \x65fee935675b77228da6c0b8f0fea740cd6c1ca7c84a23b69f30a02fd72cb1d6 |   476783 |           0 | 889968903990 | 184025 |       0 |  651 |        9923760 |          10023520
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants