Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Nov 23, 2015

No description provided.

@NicolasDorier
Copy link
Contributor

glad to see that at least we would have a mitigation path in case of sigop spam attack. The worried me a bit.

@NicolasDorier
Copy link
Contributor

What is the rational on the default of 20 though ?

During current rules, if all transactions max out the MAX_STANDARD_TX_SIGOPS (4000) we can get 5 transactions in the block.

In size, the maximum those 5 transactions would be is 20000 bytes.
This is 5 bytesperop currently. (without this option)

Not sure if it is relevant though. Just interested to know why you chose 20.

@jonasschnelli
Copy link
Contributor

Concept ACK

@jgarzik
Copy link
Contributor

jgarzik commented Nov 23, 2015

ut ACK

@laanwj laanwj added the Mempool label Nov 24, 2015
@laanwj
Copy link
Member

laanwj commented Nov 27, 2015

Concept ACK

src/init.cpp Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Can you use a constant DEFAULT_MAX_BYTES_PER_SIGOP instead here?

@sipa
Copy link
Member

sipa commented Nov 28, 2015

utACK

@sipa
Copy link
Member

sipa commented Nov 28, 2015

Needs trivial rebase.

@luke-jr
Copy link
Member Author

luke-jr commented Nov 29, 2015

Nit addressed, and rebased.

@osogama
Copy link

osogama commented Nov 29, 2015

Ggggggbgh

On Saturday, November 28, 2015, Luke-Jr [email protected] wrote:

Nit addressed, and rebased.


Reply to this email directly or view it on GitHub
#7081 (comment).

Sent from Gmail Iphone

@sdaftuar
Copy link
Member

I haven't thought hard enough yet about the value of 20 as a default, but conceptually I think something like this makes sense. Could you add a unit test or RPC test that exercises the new logic?

@dcousens
Copy link
Contributor

utACK

@gmaxwell
Copy link
Contributor

gmaxwell commented Dec 1, 2015

ACK, with nit. Do something about that help message.

@gmaxwell gmaxwell modified the milestones: 0.12.0, 0.11.0 Dec 1, 2015
src/init.cpp Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Nit: per @gmaxwell

@luke-jr Also needs rebase

@luke-jr
Copy link
Member Author

luke-jr commented Dec 1, 2015

Done

@morcos
Copy link
Contributor

morcos commented Dec 1, 2015

utACK but agree with previous nit that it would be nice to have a brief explanation of the choice of default.

@dcousens
Copy link
Contributor

dcousens commented Dec 2, 2015

re-ACK

@laanwj
Copy link
Member

laanwj commented Dec 3, 2015

Changed milestone back to 0.12, added "Needs backport" label as it needs backport to 0.11

@btcdrak
Copy link
Contributor

btcdrak commented Jan 8, 2016

utACK 45b8e27 but would be nice to see some RPC tests.

@laanwj
Copy link
Member

laanwj commented Jan 9, 2016

@luke-jr Not sure what you want to do here instead of rebasing, but this somehow needs to be made suitable for merge if you still want it included in 0.12

@laanwj laanwj merged commit fdc202f into bitcoin:master Jan 9, 2016
laanwj added a commit that referenced this pull request Jan 9, 2016
45b8e27 -bytespersigop option to additionally limit sigops in transactions we relay and mine (Luke Dashjr)
@laanwj
Copy link
Member

laanwj commented Feb 4, 2016

This has been backported to 0.12 via #7323, removing "needs backport" label

@ScroogeMcDuckButWithBitcoin

So, are we metacoin guys supposed to go back to p2pkh encoding - or should we just fragment our user's wallets into more inputs, before continuing to use op_multisig encodings?

@morcos
Copy link
Contributor

morcos commented Jun 8, 2016

There were repeated requests in this PR for a justification of the limit chosen which were ignored. It was a mistake to merge the PR without first understanding why 20 was the right number. I apologize for not being more forceful about it at the time.

@sipa
Copy link
Member

sipa commented Jun 8, 2016 via email

@ScroogeMcDuckButWithBitcoin
Copy link

ScroogeMcDuckButWithBitcoin commented Jun 8, 2016

For what it's worth, I've reverted to pub key hash encoding for the time being: https://github.com/17Q4MX2hmktmpuUKHFuoRmS5MfB5XPbhod/dropzone_ruby/blob/master/lib/dropzone/connection.rb#L167-L173

I'd rather not engage in a cat and mouse game on this, and I would expect that doing so would probably just further waste the resources that you guys are generally try to protect.

@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.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.