diff --git a/Docker/Dockerfile b/Docker/Dockerfile index e04324406d8..2305f7f79a7 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -5,7 +5,8 @@ ARG symbol=EOS ENV OPENSSL_ROOT_DIR /usr/include/openssl RUN git clone -b $branch https://github.com/boscore/bos.git --recursive \ - && cd bos && echo "$branch:$(git rev-parse HEAD)" > /etc/boscore-version \ + && cd bos && sed -i '/add_subdirectory(tools)/c\#add_subdirectory(tools).' libraries/eos-vm/CMakeLists.txt \ + && echo "$branch:$(git rev-parse HEAD)" > /etc/boscore-version \ && cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_ROOT=/opt/wasm -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/tmp/build -DBUILD_MONGO_DB_PLUGIN=true -DCORE_SYMBOL_NAME=$symbol \ -DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" -DCMAKE_CXX_STANDARD_LIBRARIES="-lpthread" \ diff --git a/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/code_cache.hpp b/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/code_cache.hpp index ce94cc5db90..16fb1b47df2 100644 --- a/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/code_cache.hpp +++ b/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/code_cache.hpp @@ -4,6 +4,7 @@ #include #include +#include #include #include #include diff --git a/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp b/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp index 022df920918..61cdd2bbc86 100644 --- a/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp +++ b/libraries/chain/include/eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp @@ -67,12 +67,13 @@ constexpr auto intrinsic_table = boost::hana::make_tuple( "env.get_resource_limits"_s, "env.set_resource_limits"_s, "env.set_proposed_producers"_s, - "env.set_proposed_producers_ex"_s, "env.get_blockchain_parameters_packed"_s, "env.set_blockchain_parameters_packed"_s, + "env.set_name_list_packed"_s, + "env.set_guaranteed_minimum_resources"_s, "env.is_privileged"_s, "env.set_privileged"_s, - "env.preactivate_feature"_s, + "env.set_upgrade_parameters_packed"_s, "env.get_active_producers"_s, "env.db_store_i64"_s, "env.db_update_i64"_s, @@ -150,8 +151,6 @@ constexpr auto intrinsic_table = boost::hana::make_tuple( "env.get_account_creation_time"_s, "env.current_time"_s, "env.publication_time"_s, - "env.is_feature_activated"_s, - "env.get_sender"_s, "env.abort"_s, "env.eosio_assert"_s, "env.eosio_assert_message"_s, @@ -178,6 +177,10 @@ constexpr auto intrinsic_table = boost::hana::make_tuple( "env.printhex"_s, "env.read_transaction"_s, "env.transaction_size"_s, + "env.get_transaction_id"_s, + "env.get_action_sequence"_s, + "env.has_contract"_s, + "env.get_contract_code"_s, "env.expiration"_s, "env.tapos_block_prefix"_s, "env.tapos_block_num"_s, @@ -248,7 +251,8 @@ constexpr auto intrinsic_table = boost::hana::make_tuple( "eosio_injection._eosio_i32_to_f64"_s, "eosio_injection._eosio_i64_to_f64"_s, "eosio_injection._eosio_ui32_to_f64"_s, - "eosio_injection._eosio_ui64_to_f64"_s + "eosio_injection._eosio_ui64_to_f64"_s, + "env.bpsig_action_time_seed"_s ); }}} \ No newline at end of file diff --git a/libraries/eos-vm b/libraries/eos-vm index 5135a14f6f0..0b8c291c082 160000 --- a/libraries/eos-vm +++ b/libraries/eos-vm @@ -1 +1 @@ -Subproject commit 5135a14f6f0379e2704f99fdbb1fd6cc2621dc31 +Subproject commit 0b8c291c08280394cab1a21f88a8cb24ebd1050b