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

Blockchain tests support: Introduce difficulty calculation in t8n #682

Merged
merged 4 commits into from
Sep 1, 2023

Conversation

rodiazet
Copy link
Collaborator

@rodiazet rodiazet commented Aug 9, 2023

  • Add ommer block reward
  • Difficulty calculation added
  • Use it in t8n interface implementation

@rodiazet rodiazet requested review from chfast and gumb0 August 9, 2023 13:53
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #682 (ab77bf9) into master (07a371b) will decrease coverage by 0.09%.
The diff coverage is 91.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #682      +/-   ##
==========================================
- Coverage   97.62%   97.54%   -0.09%     
==========================================
  Files          89       91       +2     
  Lines        8382     8473      +91     
==========================================
+ Hits         8183     8265      +82     
- Misses        199      208       +9     
Flag Coverage Δ
blockchaintests 63.05% <ø> (ø)
statetests 73.28% <40.35%> (-0.91%) ⬇️
statetests-silkpre 22.82% <24.21%> (-0.08%) ⬇️
unittests 95.42% <91.50%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
test/state/hash_utils.hpp 100.00% <ø> (ø)
test/state/state.hpp 100.00% <ø> (ø)
test/statetest/statetest.hpp 100.00% <ø> (ø)
test/unittests/state_transition.hpp 0.00% <ø> (ø)
test/unittests/state_transition.cpp 93.61% <50.00%> (-2.04%) ⬇️
test/state/ethash_difficulty.cpp 72.41% <72.41%> (ø)
test/state/state.cpp 98.74% <100.00%> (+0.05%) ⬆️
test/statetest/statetest_loader.cpp 91.08% <100.00%> (+0.74%) ⬆️
test/statetest/statetest_runner.cpp 100.00% <100.00%> (ø)
test/unittests/state_difficulty_test.cpp 100.00% <100.00%> (ø)
... and 4 more

test/t8n/t8n.cpp Outdated Show resolved Hide resolved
@rodiazet rodiazet force-pushed the difficulty-t8n branch 3 times, most recently from 855ac74 to b82e07f Compare August 16, 2023 17:17
@rodiazet rodiazet changed the title Blockchain tests fixing: Introduce difficulty calculation in t8n Blockchain tests support: Introduce difficulty calculation in t8n Aug 17, 2023
@rodiazet rodiazet requested a review from chfast August 18, 2023 11:48
@rodiazet rodiazet force-pushed the difficulty-t8n branch 3 times, most recently from d85ec28 to 2c54f0c Compare August 22, 2023 09:04
test/state/ethash_difficulty.hpp Outdated Show resolved Hide resolved
test/state/state.hpp Outdated Show resolved Hide resolved
test/state/state.hpp Outdated Show resolved Hide resolved
test/state/state.hpp Show resolved Hide resolved
test/state/state.hpp Outdated Show resolved Hide resolved
test/state/state.cpp Outdated Show resolved Hide resolved
test/state/state.cpp Outdated Show resolved Hide resolved
Add `state::EmptyListHash` representing the keccak hash
of the empty RLP list.

Init expected logs hash in StateTranstionTest to EmptyListHash.
@chfast chfast force-pushed the difficulty-t8n branch 2 times, most recently from 83fa073 to cb625cf Compare August 31, 2023 14:17
test/state/state.hpp Outdated Show resolved Hide resolved
test/t8n/t8n.cpp Outdated Show resolved Hide resolved
test/t8n/t8n.cpp Outdated Show resolved Hide resolved
@rodiazet rodiazet force-pushed the difficulty-t8n branch 2 times, most recently from 6744ded to 599fff8 Compare August 31, 2023 14:54
test/state/state.cpp Outdated Show resolved Hide resolved
test/state/state.cpp Outdated Show resolved Hide resolved
@rodiazet rodiazet force-pushed the difficulty-t8n branch 2 times, most recently from ac8b525 to e42a314 Compare September 1, 2023 16:48
@rodiazet rodiazet merged commit 503ec3c into master Sep 1, 2023
1 of 3 checks passed
@rodiazet rodiazet deleted the difficulty-t8n branch September 1, 2023 17:22
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.

3 participants