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 allowed txs to be able to handle multiple txs for same from address #4623

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

GheisMohammadi
Copy link
Contributor

Issue

The allowed transactions file could have multiple entries for the same "from" address. The current code only keeps the latest entry and ignores the previous ones. This PR addresses this issue by setting a map of allowed transactions to an array of transaction data, rather than a map of "from" to a single transaction data.

Copy link
Contributor

@diego1q2w diego1q2w left a comment

Choose a reason for hiding this comment

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

looks good to me and I like the unit test that already include the situation we are dealing with.

core/tx_pool.go Outdated Show resolved Hide resolved
Co-authored-by: Diego Nava <8563843+diego1q2w@users.noreply.github.com>
@ONECasey ONECasey merged commit ae4ffeb into dev Jan 30, 2024
4 checks passed
@ONECasey ONECasey deleted the fix/allowed_tx branch January 30, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants