Skip to content

HasTransaction returns false even when there's a matching tx in the mempool #376

@szg251

Description

@szg251

What Git revision / release tag are you using?

6.0.1

Do you use any client SDK? If yes, which one?

None

Describe what the problem is?

hasTransaction returns a false even though the transaction can be confirmed via nextTransaction calls.
A simple example:

            let _ = self.acquire_mempool().await?;
            dbg!(tx_hash);
            let has_tx = self.has_transaction(tx_hash).await?;
            dbg!(has_tx);
            let tx = self.next_transaction().await?;
            dbg!(tx);

The logs produced by dbg:

[src/utils/ogmios.rs:208] tx_hash = TransactionHash(
    82892b2eabd3e257a22733d8f6fd93c44edfd7171199292e6584f87c1c220362,
)
[src/utils/ogmios.rs:210] has_tx = false
[src/utils/ogmios.rs:212] tx = Object {
    "transaction": Object {
        "id": String("82892b2eabd3e257a22733d8f6fd93c44edfd7171199292e6584f87c1c220362"),
    },
}

What should be the expected behavior?

HasTransaction returns true when tx is in mempool

If applicable, what are the logs from the server around the occurence of the problem?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwon't fix / upstream issueAn issue which is either not covered by Ogmios, or requires changes upstream first.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions