Skip to content

Commit

Permalink
feat: vm improvements (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni authored Feb 2, 2025
1 parent 04ce93f commit 2a3fe66
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ include(CheckCXXCompilerFlag)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/ci_utils/cmake)
include(KnuthTools)


if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -matomics -mbulk-memory")
_add_cxx_compile_flag(-matomics _has_matomics_flag)
_add_cxx_compile_flag(-mbulk-memory _has_mbulk_memory_flag)
endif()

if (NOT MSVC)
_add_c_compile_flag(-Wall _has_all_warning_flag)
else()
Expand Down
8 changes: 3 additions & 5 deletions conan.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"version": "0.5",
"requires": [
"zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76%1736442063.163",
"spdlog/1.15.0#da21f74dd84627fa68601c4e3b9c3f00%1731353167.297",
"secp256k1/0.21.0#ed9709c61dfdb38ac8181f876503dca6%1732364020.326",
"libbacktrace/cci.20210118#a7691bfccd8caaf66309df196790a5a1%1725632951.012",
"gmp/6.3.0#df20ffb6d21c34d67704305bcd1dea9e%1716966936.742",
"fmt/11.0.2#b4a24d70b93466b9b508ddb7b014643b%1735899162.196",
"expected-lite/0.8.0#f87b3ec27a4f46894950b70f8d08af24%1717770563.402",
"ctre/3.9.0#318a83b26476a59466795daac928f3ec%1716966898.508",
"bzip2/1.0.8#d00dac990f08d991998d624be81a9526%1725632951.439",
"ctre/3.9.0#318a83b26476a59466795daac928f3ec%1715925273.754",
"boost/1.86.0#ce76e7477e466d7d8cbcf738c5d64175%1736442226.917"
],
"build_requires": [
"nodejs/18.15.0#2e468fc390ccdb9595ea1a5bbb74d59f%1699800364.91",
"m4/1.4.19#b38ced39a01e31fef5435bc634461fd2%1700758725.451",
"b2/5.2.1#91bc73931a0acb655947a81569ed8b80%1718416612.241"
"emsdk/3.1.66#dbe775f114c0ec093539734107e2ab5e%1733138978.7973351"
],
"python_requires": [],
"config_requires": []
Expand Down
8 changes: 7 additions & 1 deletion include/kth/infrastructure/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,13 @@ enum error_code_t {

// Chip VM limits
too_many_hash_iters,
conditional_stack_depth
conditional_stack_depth,


// Create transaction template
insufficient_amount,
empty_utxo_list,
invalid_change
};

enum error_condition_t {};
Expand Down
1 change: 1 addition & 0 deletions src/config/checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <kth/infrastructure/config/checkpoint.hpp>

#include <charconv>
#include <cstddef>
#include <iostream>
#include <regex>
Expand Down

0 comments on commit 2a3fe66

Please sign in to comment.