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

Issues with determinism between production-mode and dev mode #225

Closed
sduchesneau opened this issue May 26, 2023 · 3 comments
Closed

Issues with determinism between production-mode and dev mode #225

sduchesneau opened this issue May 26, 2023 · 3 comments
Assignees

Comments

@sduchesneau
Copy link
Contributor

(Similar issues must be investigated when switching between wasmtime and wazero on feature/wazero branch)

Running the following commands show determinism issues:

SERVER-SIDE: from latest firehose-ethereum v1.4.3, pointing to eth-mainnet blocks
fireeth start firehose --substreams-enabled=true --substreams-state-store-url=/tmp/states [...]

dev-mode:
rm -rf /tmp/states && substreams run -e localhost:9000 --insecure https://github.com/streamingfast/substreams-uniswap-v3/releases/download/v0.2.7/substreams.spkg graph_out -t 12369800 | grep -vE '(^TraceID|all.done)' | jq -s '.[1]["@data"].entityChanges|.[0].entity' returns "Pool"

prod-mode:
rm -rf /tmp/states && substreams run -e localhost:9000 --insecure https://github.com/streamingfast/substreams-uniswap-v3/releases/download/v0.2.7/substreams.spkg graph_out -t 12369800 --production-mode | grep -vE '(^TraceID|all.done)' | jq -s '.[1]["@data"].entityChanges|.[0].entity' returns "Transaction"

@sduchesneau sduchesneau self-assigned this May 26, 2023
@sduchesneau
Copy link
Contributor Author

Possibly linked, in feature/wazero branch, even when using wasmtime as the runtime:

SERVER-SIDE: from firehose-ethereum branch feature/wazero-parallel
fireeth start firehose --substreams-enabled=true --substreams-state-store-url=/tmp/states [...]

dev-mode:
rm -rf /tmp/states && substreams run -e localhost:9000 --insecure https://github.com/streamingfast/substreams-uniswap-v3/releases/download/v0.2.7/substreams.spkg graph_out -t 12369800 | grep -vE '(^TraceID|all.done)' | jq -s '.[1]["@data"].entityChanges|.[0].entity' returns "PoolDayData"

(this is different than both values from the v1.4.3 branch)

@sduchesneau
Copy link
Contributor Author

This has been fixed in feature/wazero branch. Merging to develop soon.

@sduchesneau
Copy link
Contributor Author

Fixed #229

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

No branches or pull requests

1 participant