Skip to content
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

docs: adjust DB compatibility notes #3545

Merged
merged 1 commit into from
Aug 5, 2024
Merged

docs: adjust DB compatibility notes #3545

merged 1 commit into from
Aug 5, 2024

Conversation

AnnaShaleva
Copy link
Member

It's dangerous to change Max* ProtocolConfiguration settings:

  • Changes in MaxBlockSize, MaxBlockSystemFee and MaxTransactionsPerBlock may lead to the fact that accepted block or transaction becomes invalid. I agree that these settings are not written in the DB, but at the same time it's not correct to compare databases that have these settings mismatched.
  • Changes in MaxTraceableBlocks may lead to the fact that some transaction will be processed differently, it's a possible contract state mismatch.
  • Changes in MaxValidUntilBlockIncrement may lead to the fact that setMaxNotValidBeforeDelta method of native Notary contract may be processed in a different way which is also a possible contract state mismatch.

Ref. 5d29a3f.

It's dangerous to change `Max*` ProtocolConfiguration settings:

* Changes in MaxBlockSize, MaxBlockSystemFee and MaxTransactionsPerBlock
  may lead to the fact that accepted block or transaction becomes invalid.
  I agree that these settings are not written in the DB, but at the same
  time it's not correct to compare databases that have these settings
  mismatched.
* Changes in MaxTraceableBlocks may lead to the fact that some
  transaction will be processed differently, it's a possible contract
  state mismatch.
* Changes in MaxValidUntilBlockIncrement may lead to the fact that
  `setMaxNotValidBeforeDelta` method of native Notary contract may be
  processed in a different way which is also a possible contract state
  mismatch.

Ref. 5d29a3f.

Signed-off-by: Anna Shaleva <[email protected]>
@AnnaShaleva AnnaShaleva added documentation Improvements or additions to documentation U4 Nothing urgent S4 Routine I4 No visible changes labels Aug 5, 2024
@AnnaShaleva AnnaShaleva added this to the v0.106.4 milestone Aug 5, 2024
@roman-khimov roman-khimov merged commit c950891 into master Aug 5, 2024
1 check passed
@roman-khimov roman-khimov deleted the fix-cfg-doc branch August 5, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation I4 No visible changes S4 Routine U4 Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants