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

Enable consensus_sim #2441

Merged
merged 2 commits into from
Jul 6, 2024
Merged

Enable consensus_sim #2441

merged 2 commits into from
Jul 6, 2024

Conversation

jangko
Copy link
Contributor

@jangko jangko commented Jul 3, 2024

This PR meant to be merged to #2423

nimbus/core/block_import.nim Outdated Show resolved Hide resolved
proc main() =
const basePath = "tests" / "fixtures" / "eth_tests" / "BlockchainTests"
const basePath = "tests/fixtures/eth_tests/BlockchainTests"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this preserve functionality on Windows? / uses DirSep, which might also be \ on Windows.

While for non-\\?\ based paths in Windows, or those for many purposes for the Win32 APIs, they'll handle either / or \, it means that if one has to switch to the style of paths which allow more than MAX_PATH == 260 length, e.g, because of a source directory with a long name, then using / in a hardcoded way would cause this to fail.

Copy link
Contributor Author

@jangko jangko Jul 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far the blockchain tests folder only contains shallow recursion and the file names also short. And it still works on windows

@jangko jangko merged commit 4cd88c0 into server-api Jul 6, 2024
7 checks passed
@jangko jangko deleted the consensus-sim branch July 6, 2024 01:43
jangko added a commit that referenced this pull request Aug 15, 2024
* Enable consensus_sim

* Remove isFile check
tersec pushed a commit that referenced this pull request Sep 4, 2024
* Wiring ForkedChainRef to other components

- Disable majority of hive simulators
- Only enable pyspec_sim for the moment
- The pyspec_sim is using a smaller RPC service wired to ForkedChainRef
- The RPC service will gradually grow

* Addressing PR review

* Fix test_beacon/setup_env

* Enable consensus_sim (#2441)

* Enable consensus_sim

* Remove isFile check

* Enable Engine API jwt auth tests and exchange cap tests

* Enable engine api in build_sim.sh

* Wire ForkedChainRef to Engine API newPayload

* Wire Engine API getBodies to ForkedChainRef

* Wire Engine API api_forkchoice to ForkedChainRef

* Wire more RPC methods to ForkedChainRef

* Implement eth_syncing

* Implement eth_call and eth_getlogs

* TxPool: simplify smartHead

* Fix smartHead usage

* Fix txpool headDiff

* Remove hasBlockHeader and use headerExists

* Addressing review
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 this pull request may close these issues.

2 participants