Skip to content

Conversation

@NicolasDorier
Copy link
Contributor

@jtimon
Copy link
Contributor

jtimon commented Jul 15, 2016

ACK e7ad8a7

// witness tree.
if (block.vtx[0].wit.vtxinwit.size() != 1 || block.vtx[0].wit.vtxinwit[0].scriptWitness.stack.size() != 1 || block.vtx[0].wit.vtxinwit[0].scriptWitness.stack[0].size() != 32) {
return state.DoS(100, error("%s : invalid witness nonce size", __func__), REJECT_INVALID, "bad-witness-nonce-size", true);
return state.DoS(100, false, REJECT_INVALID, "bad-witness-nonce-size", true, strprintf("%s : invalid witness nonce size", __func__));
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it's worth keeping the func but I'm not against it.

Copy link
Member

Choose a reason for hiding this comment

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

Tend to agree with @jtimon. I think it was removed in other places where information was migrated to the debug message.

Copy link
Member

Choose a reason for hiding this comment

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

Agree with removing. I don't think function names are very useful to most debug.log readers, and to those that are, you can just grep the source code for the message. Though perhaps we should do a combined effort of fixing it everywhere. ACK with or without func

@btcdrak
Copy link
Contributor

btcdrak commented Jul 16, 2016

ACK e7ad8a7

@laanwj
Copy link
Member

laanwj commented Jul 21, 2016

Needs rebase

@sipa
Copy link
Member

sipa commented Jul 21, 2016

utACK (with or without func), but needs rebase.

@NicolasDorier
Copy link
Contributor Author

rebased

@laanwj laanwj merged commit 7821889 into bitcoin:master Jul 21, 2016
laanwj added a commit that referenced this pull request Jul 21, 2016
…lock

7821889 Consensus: Remove calls to error() from ContextualCheckBlock (NicolasDorier)
@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.

5 participants