File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 7.0.0-dev6]
9+
10+ [ 7.0.0-dev6 ] : https://github.com/microsoft/CCF/releases/tag/ccf-7.0.0-dev6
11+
12+ ### Changed
13+
14+ - Start nodes now confirm that read-only ledger directories are empty on startup (#7355 ).
15+
816## [ 7.0.0-dev5]
917
1018[ 7.0.0-dev5 ] : https://github.com/microsoft/CCF/releases/tag/ccf-7.0.0-dev5
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " ccf"
7- version = " 7.0.0-dev5 "
7+ version = " 7.0.0-dev6 "
88authors = [
99 { name =" CCF Team" , email =" CCF-Sec@microsoft.com" },
1010]
Original file line number Diff line number Diff line change @@ -822,6 +822,21 @@ namespace ccf
822822 return static_cast <int >(CLI ::ExitCodes::ValidationError);
823823 }
824824
825+ for (const auto & readonly_ledger_directory :
826+ config.ledger .read_only_directories )
827+ {
828+ if (
829+ files::exists (readonly_ledger_directory) &&
830+ !fs::is_empty (readonly_ledger_directory))
831+ {
832+ LOG_FATAL_FMT (
833+ " On start, read-only ledger directories should not exist or be "
834+ " empty ({})" ,
835+ readonly_ledger_directory);
836+ return static_cast <int >(CLI ::ExitCodes::ValidationError);
837+ }
838+ }
839+
825840 populate_config_for_start (config, startup_config);
826841 }
827842 else if (config.command .type == StartType::Join)
You can’t perform that action at this time.
0 commit comments