Skip to content

Commit

Permalink
update version to 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 committed Nov 15, 2023
1 parent cd6c1c6 commit 61f0d3c
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

set(VERSION "3.5.0")
set(VERSION "3.6.0")
set(VERSION_SUFFIX "")
include(Options)
configure_project()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FISCO BCOS(读作/ˈfɪskl bi:ˈkɒz/) 是一个稳定、高效、安全的

## 版本信息
- 稳定版本(生产环境使用):v3.2.3,版本内容可参考[《FISCO-BCOS v3.2.3版本说明》](https://github.com/FISCO-BCOS/FISCO-BCOS/releases/tag/v3.2.3)
- 最新版本(用户体验新特性):v3.5.0,版本内容可参考 [《FISCO-BCOS v3.5.0版本说明》](https://github.com/FISCO-BCOS/FISCO-BCOS/releases/tag/v3.5.0)
- 最新版本(用户体验新特性):v3.6.0,版本内容可参考 [《FISCO-BCOS v3.6.0版本说明》](https://github.com/FISCO-BCOS/FISCO-BCOS/releases/tag/v3.6.0)

## 系统概述
FISCO BCOS系统架构包括基础层、核心层、服务层、用户层和接入层提供稳定、安全的区块链底层服务。中间件层通过可视化界面,简化了用户管理区块链系统的流程。右侧配套相关开发、运维、安全控制的组件,辅助应用落地过程中不同角色的需要;同时,提供隐私保护和跨链相关的技术组件,满足不同场景的应用诉求。
Expand Down
10 changes: 6 additions & 4 deletions bcos-executor/src/executive/BillingTransactionExecutive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ using namespace bcos::precompiled;

CallParameters::UniquePtr BillingTransactionExecutive::start(CallParameters::UniquePtr input)
{
int64_t originGas = input->gas;
uint64_t currentSeq = input->seq;
std::string currentSenderAddr = input->senderAddress;
auto message = TransactionExecutive::execute(std::move(input));
Expand All @@ -19,16 +20,17 @@ CallParameters::UniquePtr BillingTransactionExecutive::start(CallParameters::Uni
callParam4AccountPre->senderAddress = currentSenderAddr;
callParam4AccountPre->receiveAddress = ACCOUNT_ADDRESS;

//Todo: need to get from block.
// Todo: need to get from block.
u256 gasPrice = 1;

bytes subBalanceIn = codec.encodeWithSig("subAccountBalance(uint256)", message->gas * gasPrice);
int64_t gasUsed = originGas - message->gas;
bytes subBalanceIn = codec.encodeWithSig("subAccountBalance(uint256)", gasUsed * gasPrice);
std::vector<std::string> codeParameters{currentSenderAddr};
auto newParams = codec.encode(codeParameters, subBalanceIn);
callParam4AccountPre->data = std::move(newParams);

auto subBalanceRet = callPrecompiled(std::move(callParam4AccountPre));
if(subBalanceRet->type == CallParameters::REVERT)
if (subBalanceRet->type == CallParameters::REVERT)
{
message->type = subBalanceRet->type;
message->status = subBalanceRet->status;
Expand Down
3 changes: 2 additions & 1 deletion bcos-executor/src/vm/EVMHostInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ size_t copyCode(evmc_host_context* _context, const evmc_address* _addr, size_t _
uint8_t* _bufferData, size_t _bufferSize)
{
auto& hostContext = static_cast<HostContext&>(*_context);
if (hostContext.features().get(ledger::Features::Flag::bugfix_evm_create2_delegatecall_staticcall_codecopy))
if (hostContext.features().get(
ledger::Features::Flag::bugfix_evm_create2_delegatecall_staticcall_codecopy))
{
auto addr = fromEvmC(*_addr);
bytes const& code = hostContext.codeAt(addr);
Expand Down
4 changes: 3 additions & 1 deletion bcos-executor/src/vm/HostContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ evmc_result HostContext::externalRequest(const evmc_message* _msg)
request->senderAddress = myAddress();
request->origin = origin();
request->status = 0;
request->value = fromEvmC(_msg->value);
const auto& blockContext = m_executive->blockContext();
switch (_msg->kind)
{
case EVMC_CREATE2:
request->createSalt = fromEvmC(_msg->create2_salt);
if (features().get(ledger::Features::Flag::bugfix_evm_create2_delegatecall_staticcall_codecopy))
if (features().get(
ledger::Features::Flag::bugfix_evm_create2_delegatecall_staticcall_codecopy))
{
request->data.assign(_msg->input_data, _msg->input_data + _msg->input_size);
request->create = true;
Expand Down
3 changes: 2 additions & 1 deletion bcos-framework/bcos-framework/protocol/Protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ enum class BlockVersion : uint32_t
V3_0_VERSION = 0x03000000,
RC4_VERSION = 4,
MIN_VERSION = RC4_VERSION,
MAX_VERSION = V3_5_VERSION,
MAX_VERSION = V3_6_VERSION,
};

enum class TransactionVersion : uint32_t
Expand All @@ -143,6 +143,7 @@ const std::string V3_2_VERSION_STR = "3.2.0";
const std::string V3_3_VERSION_STR = "3.3.0";
const std::string V3_4_VERSION_STR = "3.4.0";
const std::string V3_5_VERSION_STR = "3.5.0";
const std::string V3_6_VERSION_STR = "3.6.0";

const std::string RC_VERSION_PREFIX = "3.0.0-rc";

Expand Down
2 changes: 1 addition & 1 deletion tools/BcosBuilder/max/conf/config-build-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ consensus_type = "pbft"
# transaction gas limit
gas_limit = "3000000000"
# compatible version, can be dynamically upgraded through setSystemConfig
compatibility_version="3.5.0"
compatibility_version="3.6.0"

[[agency]]
name = "agencyA"
Expand Down
2 changes: 1 addition & 1 deletion transaction-executor/tests/TestHostContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ BOOST_AUTO_TEST_CASE(precompiled)
storageWrapper);
bcos::ledger::GenesisConfig genesis;
genesis.m_txGasLimit = 100000;
genesis.m_compatibilityVersion = bcos::tool::toVersionNumber("3.5.0");
genesis.m_compatibilityVersion = bcos::tool::toVersionNumber("3.6.0");
ledger.buildGenesisBlock(genesis, ledgerConfig);

bcostars::protocol::BlockHeaderImpl blockHeader(
Expand Down

0 comments on commit 61f0d3c

Please sign in to comment.