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

00602 Transaction wrongly shows a parent transaction property #630

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

svienot
Copy link
Collaborator

@svienot svienot commented Jun 7, 2023

Description:

Simple change to make sure that a random transaction with nonce=0 is not considered a 'parent' transaction. To be a parent, it also needs to have at least one child (i.e. transaction with same ID and parent_consensus_timestamp property set).

Related issue(s):

Fixes #602

Notes for reviewer:

Without this fix, the following transaction wrongly displays a parent transaction:
https://hashscan.io/mainnet/transaction/1684345315.068887004

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
…ilar links.

Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
@github-actions
Copy link

github-actions bot commented Jun 7, 2023

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 79.63% 6021/7561
🟡 Branches
60.79% (+0.04% 🔼)
2462/4050
🟡 Functions 76.11% 1163/1528
🟡 Lines 79.68% 5696/7149

Test suite run success

317 tests passing in 72 suites.

Report generated by 🧪jest coverage report action from 21d2fe5

@sonarcloud
Copy link

sonarcloud bot commented Jun 7, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@svienot svienot requested a review from ericleponner June 7, 2023 14:52
@ericleponner ericleponner merged commit f69bf5a into main Jun 7, 2023
@ericleponner ericleponner deleted the 00602-wrongly-shows-parent-tx branch June 7, 2023 15:50
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.

Transaction is shown as a child transactions while its parent_consensus_timestamp is null
2 participants