Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
20c530d
typo fix
Tore-tto Sep 25, 2024
9ea06fb
Merge pull request #158 from Tore-tto/dev
victor-tucci Sep 30, 2024
3d307a1
Merge pull request #159 from Beldex-Coin/dev
sanada08 Sep 30, 2024
beba6b7
Add missing cstdint header for newer gcc
victor-tucci Mar 28, 2025
aa904b2
Modified cryptonote_config.h macros
victor-tucci Mar 28, 2025
f59a92a
Bump oxen-encoding to latest
victor-tucci Mar 24, 2025
633fd50
Add swarm as hex version of swarm_id in service node info
victor-tucci Mar 24, 2025
9ee1823
boost 1.84 compatibility fix
victor-tucci Mar 24, 2025
547607d
Bump oxenmq to latest version
victor-tucci Mar 24, 2025
cc5655a
Bump Apple deployment target
victor-tucci Mar 24, 2025
ca7bdfd
Windows compilation fixes
victor-tucci Mar 24, 2025
59a4339
Fix invalid mempool selection with conflicting BNS buys
victor-tucci Mar 28, 2025
50568db
add missing oxenc dep
victor-tucci Mar 28, 2025
dcf1532
Fix MN sort_and_filter being able to sort by shared_ptr contents
victor-tucci Mar 28, 2025
38c2e8f
BNS check for nullptr
victor-tucci Mar 28, 2025
ad2e124
Add wrapper around blockchain detach to detect errors
victor-tucci Apr 2, 2025
1941202
Merge pull request #30 from victor-tucci/refactor-config
victor-tucci Apr 2, 2025
cb9c04a
Replace boost::endian conversion with oxenc
victor-tucci Apr 10, 2025
0767d90
Add nlohmann-json submodule
victor-tucci Apr 15, 2025
9a59c31
nlohmann submodule version update
victor-tucci Apr 16, 2025
c5512c9
Minor api improvement: return pair instead of two output params
victor-tucci Apr 16, 2025
be10014
Make RPC more flexible & add bt-encoding
victor-tucci Apr 16, 2025
fea8bb6
lmq-rpc.py: curve:// url support and binary bt printing
victor-tucci Apr 16, 2025
d86aeff
Add a version of tools::join that also transforms
victor-tucci Apr 16, 2025
b3ed2db
Move json binary handling code; teach it about vectors
victor-tucci Apr 16, 2025
22f7f5d
print_money: allow trimming unused decimals
victor-tucci Apr 17, 2025
0fb26b6
GET_NET_STATS - To new RPC format
deen-kakarot Apr 17, 2025
a177299
START_MINING and GET_OUTPUTS to new RPC format
deen-kakarot Apr 17, 2025
95760ac
New RPC formats for STOP_MINING, SAVE_BC, STOP_DAEMON, GETBLOCKCOUNT
deen-kakarot Apr 17, 2025
df88032
Convert RPC functions to new format:
deen-kakarot Apr 17, 2025
9350d0a
RPC: GET_MASTER_NODES & GET_MASTER_NODE_STATUS
victor-tucci Apr 17, 2025
59313f8
Simplify participation structures
victor-tucci Apr 17, 2025
01a909d
resolve conflict
deen-kakarot Apr 18, 2025
1b68c21
Logs update to fmt format
Tore-tto Apr 18, 2025
255dcbd
Update doc formatting style
victor-tucci Apr 18, 2025
e4caae9
parse params of get_outputs and define parsers and return correct types
victor-tucci Apr 18, 2025
7f53d59
RPC update: get_connections
Tore-tto Apr 18, 2025
3971211
Add support for loading from various container types
victor-tucci Apr 18, 2025
fb51a23
get_outputs - finish, backwards compat, add results as tuple
victor-tucci Apr 18, 2025
e02f17d
RPC overhaul: SYNC_INFO
Tore-tto Apr 18, 2025
66fc88a
Push RPC response serialization down into handlers
Tore-tto Apr 18, 2025
09e7791
Append newline after printing CLI command error
Tore-tto Apr 18, 2025
1cd7e5a
Update log to fmt format
Tore-tto Apr 18, 2025
d31ce68
Move tx pool stats struct out of rpc code
Tore-tto Apr 18, 2025
a42a757
date submodule add and Eviscerate epee timing garpage
victor-tucci Apr 18, 2025
5ff6458
RPC: GET_TRANSACTION_POOL_STATS improvements/tweaks
Tore-tto Apr 18, 2025
2d69a5e
Add `invoke_simple` for invoking simple RPC calls
Tore-tto Apr 18, 2025
363993c
Remove useless junk from miner: autodetect, miner_conf.json
victor-tucci Apr 19, 2025
f8f3f8f
Remove "support_flags" from p2p protocol
Tore-tto Apr 19, 2025
4924470
START_MINING fixes
victor-tucci Apr 19, 2025
b630551
Fix mining status commands
Tore-tto Apr 19, 2025
2059096
small random epee improvements.
victor-tucci Apr 19, 2025
83c7c4d
Remove hide_hr, show_hr commands
victor-tucci Apr 19, 2025
9b827a0
Remove debugging & superfluous 'return;'s
Tore-tto Apr 19, 2025
d7c5cc9
RPC: HARD_FORK_INFO
Tore-tto Apr 19, 2025
4e7c013
RPC: GET_TRANSACTIONS
Tore-tto Apr 20, 2025
54b410f
RPC: add support for fetching transaction pool
Tore-tto Apr 20, 2025
a6e5342
Wire up start_mining command
Tore-tto Apr 20, 2025
e2a6995
removed unused save_limit_to_file()
victor-tucci Apr 21, 2025
7b40583
support flag m_p2p->for_connection fix
victor-tucci Apr 21, 2025
32de093
RPC: GET_LIMIT, SET_LIMIT
victor-tucci Apr 21, 2025
f2718ce
Remove useless GET_TRANSACTION_POOL_BACKLOG endpoint
victor-tucci Apr 21, 2025
a9cb439
Split core_rpc_server_commands_defs into 2
victor-tucci Apr 21, 2025
d34ede4
RPC: IS_KEY_IMAGE_SPENT
victor-tucci Apr 21, 2025
e6c07ec
RPC: SUBMIT_TRANSACTION new rpc update
victor-tucci Apr 21, 2025
8036aba
RPC: GET_BLOCK_HASH updated
victor-tucci Apr 21, 2025
a335c80
Remove external block generation/submission support
victor-tucci Apr 21, 2025
42609b2
RPC: +peerlist, -publicnodes
victor-tucci Apr 21, 2025
72a1552
Remove p2p rpc_port; p2p code clean-ups
victor-tucci Apr 21, 2025
137576d
BANNED to new RPC format
deen-kakarot Apr 21, 2025
589d4a5
FLUSH_TRANSACTION_POOL to new rpc format
deen-kakarot Apr 21, 2025
2a92659
set_log_level and set_log_categories to use new RPC
victor-tucci Apr 21, 2025
42c02a0
make_request template instead of try_running
victor-tucci Apr 21, 2025
2ac0d8f
RPC: GET_VERSION and GET_COINBASE_TX_SUM updated
victor-tucci Apr 21, 2025
12e6622
RPC: GET_BASE_FEE_ESTIMATE updated
victor-tucci Apr 21, 2025
0b1eacd
RPC: OUT_PEERS and IN_PEERS updated
deen-kakarot Apr 22, 2025
38f4fe0
RPC: POP_BLOCKS updated
victor-tucci Apr 22, 2025
ead9687
RPC: STORAGE_SERVER_PING and BELNET_PING updated
victor-tucci Apr 22, 2025
25c0b65
RPC: PRUNE_BLOCKCHAIN updated
deen-kakarot Apr 22, 2025
9642596
RPC: TEST_TRIGGER_UPTIME_PROOF, TEST_TRIGGER_P2P_RESYNC, REPORT_PEER_…
victor-tucci Apr 22, 2025
8bfe1d3
RPC: GET_MN_STATE_CHANGES updated
deen-kakarot Apr 22, 2025
7b46047
RPC: FLUSH_CACHE updated
victor-tucci Apr 22, 2025
eb998d6
RPC: GETBANS and SETBANS updated
deen-kakarot Apr 22, 2025
9395f74
various formating fix and rebase fixups
victor-tucci Apr 22, 2025
20d3bfc
RPC: GET_LAST_BLOCK_HEADER updated
victor-tucci Apr 22, 2025
23ccd7b
RPC: GET_CHECKPOINTS updated
deen-kakarot Apr 22, 2025
96c8225
RPC: GET_BLOCK_HEADER_BY_HASH updated
victor-tucci Apr 22, 2025
8e79d85
RPC: GET_MASTER_PRIVKEYS updated
deen-kakarot Apr 22, 2025
2dcf09b
GET_MASTER_KEYS
Tore-tto Apr 22, 2025
5f07481
RPC: GET_MASTER_NODE_BLACKLISTED_KEY_IMAGES updated
deen-kakarot Apr 22, 2025
5c17557
GET_BLOCK_HEADER_BY_HEIGHT
Tore-tto Apr 22, 2025
30b115e
RPC: GET_BLOCK_HEADERS_RANGE updated
deen-kakarot Apr 22, 2025
71077fe
RPC: GET_STAKING_REQUIREMENT updated
victor-tucci Apr 22, 2025
37c993f
RPC: RELAY_TX updated
victor-tucci Apr 22, 2025
ba86c4a
RPC: GET_BLOCK updated
deen-kakarot Apr 22, 2025
8019d4f
commented bootstrap daemon code for future use
Tore-tto Apr 22, 2025
526bbfd
RPC: GET_QUORUM_STATE updated
deen-kakarot Apr 22, 2025
d183f43
GET_ALTERNATE_CHAINS
Tore-tto Apr 22, 2025
1e52c81
GET_OUTPUT_HISTOGRAM
Tore-tto Apr 22, 2025
809c5c6
move nlohmann all to rpc
deen-kakarot Apr 23, 2025
0c54d03
RPC: GET_MASTER_NODE_REGISTRATION_CMD_RAW, GET_MASTER_NODE_REGISTRATI…
victor-tucci Apr 23, 2025
9a3cf62
RPC: BNS_OWNERS_TO_NAMES updated
Tore-tto Apr 23, 2025
eba6690
Rewrite logic to avoid warning about binding a temporary
Tore-tto Apr 24, 2025
a60fcf8
tx scanning for basic transactions working and moved parser to sepera…
victor-tucci Apr 28, 2025
cafe459
refactor: update function name
deen-kakarot Apr 28, 2025
b34bbf3
refactor wallet2 and simple wallet to use bt-rpc definitions
Tore-tto Apr 28, 2025
4bed1ea
move and refactor common RPC code
victor-tucci Apr 29, 2025
f17beb9
refactor: simplify logic, update datatype, and add error handling
deen-kakarot Apr 29, 2025
7a2f1df
add not-equal operator to rct::key
deen-kakarot Apr 29, 2025
096a44a
fix: throw error on empty tx input indices
deen-kakarot Apr 29, 2025
7bdddeb
minor fixes of RPC: GET_OUTPUTS
Tore-tto Apr 29, 2025
621ffce
small status/error message change
victor-tucci Apr 29, 2025
64be950
rpc_common changes
victor-tucci Apr 30, 2025
0a70e2d
Fixes compilation errors
Tore-tto Apr 30, 2025
6cddb92
RPC: build fix
victor-tucci May 2, 2025
d5d72fa
print_locked_stakes fix
victor-tucci May 2, 2025
08b7398
build fix
deen-kakarot May 2, 2025
927cabd
move blacklisted key images to completed and enable BNS_OWNERS_TO_NAMES
victor-tucci May 2, 2025
93e181a
Fix: get_master_keys/get_master_privkeys arg parsing
victor-tucci May 2, 2025
c94803c
Activate various RPC endpoints
victor-tucci May 2, 2025
c13672e
stringop-overflow warnings under GCC12 and re-add GET_TRANSACTION_POOL
victor-tucci May 2, 2025
a57e9c7
More RPC fixes
deen-kakarot May 2, 2025
f3cb8f8
fix: build
victor-tucci May 2, 2025
e208e75
Allow belnet/ss to send an error ping
victor-tucci May 2, 2025
af7d54e
Rename LMQ to OMQ and redo json_archiver using nlohmann::json
Tore-tto May 2, 2025
2120bd4
Move nlohmann_json dependency to 'common' & Fix get_master_node_black…
Tore-tto May 5, 2025
43376a2
revert Renames LMQ -> OMQ in the codebase.
victor-tucci May 5, 2025
c7ef088
RPC: BNS_NAMES_TO_OWNERS updated
victor-tucci May 5, 2025
7ab6f70
Fix MN cache bug, enforce config validation, and optimize string hand…
deen-kakarot May 5, 2025
0a2959d
RPC: GET_MASTER_NODE_REGISTRATION_CMD updated
victor-tucci May 5, 2025
e7fd8f2
Fix wallet2 staking for missing reserved fields and enforce safe key …
deen-kakarot May 5, 2025
e775927
Fix: Redo LMQ → OMQ rename and update json_archiver to use nlohmann::…
Tore-tto May 5, 2025
2d2839e
wallet_api updated to use new json_rpc
victor-tucci May 6, 2025
0307511
RPC: BNS_LOOKUP, BNS_VALUE_DECRYPT are updated to new format
victor-tucci May 6, 2025
13c4a99
Merge branch 'Beldex-Coin:master' into refactor-rpc-endpoints
peter-pratt May 6, 2025
413b9f7
use fork rules fix
victor-tucci May 7, 2025
51d0962
parser: sort inputs in ascending order
victor-tucci May 8, 2025
8e47ab0
Refactor: Replace boost::uuids::uuid with type-safe alternative
jeflinfrank May 8, 2025
e2cfe3b
parser: sort storage_server_ping inputs in ascending order
victor-tucci May 8, 2025
3090d1a
rpc request for names_to_owner fixed for new format
victor-tucci May 8, 2025
816f139
bns_names_to_owners fix for bns_lookup, bns_update, bns_renew
victor-tucci May 9, 2025
9bb85da
wallet-rpc bns_update, bns_renew and bns_buy fix in cli
victor-tucci May 11, 2025
b996d96
refactor: optimize Boost functionality
jeflinfrank May 13, 2025
d7368c9
Merge pull request #32 from victor-tucci/fix-boost
victor-tucci May 14, 2025
29ac40a
RPC: GET_OUTPUT_DISTRIBUTION updated
Tore-tto May 15, 2025
0362c35
Refactor GET_OUTPUT_DISTRIBUTION_BIN
Tore-tto May 16, 2025
9ade629
refactor: update daemon CLI commands for new JSON-RPC structure
Tore-tto May 19, 2025
723a2da
Merge pull request #165 from victor-tucci/refactor-rpc-endpoints
victor-tucci May 20, 2025
21689bb
small fixes in rpc-endpoints
victor-tucci May 21, 2025
664a87f
Merge pull request #166 from victor-tucci/refactor-rpc-endpoints
victor-tucci May 21, 2025
a1af475
add bulletproofplus core functions
jeflinfrank Jul 9, 2025
548eea5
fix : log for MN registration and status
deen-kakarot Jul 16, 2025
dbf5cff
plug in Bulletproof+
jeflinfrank Jul 18, 2025
8b9e53a
bulletproof+ integration for wallet
abdevil05 Jul 21, 2025
554f3b5
update: macros for Bulletproof+
abdevil05 Jul 21, 2025
a362ea7
Enhance commitment calculation for Bulletproof+
abdevil05 Jul 22, 2025
df642cd
fix: GET_TRANSACTION_POOL rpc
deen-kakarot Aug 4, 2025
b94ea8c
fix(set_log): validate log levels in category:level format
peter-pratt Aug 7, 2025
8e92794
handle Bulletproof+ commitments with scalarmult8 in tx key check
abdevil05 Aug 18, 2025
97c092b
fix(print_cn: print_cn issue fixed)
peter-pratt Aug 21, 2025
d7817fb
fix(test_trigger_uptime_proof): issue fix in test_trigger_uptime_proof
peter-pratt Aug 22, 2025
837dc3a
Fix broken RPC "get_fee_estimate" endpoint name
deen-kakarot Aug 26, 2025
88de283
fix(bc_dyn_stats): issue fix in bc_dyn_stats
peter-pratt Aug 26, 2025
e02f3da
fix on bns and stake_amount in extra
TechGoku Aug 29, 2025
e711552
optimize Bulletproof+ workflow
jeflinfrank Aug 29, 2025
2275ab0
wallet: feature: transfer amount with fee included
victor-tucci Sep 5, 2025
5961529
wallet: handled double_spend_seen in get_transactions
victor-tucci Sep 5, 2025
b637d30
Merge pull request #35 from victor-tucci/refactor-rpc-endpoints
victor-tucci Sep 11, 2025
589c90f
wallet: Handle new hardfork rules
jeflinfrank Sep 26, 2025
c8942f4
Add RingCT type Bulletproof+ support for staking
jeflinfrank Sep 29, 2025
14af7e3
fix resolve address
jeflinfrank Oct 7, 2025
53948b5
Fix: static build for macos
victor-tucci Oct 8, 2025
2ea2bdf
Refactor:bootstrap daemon to use new RPC format
Tore-tto Oct 16, 2025
5e1ff27
Fix: bootstrap-daemon-address and rpc executor for set_bootstrap_daemon
victor-tucci Oct 16, 2025
75210b3
Fix: bootstrap for GET_HEIGHT, HARD_FORK_INFO, GET_FEE_ESTIMATE
victor-tucci Oct 16, 2025
0e9d19a
Fix: bootstrap for GET_TRANSACTIONS, IS_KEY_IMAGE_SPENT, GET_OUTS
Tore-tto Oct 16, 2025
ef4430c
Fix: bootstrap for BINARY commands
victor-tucci Oct 17, 2025
2de2ac5
rpc: integrate bootstrap daemon support in RPCs
Tore-tto Oct 17, 2025
0a071cd
Added BNS and quorum RPC responses using bootstrap daemon
Tore-tto Oct 22, 2025
11b15e1
Added bootstrap daemon support to submit_transaction RPC
Tore-tto Oct 24, 2025
dc94015
Version bump v7.0.0
victor-tucci Oct 25, 2025
5f62a1e
Merge pull request #36 from victor-tucci/bootstrap-integration
victor-tucci Oct 25, 2025
4950edc
fix: handle status command when daemon runs as a bootstrap node
Tore-tto Oct 29, 2025
40e549e
Fix: Windows build
victor-tucci Oct 29, 2025
c79a636
fix: my_bns() wallet_api json error
victor-tucci Oct 30, 2025
18bacfb
Fix: handling the owners_to_names response
victor-tucci Oct 30, 2025
01faaf2
fix: cannot use push_back() with object for bns owners_to_names
victor-tucci Nov 3, 2025
7da11c6
fix(wallet): avoid JSON parsing error when daemon sends response to t…
Tore-tto Nov 3, 2025
588a08f
Fix: beldexd print_mn_status version print
victor-tucci Nov 5, 2025
ac45b36
fix(print_mn_status): handle empty version string check
Tore-tto Nov 6, 2025
20b5de0
feat: add new hard fork 'Obscura'
victor-tucci Nov 14, 2025
ff800e2
feat: add Bulletproof+ hard fork activation params (HF20)
victor-tucci Nov 14, 2025
5d7a37c
feat(rpc): enable relay_tx endpoint
Tore-tto Nov 14, 2025
817556e
Merge pull request #173 from victor-tucci/bulletproofplus-integration
victor-tucci Nov 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ __pycache__/

# brew build lock file
contrib/brew/Brewfile.lock.json

*.pyc
*.log
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@
[submodule "external/oxen-encoding"]
path = external/oxen-encoding
url = https://github.com/oxen-io/oxen-encoding.git
[submodule "external/nlohmann-json"]
path = external/nlohmann-json
url = https://github.com/nlohmann/json.git
[submodule "external/date"]
path = external/date
url = https://github.com/HowardHinnant/date.git
[submodule "external/Catch2"]
path = external/Catch2
url = https://github.com/catchorg/Catch2
16 changes: 15 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@
"thread": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp"
"valarray": "cpp",
"__bit_reference": "cpp",
"__hash_table": "cpp",
"__locale": "cpp",
"__node_handle": "cpp",
"__split_buffer": "cpp",
"__threading_support": "cpp",
"__tree": "cpp",
"__verbose_abort": "cpp",
"execution": "cpp",
"ios": "cpp",
"locale": "cpp",
"print": "cpp",
"queue": "cpp",
"stack": "cpp"
}
}
18 changes: 12 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ cmake_minimum_required(VERSION 3.10)
message(STATUS "CMake version ${CMAKE_VERSION}")

# Has to be set before `project()`, and ignored on non-macos:
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "macOS deployment target (Apple clang only)")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "macOS deployment target (Apple clang only)")

project(beldex
VERSION 6.0.0
VERSION 7.0.0
LANGUAGES CXX C)
set(BELDEX_RELEASE_CODENAME "Hermes")
set(BELDEX_RELEASE_CODENAME "Obscura")

# String value to append to the full version string; this is intended to easily identify whether a
# binary was build from the release or development branches. This should be permanently set to an
Expand Down Expand Up @@ -290,6 +290,7 @@ if(NOT MANUAL_SUBMODULES)
check_submodule(external/loki-mq cppzmq)
if(BUILD_TESTS)
check_submodule(external/googletest)
check_submodule(external/Catch2)
endif()
check_submodule(external/uWebSockets uSockets)
check_submodule(external/ghc-filesystem)
Expand Down Expand Up @@ -534,7 +535,7 @@ else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ARCH_FLAG}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG}")

set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=uninitialized")
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=uninitialized -Wno-error=attributes -Wno-error=unused-but-set-variable")

option(WARNINGS_AS_ERRORS "Enable warning as errors" OFF)
if(NOT MINGW AND WARNINGS_AS_ERRORS)
Expand Down Expand Up @@ -570,7 +571,6 @@ else()

# if those don't work for your compiler, single it out where appropriate
if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT OPENBSD)
set(C_SECURITY_FLAGS "${C_SECURITY_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
set(C_SECURITY_FLAGS "${C_SECURITY_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
set(CXX_SECURITY_FLAGS "${CXX_SECURITY_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
endif()
Expand Down Expand Up @@ -605,6 +605,12 @@ else()
add_cxx_flag_if_supported(-fstack-clash-protection CXX_SECURITY_FLAGS)
endif()

# GCC 12's stringop-overflow warnings are really broken, with tons and tons of false positives all
# over the place (not just in our code, but also in its own stdlibc++ code).
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12)
set(CXX_WARNINGS "${CXX_WARNINGS} -Wno-stringop-overflow")
endif()

# Removed in GCC 9.1 (or before ?), but still accepted, so spams the output
if (NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_VERSION VERSION_LESS 9.1)
add_c_flag_if_supported(-mmitigate-rop C_SECURITY_FLAGS)
Expand Down Expand Up @@ -856,7 +862,7 @@ if(BUILD_STATIC_DEPS)
# sqlite3 target already set up
else()
add_library(sqlite3 INTERFACE)
pkg_check_modules(SQLITE3 REQUIRED sqlite3 IMPORTED_TARGET)
pkg_check_modules(SQLITE3 REQUIRED sqlite3>=3.24.0 IMPORTED_TARGET)
message(STATUS "Found sqlite3 ${SQLITE3_VERSION}")
target_link_libraries(sqlite3 INTERFACE PkgConfig::SQLITE3)
endif()
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ release: cmake-release

release-test:
mkdir -p $(builddir)/release
cd $(builddir)/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE) && $(MAKE) test
cd $(builddir)/release && cmake -D BUILD_TESTS=ON -D USE_LTO=OFF -D RANDOMX_ENABLE_JIT=OFF -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE) && $(MAKE) test

release-all:
mkdir -p $(builddir)/release
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -DUSE_LTO=OFF -DRANDOMX_ENABLE_JIT=OFF -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)

release-static:
mkdir -p $(builddir)/release
cd $(builddir)/release && cmake -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)

release-full-static:
mkdir -p $(builddir)/release-static
cd $(builddir)/release-static && cmake -DBUILD_STATIC_DEPS=ON -DCMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)
cd $(builddir)/release-static && cmake -DBUILD_STATIC_DEPS=ON -DUSE_LTO=OFF -DRANDOMX_ENABLE_JIT=OFF -DCMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)

release-full-static-archive: release-full-static
cd $(builddir)/release-static && $(MAKE) strip_binaries && $(MAKE) create_archive
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ library archives (`.a`).
| pkg-config | any | NO | `pkg-config` | `base-devel` | `pkgconf` | NO | |
| Boost | 1.65 | NO | `libboost-all-dev`[2] | `boost` | `boost-devel` | NO | C++ libraries |
| libzmq | 4.3.0 | YES | `libzmq3-dev` | `zeromq` | `zeromq-devel` | NO | ZeroMQ library |
| sqlite3 | ? | YES | `libsqlite3-dev` | `sqlite` | `sqlite-devel` | NO | Beldex Name System |
| sqlite3 | 3.24.0 | YES | `libsqlite3-dev` | `sqlite` | `sqlite-devel` | NO | Beldex Name System |
| libsodium | 1.0.9 | YES | `libsodium-dev` | `libsodium` | `libsodium-devel` | NO | cryptography |
| libcurl | 4.0 | NO | `curl` | `curl-devel` | NO | HTTP | RPC |
| libuv (Win) | any | NO | (Windows only) | -- | -- | NO | RPC event loop |
Expand Down Expand Up @@ -413,7 +413,7 @@ See [README.i18n.md](README.i18n.md).
> feature allows connecting over IPv4 and Tor simulatenously - IPv4 is used for
> relaying blocks and relaying transactions received by peers whereas Tor is
> used solely for relaying transactions received over local RPC. This provides
> privacy and better protection against surrounding node (sybil) attacks.
> confidential transactions and better protection against surrounding node (sybil) attacks.

While Beldex isn't made to integrate with Tor, it can be used wrapped with torsocks, by
setting the following configuration parameters and environment variables:
Expand Down
10 changes: 5 additions & 5 deletions cmake/StaticBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set(LOCAL_MIRROR "" CACHE STRING "local mirror path/URL for lib downloads")

set(BOOST_VERSION 1.83.0 CACHE STRING "boost version")
set(BOOST_MIRROR ${LOCAL_MIRROR} https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source
set(BOOST_MIRROR ${LOCAL_MIRROR} https://archives.boost.io/release/${BOOST_VERSION}/source
CACHE STRING "boost download mirror(s)")
string(REPLACE "." "_" BOOST_VERSION_ ${BOOST_VERSION})
set(BOOST_SOURCE boost_${BOOST_VERSION_}.tar.bz2)
Expand Down Expand Up @@ -79,11 +79,11 @@ set(ZMQ_SOURCE zeromq-${ZMQ_VERSION}.tar.gz)
set(ZMQ_HASH SHA512=e198ef9f82d392754caadd547537666d4fba0afd7d027749b3adae450516bcf284d241d4616cad3cb4ad9af8c10373d456de92dc6d115b037941659f141e7c0e
CACHE STRING "libzmq source hash")

set(ZLIB_VERSION 1.2.11 CACHE STRING "zlib version")
set(ZLIB_MIRROR ${LOCAL_MIRROR} https://zlib.net/fossils
set(ZLIB_VERSION 1.3.1 CACHE STRING "zlib version")
set(ZLIB_MIRROR ${LOCAL_MIRROR} https://github.com/madler/zlib/releases/download/v${ZLIB_VERSION}
CACHE STRING "zlib mirror(s)")
set(ZLIB_SOURCE zlib-${ZLIB_VERSION}.tar.gz)
set(ZLIB_HASH SHA512=73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae
set(ZLIB_SOURCE zlib-${ZLIB_VERSION}.tar.xz)
set(ZLIB_HASH SHA256=38ef96b8dfe510d42707d9c781877914792541133e1870841463bfa73f883e32
CACHE STRING "zlib source hash")

set(CURL_VERSION 7.76.1 CACHE STRING "curl version")
Expand Down
5 changes: 2 additions & 3 deletions contrib/epee/include/epee/console_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace epee
if (m_read_status == state_cancelled)
return false;

int retval = ::WaitForSingleObject(::GetStdHandle(STD_INPUT_HANDLE), 100);
auto retval = ::WaitForSingleObject(::GetStdHandle(STD_INPUT_HANDLE), 100);
switch (retval)
{
case WAIT_FAILED:
Expand Down Expand Up @@ -529,8 +529,7 @@ namespace epee
catch (const std::exception &e)
{
rdln::suspend_readline pause_readline;
std::cout << "Command errored: " << cmd.front() << ", " << e.what();
}
std::cout << "Command errored: " << cmd.front() << ", " << e.what() << "\n"; }

return false;
}
Expand Down
112 changes: 0 additions & 112 deletions contrib/epee/include/epee/misc_os_dependent.h

This file was deleted.

10 changes: 5 additions & 5 deletions contrib/epee/include/epee/net/abstract_tcp_server2.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ namespace net_utils
{
auto ptr = std::make_shared<idle_callback_conext<t_handler>>(io_service_, std::move(callback), timeout);
//needed call handler here ?...
ptr->m_timer.expires_from_now(ptr->m_period);
ptr->m_timer.expires_after(ptr->m_period);
ptr->m_timer.async_wait([this, ptr] (const boost::system::error_code&) { global_timer_handler<t_handler>(ptr); });
return true;
}
Expand All @@ -313,14 +313,14 @@ namespace net_utils
//if handler return false - he don't want to be called anymore
if(!ptr->call_handler())
return;
ptr->m_timer.expires_from_now(ptr->m_period);
ptr->m_timer.expires_after(ptr->m_period);
ptr->m_timer.async_wait([this, ptr] (const boost::system::error_code&) { global_timer_handler<t_handler>(ptr); });
}

template<class t_handler>
bool async_call(t_handler t_callback)
{
io_service_.post(std::move(t_callback));
boost::asio::post(io_service_, std::move(t_callback));
return true;
}

Expand All @@ -340,11 +340,11 @@ namespace net_utils
struct worker
{
worker()
: io_service(), work(io_service)
: io_service(), work(io_service.get_executor())
{}

boost::asio::io_service io_service;
boost::asio::io_service::work work;
boost::asio::executor_work_guard<decltype(io_service.get_executor())> work;
};
std::unique_ptr<worker> m_io_service_local_instance;
boost::asio::io_service& io_service_;
Expand Down
Loading
Loading