tothemoon-org / extension-blocks

Extension blocks soft-fork specification
40 stars 6 forks source link

DoS Limits #3

Closed chjj closed 7 years ago

chjj commented 7 years ago

I went ahead and started specifying DoS limits in terms of "inputs cost" (sigops + potentially the size of the wit vector by some divisor) and "outputs cost". Both of these "costs" are weighed based on witness program version, allowing for upgradeable relaxing of DoS limits.

I'm really not sure what the optimal values are right now. This will require some further testing.

The idea is, we will have a slightly high max extension block size, but in reality, the max size ext. block will be much smaller since it is limited by total "transaction cost", which is upgradeable. In the future, we may upgrade to hit the max extension block size if a new soft fork is implemented.

cc @josephpoon @indutny

chjj commented 7 years ago

Moving discussion here: https://github.com/tothemoon-org/extension-blocks/pull/14