1
0
Fork 0
forked from lthn/blockchain
Commit graph

3353 commits

Author SHA1 Message Date
snider
ef59026e39 adds POST block/template + POST block/submit 2025-10-17 21:13:46 +01:00
snider
0c76729d68 adds GET /info?flags=performance,total_coins
performance and chain statistics
2025-10-17 20:32:50 +01:00
snider
8934042913 adds GET block/height 2025-10-17 18:58:18 +01:00
snider
0ba4c334bb api pagination block?limit=20&offset=200&start=1337 2025-10-17 18:40:11 +01:00
snider
0c7c242d28 clang-tidy adjustments 2025-10-16 18:39:25 +01:00
snider
bfa73fd70f initializes oatpp environment in daemon and removes redundant initialization in ApiServer 2025-10-16 18:33:06 +01:00
snider
09c987581b refactors API server initialization and shutdown process, removes conditional API enablement 2025-10-16 18:27:59 +01:00
snider
35f9045937 refactors block and transaction DTOs to models, updates references in controllers 2025-10-16 17:17:18 +01:00
snider
e538e6492a renames api lib from lethean-api to api-server and updates related configurations in CMakeLists.txt 2025-10-16 17:07:18 +01:00
snider
53f266cbee renames ApiCoreInfoComponent to ApiCoreInfo and updates references in ApiServer 2025-10-16 17:06:57 +01:00
snider
60df03ff1f adds API server enablement option and conditional initialization in daemon 2025-10-16 17:06:37 +01:00
snider
c6e98b6aa9 adds Block-by-Hash and Block-by-ID controllers with enhanced block retrieval functionality 2025-10-16 16:08:28 +01:00
snider
668a747325 adds blockcontroller / chain data 2025-10-16 14:10:04 +01:00
snider
518e002cb3 adds swagger assets + OpenAPI spec to {pkg}/share/lthn_api/res/* + {pkg}/share/lthn_api/oas-3.0.0.json 2025-10-16 12:24:19 +01:00
snider
d154992233 Update API server description and add server endpoints in ApiServer configuration 2025-10-15 22:28:55 +01:00
snider
d7066c2220 Add command line options for API server host and port configuration 2025-10-15 22:28:49 +01:00
snider
4474eebe52 Update server address in ApiServer configuration to use 127.0.0.1 2025-10-15 21:28:38 +01:00
snider
a947670d2c Update log message for API server shutdown in daemon 2025-10-15 21:02:04 +01:00
snider
3ac4f170d4 Refactor CMake configuration to link lthn_api library with daemon and update include directories 2025-10-15 20:59:18 +01:00
snider
073f3db1aa Initialize and manage API server lifecycle in daemon 2025-10-15 20:59:05 +01:00
snider
3a2ccb55c6 Refactor ApiServer to manage server lifecycle with start, stop, and wait methods 2025-10-15 20:58:57 +01:00
snider
c250daf4ec Add ApiCoreInfoComponent and enhance BlockController for blockchain data retrieval 2025-10-11 23:35:07 +01:00
snider
0a2a965253 Fix block size and effective fee median values in BlockController 2025-10-11 12:41:18 +01:00
Snider
df17bf1247 DTOs for block and transaction details, Refactor API server
Replaces RootController and legacy info controller with new InfoController and BlockController, adds DTOs for block and transaction details, and restructures the API server to use modular components. Updates CMakeLists to include new sources and dependencies, and refactors main.cpp to use the new ApiServer entry point. Improves Swagger documentation and endpoint organization for better maintainability and extensibility.
2025-10-10 23:18:02 +01:00
Snider
4cfc57b1f1
Update src/api/controller/RootController.hpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 23:46:58 +01:00
Snider
bac3c459d2
Update src/api/ApiServer.hpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 23:46:45 +01:00
Snider
d78c6cecd8 Add initial Oatpp-based API server implementation
Introduces a new API module using Oatpp and Oatpp-Swagger, including controllers, DTOs, and server setup. Updates build scripts and dependencies to support the new API layer for Lethean, providing endpoints and Swagger documentation.
2025-10-09 13:44:34 +01:00
Snider
dd7a19ac6f Lower min build version for hardforks 05 and 06
Updated ZANO_HARDFORK_05_MIN_BUILD_VER and ZANO_HARDFORK_06_MIN_BUILD_VER from 382 to 2 to allow compatibility with older builds.
2025-10-05 21:10:34 +01:00
Snider
eb60d4519c Revert "Use actual remote port for async connection"
This reverts commit 3e2bad36a6.
2025-10-05 20:44:13 +01:00
Snider
3e2bad36a6 Use actual remote port for async connection
Replaces usage of node_data.my_port with context.m_remote_port when establishing an async connection, ensuring the correct remote port is used for peer connections.
2025-10-05 20:03:58 +01:00
Snider
7f930b0fec Capture remote_ip by value in try_ping lambda
The lambda in try_ping now captures remote_ip by value instead of accessing context.m_remote_ip directly. This ensures the correct IP is used even if the context changes before the lambda executes.
2025-10-05 18:01:59 +01:00
Snider
c8acc964e3
Testnet updates (#22) 2025-10-05 14:00:36 +01:00
Snider
763d70bec2
Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
llebubell
b02addf264
Centralised chain config (#4) 2025-09-25 16:38:18 +01:00
Snider
2f1011e27c
Final Build Foundations (#11) 2025-09-25 00:25:52 +01:00
Snider
a03d081287
Build Improvements (#10) 2025-09-24 21:01:35 +01:00
Snider
2eaa599066
GitHub Build Workflows (#7) 2025-08-30 17:46:00 +01:00
zano build machine
b9d85e1c09 === build number: 427 -> 428 === 2025-08-13 17:09:03 +03:00
zano build machine
de5e0caebd === build number: 426 -> 427 === 2025-08-12 19:51:10 +03:00
sowle
91ced14b2d
ui update (PR 158) 2025-08-12 19:50:17 +03:00
zano build machine
d7d0ba0a41 === build number: 425 -> 426 === 2025-08-11 00:17:35 +03:00
sowle
11d4bbf1da
crypto: generate_system_random_bytes_* refactored: improved error handling, win32 version moved to BCrypt API, split into normal and _or_die funcs
Thanks to @gitToki for spotting the error handling issue!
2025-08-10 05:24:25 +03:00
sowle
b9b175c00f
ui update (PR 157) 2025-08-07 11:34:25 +03:00
sowle
3a9245f743
crypto::random refactoring and improvements (credits to @dimmarvel for spotting the thread safety issue) 2025-07-31 04:14:10 +03:00
sowle
a93aefd507
ui update (PR 156) 2025-07-24 18:27:55 +03:00
sowle
260228433c
=== build number: 424 -> 425 === 2025-07-24 18:07:42 +03:00
sowle
d78911b344
Merge branch 'release' into develop
# Conflicts:
#	src/version.h.in
#	src/wallet/wallet_rpc_server.cpp
2025-07-24 18:04:36 +03:00
sowle
d9557d3bb1
clang compilation fix 2025-07-24 13:56:36 +03:00
sowle
334d26a4ac
=== build number: 423 -> 424 === 2025-07-24 05:38:14 +03:00
sowle
035f233bc7
transfer_so implemented +minor code cleanup 2025-07-24 05:25:17 +03:00