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

Add test for -walletrejectlongchains #9395

Merged
merged 1 commit into from Jan 4, 2017
Merged

Conversation

morcos
Copy link
Member

@morcos morcos commented Dec 21, 2016

txNew was moved from to create wtxNew so we don't really mean to be accessing it afterwards.

The current code is not actually calculating mempool ancestors so -walletrejectlongchains is not having any effect.

@dcousens
Copy link
Contributor

Tests?

@sipa
Copy link
Member

sipa commented Dec 21, 2016

As the CTransaction::CTransaction(CMutableTransaction&& x) constructor that destroys the passed-in object does not exist in 0.13, the backport is actually fine. But we do need to fix this in master.

@maflcko maflcko added this to the 0.14.0 milestone Dec 21, 2016
@morcos
Copy link
Member Author

morcos commented Dec 21, 2016

@dcousens ok test added

@dcousens
Copy link
Contributor

Awesome, thanks @morcos

Copy link
Member

@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

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

utACK

self.nodes[0] = start_node(0, self.options.tmpdir, ["-walletrejectlongchains", "-limitancestorcount="+str(2*chainlimit)])

# wait for loadmempool
timeout = 10
Copy link
Member

Choose a reason for hiding this comment

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

unused value?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops thanks.. adding the update of timeout

@gmaxwell
Copy link
Contributor

utACK

@maflcko
Copy link
Member

maflcko commented Dec 21, 2016

utACK 2f882f8

Copy link
Contributor

@jonasschnelli jonasschnelli left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.
utACK 2f882f899904ab51412da463fd1854fd24426d21

@gmaxwell
Copy link
Contributor

gmaxwell commented Jan 4, 2017

ACK-before-it-was-conflicted needs rebase.

@morcos
Copy link
Member Author

morcos commented Jan 4, 2017

This was fixed in #9283, but still is useful to add the test, so kept that commit . (and changed PR title)

@morcos morcos changed the title Actually calculate mempool ancestors Add test for -walletrejectlongchains Jan 4, 2017
@maflcko maflcko added the Tests label Jan 4, 2017
@maflcko
Copy link
Member

maflcko commented Jan 4, 2017

re-ACK ffeb195

@maflcko maflcko modified the milestones: 0.13.3, 0.14.0 Jan 4, 2017
@maflcko maflcko merged commit ffeb195 into bitcoin:master Jan 4, 2017
maflcko pushed a commit that referenced this pull request Jan 4, 2017
ffeb195 add test for -walletrejectlongchains (Alex Morcos)
codablock pushed a commit to codablock/dash that referenced this pull request Jan 18, 2018
ffeb195 add test for -walletrejectlongchains (Alex Morcos)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
ffeb195 add test for -walletrejectlongchains (Alex Morcos)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 26, 2019
ffeb195 add test for -walletrejectlongchains (Alex Morcos)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants