Skip to content

Commit

Permalink
sync master code
Browse files Browse the repository at this point in the history
  • Loading branch information
wenlinlee committed Jul 3, 2024
2 parents ad41f36 + dce491b commit 74e1b3c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FISCO BCOS(读作/ˈfɪskl bi:ˈkɒz/) 是一个稳定、高效、安全的
-
稳定版本(生产环境使用):v3.2.7,版本内容可参考[《FISCO-BCOS v3.2.7版本说明》](https://github.com/FISCO-BCOS/FISCO-BCOS/releases/tag/v3.2.7)
-
最新版本(用户体验新特性):v3.8.0,版本内容可参考 [《FISCO-BCOS v3.8.0版本说明》](https://github.com/FISCO-BCOS/FISCO-BCOS/releases/tag/v3.8.0)
最新版本(用户体验新特性):v3.9.0,版本内容可参考 [《FISCO-BCOS v3.9.0版本说明》](https://github.com/FISCO-BCOS/FISCO-BCOS/releases/tag/v3.9.0)

## 系统概述
FISCO BCOS系统架构包括基础层、核心层、服务层、用户层和接入层提供稳定、安全的区块链底层服务。中间件层通过可视化界面,简化了用户管理区块链系统的流程。右侧配套相关开发、运维、安全控制的组件,辅助应用落地过程中不同角色的需要;同时,提供隐私保护和跨链相关的技术组件,满足不同场景的应用诉求。
Expand Down
5 changes: 3 additions & 2 deletions bcos-executor/src/precompiled/SystemConfigPrecompiled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ SystemConfigPrecompiled::SystemConfigPrecompiled(crypto::Hash::Ptr hashImpl) : P
SYSTEM_KEY_WEB3_CHAIN_ID, [](const std::string& _value, uint32_t blockVersion) -> uint64_t {
if (blockVersion < BlockVersion::V3_9_0_VERSION)
{
BOOST_THROW_EXCEPTION(
PrecompiledError(fmt::format("unsupported key {}", SYSTEM_KEY_WEB3_CHAIN_ID)));
BOOST_THROW_EXCEPTION(bcos::tool::InvalidVersion(
fmt::format("unsupported key {}", SYSTEM_KEY_WEB3_CHAIN_ID)));
}
uint64_t number = 0;
try
Expand Down Expand Up @@ -304,6 +304,7 @@ int64_t SystemConfigPrecompiled::validate(
}
catch (bcos::tool::InvalidSetFeature const& e)
{
///
PRECOMPILED_LOG(INFO) << LOG_DESC("SystemConfigPrecompiled: set feature failed")
<< LOG_KV("info", boost::diagnostic_information(e));
BOOST_THROW_EXCEPTION(PrecompiledError(*boost::get_error_info<bcos::errinfo_comment>(e)));
Expand Down
1 change: 1 addition & 0 deletions bcos-tool/bcos-tool/Exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace tool
DERIVE_BCOS_EXCEPTION(LedgerConfigFetcherException);
DERIVE_BCOS_EXCEPTION(InvalidConfig);
DERIVE_BCOS_EXCEPTION(InvalidVersion);
/// NOTE: only use it when the compatibility version >= 3.6.0
DERIVE_BCOS_EXCEPTION(InvalidSetFeature);

class ExceptionHolder
Expand Down
9 changes: 7 additions & 2 deletions tools/BcosAirBuilder/build_chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ modify_node_path=""
multi_ca_path=""
consensus_type="pbft"
supported_consensus=(pbft rpbft)
log_level="info"

# for pro or max default setting
bcos_builder_package=BcosBuilder.tgz
Expand Down Expand Up @@ -577,6 +578,7 @@ air
-c <Config Path> [Required when expand node] Specify the path of the expanded node config.ini, config.genesis and p2p connection file nodes.json
-d <CA cert path> [Required when expand node] When expanding the node, specify the path where the CA certificate and private key are located
-D <docker mode> Default off. If set -D, build with docker
-E <Enable debug log> Default off. If set -E, enable debug log
-a <Auth account> [Optional] when Auth mode Specify the admin account address.
-w <WASM mode> [Optional] Whether to use the wasm virtual machine engine, default is false
-R <Serial_mode> [Optional] Whether to use serial execute,default is true
Expand Down Expand Up @@ -647,7 +649,7 @@ EOF
}

parse_params() {
while getopts "l:C:c:o:e:t:p:d:g:G:L:v:i:I:M:k:zwDshHmn:R:a:N:u:y:r:V:6T:" option; do
while getopts "l:C:c:o:e:t:p:d:g:G:L:v:i:I:M:k:zwDshHmEn:R:a:N:u:y:r:V:6T:" option; do
case $option in
6) use_ipv6="true" && default_listen_ip="::"
;;
Expand Down Expand Up @@ -699,6 +701,9 @@ parse_params() {
m)
monitor_mode="true"
;;
E)
log_level="debug"
;;
n)
node_key_dir="${OPTARG}"
dir_must_exists "${node_key_dir}"
Expand Down Expand Up @@ -1534,7 +1539,7 @@ generate_common_ini() {
enable_console_output = false
log_path=./log
; info debug trace
level=info
level=${log_level}
; MB
max_log_file_size=1024
; rotate the log every hour
Expand Down

0 comments on commit 74e1b3c

Please sign in to comment.