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

chore: fix system account issue and hertz storage patch issue on testnet #58

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

pythonberg1997
Copy link
Contributor

Description

This pr is to fix two sync issues

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • optimize hertz storage patch code
  • fix system account issue

Potential Impacts

  • add potential impacts for other components here
  • ...

];
if let Some(patch) = MAINNET_PATCHES_BEFORE_TX.iter().find(|patch| {
patch.block_hash == header.hash_slow() &&
patch.tx_hash == transaction.recalculate_hash()
Copy link
Collaborator

@unclezoro unclezoro Jul 9, 2024

Choose a reason for hiding this comment

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

I think tx_hash is good enough, it is ok to have block hash here to double ensure.

I just think it is not efficient to iterate the array for each transaction, what about put the patch tx into a map instead of an array?

@unclezoro unclezoro added this pull request to the merge queue Jul 9, 2024
Merged via the queue into develop with commit 5c31cac Jul 9, 2024
32 checks passed
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.

None yet

2 participants