Boog900
74b63d6c47
Merge branch 'main' into cuprated
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-07-05 17:12:43 +01:00
d5c8eba1d8
P2P: API Improvements ( #168 )
...
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* start handshaker builder
* finish builder
* remove borsh requirement
* fix poll_ready :/
* add more docs to builder
* more docs
* fix clippy
* merge fixes
* fix doc test
* fix imports
* cargo fmt
* split `PeerRequest` and `PeerResponse` enums up.
This splits them both into a protocol and admin enum
* add request handler file
* integrate request handler into connection
* fix docs
* doc updates
* add more docs
* fix docs
* misc changes
* review fixes
* fix merge
* add dummy file
* fix docs
* Update p2p/dandelion-tower/src/router.rs
* fix docs
2024-07-04 21:05:22 +01:00
Boog900
415425a576
Merge branch 'main' into cuprated
2024-07-03 01:57:41 +01:00
7c8466f4ba
Storage: add blockchain history requests ( #206 )
...
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
* Add database requests for chain history
* misc fixes
* review comments
* fix clippy
* add link and fix typo
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* add comment
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-07-02 23:08:19 +01:00
fb1f071faf
P2P: fix block downloader test ( #205 )
...
make sure timeout is non-zero
2024-07-01 20:23:59 +01:00
f91be58a7f
P2P: Fix freeze in D++ ( #204 )
...
* Fix d++ router freeze
* update docs
* fix imports
* fix clippy
* Update p2p/dandelion-tower/src/lib.rs
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-07-01 20:23:40 +01:00
Boog900
c5ef28596e
Merge branch 'main' into cuprated
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-29 19:22:52 +01:00
hinto-janai
4b93dbec4c
workspace: enforce crate/directory naming scheme ( #164 )
...
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
* rename all directories and crates
* fix all `use`
* fix doc link
* `dandelion/` -> `dandelion-tower/`
* fix epee-encoding test
* fix `json-rpc`
* fix pruning
* crate import fixes
* fix leftover merge conflicts
* fix `epee-encoding`
2024-06-24 02:30:47 +01:00
10aac8cbb2
P2P: Block downloader ( #132 )
...
* impl async buffer
* clippy
* p2p changes
* clippy
* a few more docs
* init cuprate-p2p
* remove some unrelated code and add some docs
* start documenting client_pool.rs
* add more docs
* typo
* fix docs
* use JoinSet in connection maintainer
* small changes
* add peer sync state svc
* add broadcast svc
* add more docs
* add some tests
* add a test
* fix merge
* add another test
* unify PeerDisconnectFut and add more docs
* start network init
* add an inbound connection server
* remove crate doc for now
* fix address book docs
* fix leak in client pool
* correct comment
* fix merge + add some docs
* review comments
* init block downloader
* fix doc
* initial chain search
* add chain_tracker
* move block downloader to struct
* spawn task whe getting blocks
* check for free peers and handle batch response
* add test bin
* working block downloader
* dynamic batch sizes
* dandelion_tower -> dandelion-tower
* fix async-buffer builds
* check if incoming peers are banned
* add interface methods
* update docs
* use a JoinSet for background network tasks
* dynamic batch size changes
* Keep a longer of queue of blocks to get
* more checks on incoming data
* fix merge
* fix imports
* add more docs
* add some limits on messages
* keep peers that dont have the current need data
* fix clippy
* fix .lock
* fix stopping the block downloader
* clean up API and add more docs
* tracing + bug fixes
* fix panic
* doc changes
* remove test_init
* remove spammy log
* fix previous merge
* add a test
* fix test
* remove test unwrap
* order imports correctly
* clean up test
* add a timeout
* fix tests
* review fixes
* make `BlockDownloader` pub
* make `initial_chain_search` pub
* make `block_downloader` private
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* split some sections into separate modules
* split chain requests
* sort imports
* check previous ID is correct
* fix typos
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-22 01:29:40 +01:00
Boog900
008e46c683
add syncer
2024-06-14 22:24:23 +01:00
Boog900
cfe5bea453
fix tests
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-13 23:07:35 +01:00
Boog900
3e87556411
add a timeout
2024-06-13 22:12:41 +01:00
Boog900
6d83cda90f
clean up test
2024-06-13 22:04:58 +01:00
Boog900
3d995c5af5
order imports correctly
2024-06-13 16:44:07 +01:00
Boog900
efbe18b242
remove test unwrap
2024-06-13 15:54:13 +01:00
Boog900
18d4b77070
fix test
2024-06-13 14:36:11 +01:00
Boog900
dd9e63d408
add a test
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run
2024-06-13 03:15:47 +01:00
Boog900
cefd8a7a3f
fix previous merge
2024-06-12 01:46:17 +01:00
Boog900
c5a493a186
remove spammy log
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-12 01:38:37 +01:00
Boog900
712e9723b2
remove test_init
2024-06-12 01:25:14 +01:00
Boog900
8fb1406490
doc changes
2024-06-12 01:24:36 +01:00
Boog900
002df61ac0
fix panic
2024-06-12 00:23:56 +01:00
Boog900
4ef809e85f
tracing + bug fixes
2024-06-12 00:06:59 +01:00
Boog900
e81593beff
clean up API and add more docs
2024-06-11 02:41:05 +01:00
Boog900
7d33ab25b4
fix stopping the block downloader
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-10 22:12:14 +01:00
Boog900
fe597a7fd3
fix clippy
2024-06-10 19:58:21 +01:00
Boog900
78e63e2cbf
keep peers that dont have the current need data
2024-06-10 19:17:09 +01:00
Boog900
6776264dc6
add some limits on messages
2024-06-10 02:21:49 +01:00
Boog900
08f1abb9df
add more docs
2024-06-09 02:38:00 +01:00
Boog900
d7c9032dd8
fix imports
2024-06-08 02:40:28 +01:00
Boog900
d3e784d432
fix merge
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-06 02:12:15 +01:00
Boog900
9edcb760f7
Merge branch 'main' into block-downloader
2024-06-06 01:36:15 +01:00
b510739701
P2P: Network init ( #130 )
...
* p2p changes
* clippy
* a few more docs
* init cuprate-p2p
* remove some unrelated code and add some docs
* start documenting client_pool.rs
* add more docs
* typo
* fix docs
* use JoinSet in connection maintainer
* small changes
* add peer sync state svc
* add broadcast svc
* add more docs
* add some tests
* add a test
* fix merge
* add another test
* unify PeerDisconnectFut and add more docs
* start network init
* add an inbound connection server
* remove crate doc for now
* fix address book docs
* fix leak in client pool
* correct comment
* fix merge + add some docs
* fix doc
* dandelion_tower -> dandelion-tower
* fix async-buffer builds
* check if incoming peers are banned
* add interface methods
* update docs
* use a JoinSet for background network tasks
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* Update p2p/monero-p2p/src/services.rs
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-04 18:19:25 +01:00
Boog900
fd8885174b
more checks on incoming data
2024-06-04 02:42:53 +01:00
Boog900
51e67163a8
Keep a longer of queue of blocks to get
2024-06-03 16:08:10 +01:00
Boog900
44c7ad4992
dynamic batch size changes
2024-06-01 02:02:45 +01:00
Boog900
334a62115b
Merge branch 'network-init' into block-downloader
2024-06-01 00:36:48 +01:00
Boog900
cbcfbff878
use a JoinSet for background network tasks
2024-05-30 21:14:28 +01:00
Boog900
cce4ef96dd
update docs
2024-05-30 18:24:23 +01:00
Boog900
d84e8a48f8
add interface methods
2024-05-30 17:02:38 +01:00
Boog900
fd7225e673
check if incoming peers are banned
2024-05-30 02:03:48 +01:00
Boog900
a4ca123589
fix async-buffer builds
2024-05-30 01:27:27 +01:00
Boog900
a53279a8c6
Merge branch 'main' into network-init
2024-05-30 01:25:59 +01:00
Boog900
384818f57f
dandelion_tower -> dandelion-tower
2024-05-30 01:25:55 +01:00
Boog900
1ae87734fe
dynamic batch sizes
2024-05-29 23:47:32 +01:00
Boog900
7e19a59d94
working block downloader
2024-05-29 15:22:44 +01:00
Boog900
6979dba92d
add test bin
2024-05-29 02:05:04 +01:00
Boog900
759369dd0a
check for free peers and handle batch response
2024-05-29 01:40:42 +01:00
Boog900
eb69895278
spawn task whe getting blocks
2024-05-27 01:31:07 +01:00
Boog900
fa99fd5343
move block downloader to struct
2024-05-27 01:00:55 +01:00