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(core-transaction-pool): always apply to sender wallet on acceptChainedBlock #3594

Merged
merged 2 commits into from
Mar 11, 2020

Conversation

deanpress
Copy link
Contributor

@deanpress deanpress commented Mar 10, 2020

Currently, when a node syncs from genesis, not all transactions are applied to the relevant sender wallets in the transaction pool's acceptChainedBlock.

This causes issues where the pool wallet state becomes inconsistent with the database wallet state.

By guaranteeing that the sender wallet is always set, the transactions are always properly applied to the relevant wallets on acceptChainedBlock, and the state & db wallets remain in sync.

@ghost
Copy link

ghost commented Mar 10, 2020

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost ghost added Complexity: Low labels Mar 10, 2020
@deanpress deanpress changed the title fix(pool): always define wallets on acceptChainedBlock (WIP) fix(pool): always define wallets on acceptChainedBlock Mar 10, 2020
@deanpress deanpress changed the title (WIP) fix(pool): always define wallets on acceptChainedBlock fix(pool): always define wallets on acceptChainedBlock Mar 10, 2020
@deanpress deanpress changed the title fix(pool): always define wallets on acceptChainedBlock fix(pool): always define senderWallet on acceptChainedBlock Mar 10, 2020
@deanpress deanpress changed the base branch from master to 2.6 March 11, 2020 00:40
@ghost
Copy link

ghost commented Mar 11, 2020

A collaborator has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@air1one air1one changed the title fix(pool): always define senderWallet on acceptChainedBlock fix(core-transaction-pool): always apply to sender wallet on acceptChainedBlock Mar 11, 2020
@air1one air1one merged commit 77c9a88 into ArkEcosystem:2.6 Mar 11, 2020
@ghost
Copy link

ghost commented Mar 11, 2020

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.

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