Skip to content

Conversation

@sdaftuar
Copy link
Member

This change to the unit test should have happened in #8295. Now that size accounting is supported by the mining algorithm, we shouldn't disable size accounting in the mining unit tests.

@sipa
Copy link
Member

sipa commented Jul 28, 2016

utACK 8bfd708

@maflcko maflcko added the Mining label Jul 31, 2016
@paveljanik
Copy link
Contributor

utACK 8bfd708

1 similar comment
@paveljanik
Copy link
Contributor

utACK 8bfd708

// Disable size accounting (CPFP does not support it)
mapArgs["-blockmaxsize"] = strprintf("%u", MAX_BLOCK_SERIALIZED_SIZE);

// Note that by default, these tests run with size accounting enabled.
Copy link
Member

Choose a reason for hiding this comment

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

Whoa, this global state was set without reverting it again at the end of the testcase? Please don't do that.

In any case ACK.

@laanwj laanwj merged commit 8bfd708 into bitcoin:master Aug 1, 2016
laanwj added a commit that referenced this pull request Aug 1, 2016
8bfd708 Enable size accounting in mining unit tests (Suhas Daftuar)
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Sep 21, 2016
@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.

6 participants