Skip to content

Conversation

@Wayonb
Copy link
Collaborator

@Wayonb Wayonb commented Mar 10, 2025

problem: couple nemesis tests with new nemesis generated
1. test expects the previous block hash to be zeros
2. block verify was failing due using unsigned transactions
solution: update the generator
1. use zero hash for the previous block hash
2. use signed transactions when creating the block signature.

problem: couple nemesis tests with new nemesis generated
         1. test expects the previous block hash to be zeros
         2. block verify was failing due using unsigned transactions
solution: update the generator
         1. use zero hash for the previous block hash
         2. use signed transactions when creating the block signature.
@Wayonb Wayonb requested review from AnthonyLaw and Jaguar0625 March 10, 2025 16:03
@codecov
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1f8a654) to head (4cff5fe).
Report is 97 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##              dev      #397      +/-   ##
===========================================
+ Coverage   97.88%   100.00%   +2.11%     
===========================================
  Files          17         3      -14     
  Lines         379       218     -161     
  Branches       36         0      -36     
===========================================
- Hits          371       218     -153     
+ Misses          8         0       -8     
Flag Coverage Δ
nem-explorer-frontend ?
nemesis-generator 100.00% <100.00%> (ø)

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

Files with missing lines Coverage Δ
nemesis-generator/generator/__main__.py 100.00% <100.00%> (ø)

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

writer.write_int(Hash256.SIZE + 4, 4) # needed to deserialize the previous block hash object
writer.write_int(Hash256.SIZE, 4)
writer.write_bytes(self.generation_hash.bytes)
previous_block_hash = Hash256.zero()
Copy link
Contributor

Choose a reason for hiding this comment

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

would move this to init

Copy link
Contributor

@Jaguar0625 Jaguar0625 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@AnthonyLaw AnthonyLaw left a comment

Choose a reason for hiding this comment

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

👍🏼

@Wayonb Wayonb merged commit 59ae00a into dev Mar 11, 2025
8 checks passed
@Wayonb Wayonb deleted the fix/nemesis_tests branch March 11, 2025 18:59
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.

4 participants