Skip to content

Conversation

@nkostoulas
Copy link

Set policyAsset for all core c++ unit tests #408

src/test/txvalidationcache_tests.cpp was failing with memory access violation somewhere in block creation. I believe it's because now that mempool entry fee is correctly set, the fact that the fee output was larger than the non-fee one was causing an issue. I haven't been able to track this down exactly though. Please let me know if you have some idea about this and if the change makes sense.

@jtimon
Copy link
Contributor

jtimon commented Sep 16, 2018

utACK 2bf55e1

spends[i].vin[0].prevout.n = 0;
spends[i].vout.resize(2);
spends[i].vout[0].nValue = 11*CENT;
spends[i].vout[0].nValue = MAX_MONEY-11*CENT;
Copy link
Contributor

Choose a reason for hiding this comment

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

why this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

nevermind

@instagibbs instagibbs merged commit 2bf55e1 into ElementsProject:elements-0.14.1 Sep 16, 2018
instagibbs added a commit that referenced this pull request Sep 16, 2018
2bf55e1 Set policy asset for core unit tests (nkostoulas)
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