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

Fix panic when tx hash is nil #2290

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

AnkushinDaniil
Copy link
Contributor

Fix #2239
Replaced the panic call with an error log

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.42%. Comparing base (e3d6ccf) to head (e19cefa).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2290      +/-   ##
==========================================
+ Coverage   75.41%   75.42%   +0.01%     
==========================================
  Files         107      107              
  Lines       11404    11404              
==========================================
+ Hits         8600     8602       +2     
+ Misses       2151     2149       -2     
  Partials      653      653              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

p2p/sync.go Outdated Show resolved Hide resolved
Copy link
Contributor

@pnowosie pnowosie left a comment

Choose a reason for hiding this comment

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

So it looks like nil check was unnecessary 🤔

@AnkushinDaniil AnkushinDaniil merged commit 874e86c into main Nov 28, 2024
13 checks passed
@AnkushinDaniil AnkushinDaniil deleted the daniil/fix-panic-when-tx-hash-is-nil branch November 28, 2024 10:23
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.

Juno panics when receiving Transaction message with nil transaction_hash in P2P sync
3 participants