-
Notifications
You must be signed in to change notification settings - Fork 648
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
Possible to generate a block that is too large #1136
Comments
To remember this, I think we can add a note to the code
Why not port code from Steem now? Because current code has slightly better performance in current situation due to bitshares-core/libraries/chain/db_block.cpp Line 312 in 5111084
|
Added a comment to block_header struct #1136
Closed via #1142. |
Just noticed that |
My notes (preliminary, verify before trusting):
Issue #1088 will increase the size of |
According to this in-code comment, it can cause unexpected large blocks as well: bitshares-core/libraries/chain/db_block.cpp Lines 365 to 383 in 4b915ef
E.G. force settlement can return different size depends on whether the asset is globally settled. I think we should check size before merging the undo session. |
Fixed by #1252. |
This one: steemit/steem#2632.
IMHO, BitShares doesn't have the same issue, since BitShares block header is fixed size so far. There are 2 fields in Steem block header which made its size non-fixed,
witness
(string) andextensions
(array-like), see changes in the PR steemit/steem#2637.I'm creating this ticket so other developers will get notified, and hope they'll review the code as well. If we have the issue, we need to fix it. If we're going to add data to
extensions
in block header in the future, need to take care of related code to avoid similar issues.The text was updated successfully, but these errors were encountered: