Skip to content

fix(core-transaction-pool): always apply to sender wallet on acceptChainedBlock#3594

Merged
air1one merged 2 commits intoArkEcosystem:2.6from
deanpress:master
Mar 11, 2020
Merged

fix(core-transaction-pool): always apply to sender wallet on acceptChainedBlock#3594
air1one merged 2 commits intoArkEcosystem:2.6from
deanpress:master

Conversation

@deanpress
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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.

2 participants