Skip to content

End-to-end testing of the oracle example #32

@SetarehGhorshi

Description

@SetarehGhorshi

Hello.

I have been trying to perform an end-to-end test of the oracle example. For this purpose, I tried running two instances of it on the same machine using the provided command but with different ports.
My first issue was that the two instance were not discovering each other. I was able to fix it by manually sending a ping from one to the other in the discovery process. With this, the connection was established between the two nodes but the OracleConnection which listens to the messages passed between the nodes did not start (This poll did not start).
Based on the logs, there is no Established event received from the proto_events ( according to this part), which based on my understanding means that the into_connection() function has not been called (which is implemented here). And this seems to be the reason for OracleConnection not starting.
I tried with different options for the chain such as mainnet and dev. Also tried with the --dev flag. But still was not able to perform a full test due to the mentioned issue.
I am not sure where the issue comes from so I really appreciate it if there are any instructions for running an end-to-end test of the oracle example.
Also, I was wondering if there is any way so we can run reth on the forked state of holesky for testing?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions