Commit graph

334 commits

Author SHA1 Message Date
e3b700529f
added file appender 2024-06-19 11:29:21 +02:00
Boog900
28f1b70d7e
remove test unwrap
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-13 15:10:57 +01:00
Boog900
91dcebe398
fix merge 2 2024-06-13 14:44:08 +01:00
Boog900
b48d9fa9cb
fix merge 2024-06-13 14:42:38 +01:00
Boog900
1bb6b45199
Merge branch 'block-downloader' into test-sync 2024-06-13 14:40:00 +01:00
Boog900
18d4b77070
fix test 2024-06-13 14:36:11 +01:00
Boog900
dd9e63d408
add a test
Some checks are pending
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
Some checks failed
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
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-10 22:12:14 +01:00
Boog900
bd1b7ff6c5
fix .lock 2024-06-10 20:01:45 +01:00
f043e0b71a
Merge branch 'main' into block-downloader 2024-06-10 18:59:24 +00: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
jomuel
663c852b13
Fast sync (WIP) (#155)
Some checks failed
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
Deny / audit (push) Has been cancelled
* Fast sync (work in progress)

* Cargo.lock

* Add missing hashes file

* clippy warnings

* Stub of database tool to create the fast sync hashes

* Command line arg for target height, error handling

* Cargo.lock

* fmt and unused imports

* fmt

* Add license information to consensus/fast-sync/Cargo.toml

Co-authored-by: Boog900 <boog900@tutanota.com>

* Order imports in consensus/fast-sync/src/create.rs

Co-authored-by: Boog900 <boog900@tutanota.com>

* beautify hex generation function & fmt

* Reorder imports consensus/fast-sync/src/fast_sync.rs
2024-06-09 14:24:44 +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
hinto-janai
e0736d1807
books: add user-book template (#154)
Some checks failed
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
* add user-book

* add `A-book-user` to labeler
2024-06-07 22:04:27 +01:00
Boog900
2898e75f1d
set default log to DEBUG and add p2p_store 2024-06-07 21:35:18 +01:00
0e5555d4d4
Consensus: block batch prepper (#151)
* add block batch prepper

* Apply suggestions from code review

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* review comments

* review comments

* fix doc

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-07 21:23:48 +01:00
7fafe56d2d
Consensus: fix panic in batch verifier (#152)
* fix panic in batch verifier

* docs

* review comments

* Update consensus/rules/src/batch_verifier.rs

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-07 13:42:47 +01:00
07f61bdb9c
Consensus: fix panic in batch verifier (#152)
Some checks failed
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
* fix panic in batch verifier

* docs

* review comments

* Update consensus/rules/src/batch_verifier.rs

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-07 13:34:53 +01:00
Boog900
d3e784d432
fix merge
Some checks failed
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
hinto-janai
6df67bb9d3
rpc: add initial crates (#146)
Some checks failed
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
Deny / audit (push) Has been cancelled
* add `rpc/` crates

* rpc: fix `monero-rpc-server` -> `monero-rpc-types`

* rpc: add skeleton `rpc/json-rpc`

* remove `cuprate-rpc-server`, add `json-rpc`
2024-06-05 15:35:08 +01:00
Boog900
e8ca8372c0
performance improvements 2024-06-05 02:29:06 +01:00
Boog900
df489dcd02
change to lmdb 2024-06-04 20:21:30 +01:00
Boog900
34d625d27c
testing 2024-06-04 20:01:12 +01:00
0622237d19
Consensus: use cuprate-types types (#145)
Some checks failed
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
Deny / audit (push) Has been cancelled
* move consensus database to /types

* fix `storage` builds

* unify `VerifiedBlockInformation`

* fix docs

* change `Database` trait wording

* order imports

* service -> blockchain

* Apply suggestions from code review

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* fix typo

* fix key_images_spent

* add back todo

* fix tests

* service -> blockchain 2

* update docs

* update docs 2

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-04 18:19:35 +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
8cea2f10a0
Merge branch 'unify-db-enums' into test-sync 2024-06-04 16:47:41 +01:00
Boog900
9c73ae106b
update docs 2
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-04 14:33:29 +01:00
Boog900
1523376371
update docs 2024-06-04 14:32:01 +01:00
Boog900
1b89601724
service -> blockchain 2 2024-06-04 14:30:02 +01:00
Boog900
fd8885174b
more checks on incoming data 2024-06-04 02:42:53 +01:00
Boog900
76762275d6
fix tests 2024-06-04 00:01:10 +01:00
Boog900
b8ae97b168
add back todo 2024-06-03 23:54:32 +01:00
Boog900
ad4d82119e
fix key_images_spent 2024-06-03 23:52:53 +01:00
Boog900
7d7d3cc5ad
fix typo 2024-06-03 23:12:50 +01:00
2f2659ad44
Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-06-03 23:11:20 +01:00
Boog900
76be728b82
service -> blockchain 2024-06-03 23:07:23 +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