Commit Graph

2585 Commits

Author SHA1 Message Date
ardocrat 0bedfb39d7 Merge branch 'lmdb_update' into grim 2026-04-24 18:26:02 +03:00
ardocrat e22f5acb11 fix: check batches count on resize waiting 2026-04-24 18:25:07 +03:00
ardocrat 13cfef93ec Merge branch 'lmdb_update' into grim 2026-04-24 18:14:55 +03:00
ardocrat deb5b49310 lmdb: use static reader for iterator, count existing batches for stable resize 2026-04-24 18:13:30 +03:00
ardocrat 36211eef59 Merge branch 'lmdb_update' into grim 2026-04-24 13:46:12 +03:00
ardocrat 70040d2160 lmdb: wait db resize before read, reduce timeout before resizing 2026-04-24 13:27:28 +03:00
ardocrat eef000dfe8 lmdb: default env name 2026-04-23 00:27:22 +03:00
ardocrat 3d14a54d69 Merge branch 'lmdb_update' into grim 2026-04-22 20:28:23 +03:00
ardocrat b18f453fa8 lmdb: speed up prefix iter by storing keys 2026-04-22 19:23:28 +03:00
ardocrat dfac42618c Merge branch 'pibd_peers_fix' into grim 2026-04-22 11:28:31 +03:00
ardocrat b41f0bdbd4 p2p: ignore last connection attempt when there is not enough outbound peers 2026-04-22 11:11:20 +03:00
ardocrat ab907508c7 Merge branch 'master' into pibd_peers_fix 2026-04-22 11:08:02 +03:00
ardocrat 3d8cb52995 Merge branch 'refs/heads/lmdb_update' into grim 2026-04-21 22:33:18 +03:00
ardocrat b5eeb37641 fix: resize to have correct multiplier of the system page size 2026-04-21 18:46:04 +03:00
ardocrat f47bf935ab Merge branch 'refs/heads/lmdb_update' into grim 2026-04-20 21:22:51 +03:00
ardocrat 5adec7ad13 build: remove unused dependency 2026-04-20 21:13:50 +03:00
ardocrat f9a04ff100 lmdb: ability to use multiple shared environments 2026-04-20 21:08:26 +03:00
ardocrat 08e95ce197 fix: revert chunk size to 128mb 2026-04-17 01:26:45 +03:00
ardocrat fcf0884b34 lmdb: single environment, migrate existing databases with provided non-default environment name 2026-04-17 00:44:09 +03:00
ardocrat 593f4c420a build: fix missing deps at Cargo.lock 2026-04-16 22:50:53 +03:00
ardocrat 0c3e18a913 Merge branch 'refs/heads/lmdb_update' into grim 2026-04-16 14:54:33 +03:00
ardocrat 02cce56741 fix: check resizing operation and wait to avoid crash with multiple batches, fix exists check at batch 2026-04-16 14:30:36 +03:00
ardocrat 1036ca6ac1 db: migrate from lmdb-zero to heed 2026-04-16 12:12:34 +03:00
ardocrat 42b928a42f Merge branch 'refs/heads/master' into grim
# Conflicts:
#	servers/src/grin/seed.rs
2026-04-09 20:50:44 +03:00
ardocrat 90dab5fcc6 More reliable peers check (#3824)
* peer: unknown state for new peers, check peers state on every monitor (128 healthy non-connected + 128 defuncts + 128 unknown), mark peer as defunct when ping not passed, do not crash on toml parse with dns failure

* p2p: cleanup before selection at monitor, add outbound to connected list only when there is not enough peers + disconnect extra peer immediately, reconnect to seeds at monitor to avoid stuck, update only defunct state to unknown when received existing peer address

* p2p: reduced amount of total peers to check at monitor

* p2p: do not check healthy and defunct peers more often than once per hour, store last connection attempt, do not ask for more peers when there is enough outbound

* peer: update last_attempt when changing peer state to other than Banned

* fix: log of peers amount to check
2026-04-09 11:55:22 -04:00
ardocrat cc555a22fb Merge branch 'refs/heads/peers_fix' into grim 2026-04-09 04:40:16 +03:00
ardocrat b172256d0b peer: update last_attempt when changing peer state to other than Banned 2026-04-09 04:22:02 +03:00
ardocrat 1258b844f3 p2p: do not check healthy and defunct peers more often than once per hour, store last connection attempt, do not ask for more peers when there is enough outbound 2026-04-09 04:15:19 +03:00
ardocrat 91f6ddc8c3 p2p: reduced amount of total peers to check at monitor 2026-04-08 22:11:11 +03:00
ardocrat 3787881673 Merge remote-tracking branch 'grin_ardocrat/peers_fix' into grim 2026-04-06 02:27:21 +03:00
ardocrat 9585c02135 p2p: cleanup before selection at monitor, add outbound to connected list only when there is not enough peers + disconnect extra peer immediately, reconnect to seeds at monitor to avoid stuck, update only defunct state to unknown when received existing peer address 2026-04-06 01:44:22 +03:00
ardocrat ab9715d9a9 peer: unknown state for new peers, check peers state on every monitor (128 healthy non-connected + 128 defuncts + 128 unknown), mark peer as defunct when ping not passed, do not crash on toml parse with dns failure 2026-04-04 01:58:35 +03:00
ardocrat 464babc7ef peer: block only non-blocked to not increase times for several requests 2026-03-30 23:09:09 +03:00
ardocrat 4511fd89a2 fix: add missing method clear_pibd_requests to commit 2026-03-30 15:34:18 +03:00
ardocrat d9bca1c776 pibd: choose peers based on minimal height, temporary block peers for stale segments disconnecting only outbound, force request for output and rangeproof segments to avoid stuck at this case 2026-03-30 15:26:29 +03:00
ardocrat af0c1dca02 pibd: fix check for next required kernel segment (#3822) 2026-03-25 08:29:15 -04:00
David Burkett 2ec7b4d5cd Bump version to v5.4.0 2026-03-09 10:44:03 -04:00
David Burkett 41e50cda8f Fix macOS x86 release workflow 2026-03-08 14:49:22 -04:00
David Burkett 789ff2859c Prep for release 2026-03-08 14:32:26 -04:00
ardocrat c2abf1ecf0 GHCR: add arm platform, crash fixes (#3819)
* ghcr: add arm platform, remove attestation

* ghcr: checkout code to get version

* ghcr: fix tag var format

* docker: --no-tui flag for entrypoint

* docker: install ca-certificates to be able to use grin client inside container

* docker: add default volume, expose API port exposable by making IP address public
2026-02-27 11:52:31 -05:00
ardocrat 376c85bab5 Fix PIBD sync stuck (#3817)
* pibd: record segment peer to exclude it from re-request

* desegmenter is blocked on a missing kernel

* segment iter

* add indexing

* pibd: log excluded peer

* segment batch optimization

* pibd: debug logging for stale requests

* pibd: filter excluded peer

* pibd: check existing kernel segment identifier

* pibd: simplify peer selection condition

---------

Co-authored-by: Joerg <wiesche89@googlemail.com>
2026-01-08 14:40:59 -05:00
ardocrat ddea797c0a Disable TUI on binary launch (#3818)
* adding --no-tui

* revert next line

* english comments

* bin: more detailed no-tui flag description

---------

Co-authored-by: Jörg Wieschebrock <Joerg.Wieschebrock@krone.de>
2026-01-08 14:40:42 -05:00
ardocrat da7b6b5c50 Docker package build (#3816)
* bin: ability to use chain type argument for 'run' subcommand

* docker: single image for mainnet and testnet, update build docs

* docker: root user

* github: ghcr publish

* github: build image for master branch only

* docs: fix paths

* docker: move 'server run' to command

* Revert "bin: ability to use chain type argument for 'run' subcommand"

This reverts commit fc2d9199c3ff80c5c7305e3fc5b1f6fe86e8dacf.

* docker: disable tui at config
2026-01-06 13:39:18 -05:00
ardocrat dc6f8d2520 GitHub ci/cd fix (#3815)
* cd: windows-latest

* ci: windows-latest

* ci: windows-2022

* cd: windows-2022

* build: update built lib
2025-11-22 15:56:35 +01:00
wiesche cda55ce6fc Extension Grin Node API during synchronization #3813 (#3814) 2025-11-20 12:10:51 -05:00
Yeastplume 8e79856168 Upgrade Tokio to v1.x and Hyper to v0.14 (#3804)
* update of tokio and related dependencies to 1.x

* update to hyper 0.14

* fixes to http connector for tests
2025-03-08 11:54:13 +00:00
Yeastplume b93d88b58c Addition of seed-check logic to top-level crate (#3801)
* Addition of initial seed check logic

* updated to call from command line, now need to do something about peer store root output

* rework check to delete temp files, add output options, testing
2024-11-27 14:01:38 +00:00
Yeastplume 6c012043c0 Add Devcontainer Support (#3799)
* attempt at dual mac builds

* add initial devcontainer

* correct dependency import
2024-11-13 12:04:02 +00:00
yeastplume 118f885468 add rustup target to mac x86_64 build 2024-11-05 10:46:06 +00:00
Yeastplume 2d60c5178b attempt at dual mac builds (#3798) 2024-11-05 10:25:24 +00:00