From 7e277fa948caedd3bb0efb14ab2aff1947d6817d Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 5 Aug 2024 12:26:19 +0300 Subject: [PATCH] docs: adjust DB compatibility notes 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. 5d29a3fdabb5f643b843e874fd8ffd8872ad01aa. Signed-off-by: Anna Shaleva --- docs/node-configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/node-configuration.md b/docs/node-configuration.md index 3250fdd7f..83c149e62 100644 --- a/docs/node-configuration.md +++ b/docs/node-configuration.md @@ -412,9 +412,9 @@ configurations you may want to save some resources by performing synchronization on one node and then copying the DB over to other instances. In general, this can be done and this is supported, but NeoGo has a lot of options that may affect this: -- any differences in `ProtocolConfiguration` section make databases - incompatible, except for `Max*` settings, `MemPoolSize`, - `P2PNotaryRequestPayloadPoolSize`, `SeedList`, `TimePerBlock`. +- any differences in `ProtocolConfiguration` section make (or may make) databases + incompatible, except for `MemPoolSize`, `P2PNotaryRequestPayloadPoolSize`, + `SeedList`, `TimePerBlock`. Protocol configuration is expected to be the same on all nodes of the same network, so don't touch it unless you know what you're doing. - DB types (Level/Bolt) must be the same