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

Feature request: allow setup_test_provider to receive relayer configs #1513

Open
DefiCake opened this issue Sep 24, 2024 · 0 comments · May be fixed by #1514
Open

Feature request: allow setup_test_provider to receive relayer configs #1513

DefiCake opened this issue Sep 24, 2024 · 0 comments · May be fixed by #1514
Assignees

Comments

@DefiCake
Copy link
Member

DefiCake commented Sep 24, 2024

Currently, setup_test_provider bootstraps a standalone fuel-core node. One part of the bootstrap process cannot be accessed: enabling the message passing from Ethereum to Fuel. If we at least enabled --relayer and --relayer-v2-listening-contracts, a lot of testing around messages would be simplified, as we could organically add messages to the fuel node, while we can only do this kind of testing by generating these messages in the genesis.

fuel-core run --help
...
--enable-relayer
          Enable the Relayer. By default, the Relayer is disabled, even when the binary is compiled with the "relayer" feature flag. Providing `--enable-relayer` will enable the relayer service

      --relayer <RELAYER>
          Uri address to ethereum client. It can be in format of `http://localhost:8545/` or `ws://localhost:8545/`. If not set relayer will not start
          
          [env: RELAYER=]

      --relayer-v2-listening-contracts <ETH_V2_LISTENING_CONTRACTS>
          Ethereum contract address. Create EthAddress into fuel_types
          
          [env: ETH_V2_LISTENING_CONTRACTS=]

      --relayer-da-deploy-height <DA_DEPLOY_HEIGHT>
          Number of da block that the contract is deployed at
          
          [env: DA_DEPLOY_HEIGHT=]
          [default: 0]

      --relayer-log-page-size <LOG_PAGE_SIZE>
          Number of pages or blocks containing logs that should be downloaded in a single call to the da layer
          
          [env: LOG_PAGE_SIZE=]
          [default: 10000]

      --relayer-min-duration-s <SYNC_MINIMUM_DURATION_SECS>
          The minimum number of seconds that the relayer polling loop will take before running again. If this is too low the DA layer risks being spammed
          
          [env: SYNC_MINIMUM_DURATION_SECS=]
          [default: 5]

      --relayer-eth-sync-call-freq-s <SYNCING_CALL_FREQUENCY_SECS>
          [env: SYNCING_CALL_FREQUENCY_SECS=]
          [default: 5]

      --relayer-eth-sync-log-freq-s <SYNCING_LOG_FREQUENCY_SECS>
          [env: SYNCING_LOG_FREQUENCY_SECS=]
          [default: 60]
@DefiCake DefiCake self-assigned this Sep 24, 2024
@DefiCake DefiCake changed the title Feature request: allow setup_testnet_provider to receive relayer configs Feature request: allow setup_test_provider to receive relayer configs Sep 24, 2024
@DefiCake DefiCake linked a pull request Sep 24, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant