Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4c8a087
fix(dlt_p2p_node): improve handling of canceled fibers and add dead f…
m0ssa99 May 14, 2026
e77ce79
Update submodule fc la commitul meu
m0ssa99 May 14, 2026
830a918
fix(fc): mark subproject as dirty to reflect changes
m0ssa99 May 14, 2026
4fde2fe
fix(fc): update subproject commit reference
m0ssa99 May 14, 2026
cd26916
Merge branch 'windows_su' of https://github.com/m0ssa99/viz-cpp-node …
m0ssa99 May 14, 2026
5b989f9
Update submodule fc la commitul meu
m0ssa99 May 14, 2026
cad4736
fix(fc): mark subproject as dirty to reflect changes
m0ssa99 May 14, 2026
a5271db
fix(cmake): add bcrypt library linking for MINGW
m0ssa99 May 14, 2026
2648f00
fix(database): update reindex method to use unsigned long long for sh…
m0ssa99 May 14, 2026
f48d20f
fix(network): implement node_id deduplication for peer connections
m0ssa99 May 14, 2026
ec998e7
Merge remote-tracking branch 'upstream/fix-witness' into windows_su
m0ssa99 May 15, 2026
f12baea
fix(p2p): enhance IP blocking logic for NAT scenarios and add backwar…
m0ssa99 May 15, 2026
e4c6add
fix(p2p): implement dynamic throttling for peer exchange requests to …
m0ssa99 May 15, 2026
5112b27
Merge remote-tracking branch 'upstream/fix-witness' into windows_su
m0ssa99 May 15, 2026
d6f5a31
Merge remote-tracking branch 'upstream/fix-witness' into windows_su
m0ssa99 May 16, 2026
51a132f
Merge remote-tracking branch 'upstream/fix-witness' into windows_su
m0ssa99 May 17, 2026
1ed1eed
fix(build): adjust make parallel jobs to improve build performance
m0ssa99 May 17, 2026
6df5c6b
fix(submodule): update fc submodule URL and branch for compatibility
m0ssa99 May 17, 2026
ef6835e
fix(cmake): add blank line for readability and update fc submodule to…
m0ssa99 May 17, 2026
873da8a
fix(submodule): update fc submodule to latest commit
m0ssa99 May 17, 2026
578fbee
fix(submodule): update fc submodule to latest commit
m0ssa99 May 17, 2026
1e1081a
fix(submodule): update fc submodule to latest commit with dirty state
m0ssa99 May 17, 2026
89a77f4
fix(submodule): update fc submodule to latest commit with dirty state
m0ssa99 May 17, 2026
84c910d
Update submodule fc to my fork
m0ssa99 May 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[submodule "thirdparty/fc"]
path = thirdparty/fc
url = https://github.com/VIZ-Blockchain/fc.git
branch = update
url = https://github.com/m0ssa99/fc.git
branch = windows_suport_fc
[submodule "thirdparty/chainbase"]
path = thirdparty/chainbase
url = https://github.com/VIZ-Blockchain/chainbase.git
Expand All @@ -10,3 +10,4 @@
path = thirdparty/appbase
url = https://github.com/VIZ-Blockchain/appbase.git
branch = lib-boost-1.71

11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Defines VIZ library target.
project(VIZ)
# Note: bcrypt (needed by boost::uuid / random on MinGW) is linked per-target
# in the if(WIN32) block below to avoid polluting secp256k1 and other sub-targets.
cmake_minimum_required(VERSION 3.16)

set(CHAIN_NAME "VIZ")


set(GUI_CLIENT_EXECUTABLE_NAME VIZ)
set(CUSTOM_URL_SCHEME "gcs")
set(INSTALLER_APP_ID "68ad7005-8eee-49c9-95ce-9eed97e5b347")
Expand Down Expand Up @@ -103,13 +106,17 @@ if(WIN32)
set(DB_VERSION 60)
set(BDB_STATIC_LIBS 1)

# Minimum Windows 7 / Vista (0x0601). XP (0x0501) is too old for
# boost::asio extended Winsock2 APIs and modern async I/O.
add_compile_definitions(_WIN32_WINNT=0x0601 WINVER=0x0601)

set(ZLIB_LIBRARIES "")
set(DEFAULT_EXECUTABLE_INSTALL_DIR bin/)

set(CRYPTO_LIB)

if(MSVC)
add_compile_options(/wd4503 /wd4267 /wd4244 /EHsc)
add_compile_options(/wd4503 /wd4267 /wd4244 /EHa)
#looks like this flag can have different default on some machines.
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
Expand Down Expand Up @@ -141,6 +148,8 @@ if(WIN32)
if(FULL_STATIC_BUILD)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc")
endif(FULL_STATIC_BUILD)
# bcrypt: needed by boost::random/uuid on MinGW (provides BCryptGenRandom)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lbcrypt")
endif(MSVC)

else(WIN32) # Apple AND Linux
Expand Down
49 changes: 40 additions & 9 deletions libraries/chain/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
if(MSVC)
set(hardfork_hpp_file "${CMAKE_CURRENT_SOURCE_DIR}/include/graphene/chain/hardfork.hpp")
add_custom_target(build_hardfork_hpp COMMAND cat-parts "${CMAKE_CURRENT_SOURCE_DIR}/hardfork.d" ${hardfork_hpp_file})
add_dependencies(build_hardfork_hpp cat-parts)
else(MSVC)
set(hardfork_hpp_file "${CMAKE_CURRENT_BINARY_DIR}/include/graphene/chain/hardfork.hpp")
add_custom_target(build_hardfork_hpp
COMMAND "${CMAKE_SOURCE_DIR}/programs/build_helpers/cat_parts.py" "${CMAKE_CURRENT_SOURCE_DIR}/hardfork.d" ${hardfork_hpp_file})
endif(MSVC)
set(GENERATED_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/include/graphene/chain")
set(hardfork_hpp_out "${GENERATED_INCLUDE_DIR}/hardfork.hpp")
file(MAKE_DIRECTORY "${GENERATED_INCLUDE_DIR}")

if(MSVC OR MINGW)
set(hardfork_d_dir "${CMAKE_CURRENT_SOURCE_DIR}/hardfork.d")
add_custom_command(
OUTPUT "${hardfork_hpp_out}"
COMMAND ${CMAKE_COMMAND} -E echo "Generating ${hardfork_hpp_out} via cat-parts"
COMMAND $<TARGET_FILE:cat-parts> "${hardfork_d_dir}" "${hardfork_hpp_out}"
DEPENDS "${hardfork_d_dir}" cat-parts
BYPRODUCTS "${hardfork_hpp_out}"
COMMENT "Generating ${hardfork_hpp_out} via cat-parts"
VERBATIM

)
else()
find_package(Python COMPONENTS Interpreter REQUIRED)
add_custom_command(
OUTPUT "${hardfork_hpp_out}"
COMMAND ${Python_EXECUTABLE} "${CMAKE_SOURCE_DIR}/programs/build_helpers/cat_parts.py"
"${CMAKE_CURRENT_SOURCE_DIR}/hardfork.d" "${hardfork_hpp_out}"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/hardfork.d" "${CMAKE_SOURCE_DIR}/programs/build_helpers/cat_parts.py"
BYPRODUCTS "${hardfork_hpp_out}"
COMMENT "Generating ${hardfork_hpp_out} via Python"
VERBATIM
)
endif()

# Target comun care depinde de fișierul generat
add_custom_target(build_hardfork_hpp DEPENDS "${hardfork_hpp_out}")

# Marchează fișierul ca generat
set_source_files_properties("${hardfork_hpp_out}" PROPERTIES GENERATED TRUE)

# Include dir-ul binar
include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")

# Variabila folosită mai jos în add_library
set(hardfork_hpp_file "${hardfork_hpp_out}")


set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/include/graphene/chain/hardfork.hpp" PROPERTIES GENERATED TRUE)
Expand Down
2 changes: 1 addition & 1 deletion libraries/chain/include/graphene/chain/database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace graphene { namespace chain {
* replaying blockchain history. When this method exits successfully, the database will be open.
*/
void reindex(const fc::path &data_dir, const fc::path &shared_mem_dir, uint32_t from_block_num, uint64_t shared_file_size = (
1024l * 1024l * 1024l * 8l));
1024l * 1024l * 1024l * 8Ull));

/**
* @brief Rebuild object graph from dlt_block_log after snapshot import
Expand Down
Loading