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

Update mempool unit test to reflect actual behaviour. #3062

Merged

Conversation

SWvheerden
Copy link
Collaborator

@SWvheerden SWvheerden commented Jul 6, 2021

Description

The test block_event_and_reorg_event_handling was updated and fixed on the develpment branch.
Given the following double spend:

Tx1: U1 > U2
Tx2: U1 > U3

On the development branch the following happened in the mempool with double spend:

When Tx1 is mined:
Tx1 will go to the ReOrg pool.
Tx2 will be deleted.

On the tari_script branch the following happened in the mempool with double spend:

When Tx1 is mined:
Tx1 will go to the ReOrg pool.
Tx2 will go to the ReOrg pool.

Motivation and Context

We need the test to reflect the actual behavior of the code, so this test is updated to reflect the actual behavior.

How Has This Been Tested?

Checklist:

  • I'm merging against the development branch.
  • I have squashed my commits into a single commit.

@SWvheerden SWvheerden changed the base branch from development to tari-script July 6, 2021 15:14
sdbondi
sdbondi previously approved these changes Jul 7, 2021
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

LGTM

@stringhandler stringhandler changed the base branch from tari-script to development July 7, 2021 09:10
@stringhandler stringhandler dismissed sdbondi’s stale review July 7, 2021 09:10

The base branch was changed.

@stringhandler stringhandler merged commit cdf24c9 into tari-project:development Jul 7, 2021
@SWvheerden SWvheerden deleted the sw_fix_unit_test branch August 12, 2021 06:41
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.

3 participants