nautls / ergo-graphql

Ergo Platform GraphQL server
MIT License
16 stars 1 forks source link

Mempool: input boxes and proofBytes can sometimes return null #60

Closed pulsarz closed 1 year ago

pulsarz commented 2 years ago

When we use the following query as example, we can sometimes get an empty box in an input or get null proofBytes.

query Transactions { mempool { transactions { transactionId size timestamp inputs { box { boxId value address } proofBytes } } } } image image

capt-nemo429 commented 2 years ago

Issue identified, but not quick solution. So it will be solved for v0.4.1.

It happens when a transaction is using unconfirmed outputs as inputs. Current implementation only looks at confirmed inputs.