-
Notifications
You must be signed in to change notification settings - Fork 38.7k
-bytespersigop option to additionally limit sigops in transactions we relay and mine #7081
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
Conversation
|
glad to see that at least we would have a mitigation path in case of sigop spam attack. The worried me a bit. |
|
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. Not sure if it is relevant though. Just interested to know why you chose 20. |
|
Concept ACK |
|
ut ACK |
|
Concept ACK |
src/init.cpp
Outdated
There was a problem hiding this comment.
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?
|
utACK |
|
Needs trivial rebase. |
d082704 to
eaaf6f8
Compare
|
Nit addressed, and rebased. |
|
Ggggggbgh On Saturday, November 28, 2015, Luke-Jr [email protected] wrote:
Sent from Gmail Iphone |
|
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? |
|
utACK |
eaaf6f8 to
90e7a8f
Compare
|
ACK, with nit. Do something about that help message. |
src/init.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90e7a8f to
45b8e27
Compare
|
Done |
|
utACK but agree with previous nit that it would be nice to have a brief explanation of the choice of default. |
|
re-ACK |
|
Changed milestone back to 0.12, added "Needs backport" label as it needs backport to 0.11 |
|
utACK 45b8e27 but would be nice to see some RPC tests. |
|
@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 |
45b8e27 -bytespersigop option to additionally limit sigops in transactions we relay and mine (Luke Dashjr)
|
This has been backported to 0.12 via #7323, removing "needs backport" label |
|
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? |
|
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. |
|
I think we should change the behavior so that transactions with too high
sigops are simply treated as if their corresponding size was larger too.
|
|
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. |
No description provided.