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
hinto-janai
c50d9642be
storage: create Cargo.toml for {database, cuprate-txpool}
( #140 )
2024-05-29 20:00:29 +01:00
hinto-janai
d052fbedf1
repo: add issue templates ( #137 )
...
* add issue templates
* add `question.md`
* fix bug.md
* fix feature.md
* bug.md: fix spacing
2024-05-29 18:34:32 +01:00
hinto-janai
4876e159e7
repo: add skeleton directories, fix labels ( #139 )
...
* `database/` -> `storage/`, create skeleton `storage/` crates
* add skeleton root directories
* books: add skeleton
* ci: fix labeler.yml
* fix CONTRIBUTING.md
* fix workspace Cargo.toml
* fix `storage/`
* rename helper fs fn, `cuprate_database` -> `cuprate_blockchain`
* fix Cargo.toml
* cuprate-blockchain: revert find-and-replace
Since it has to be ported to the book anyway, there's not much
reason to update this and create review diffs.
* labeler.yml: remove `A-docs` from `books/` changes
Although books are documentation,
the `A-books` label already exists for this
2024-05-29 02:18:30 +01:00
hinto-janai
45656fe653
repo: adopt rust-lang
label system ( #136 )
...
* contributing: add `Keeping track of issues and PRs` section
* add `labeler.yml`
* more labels
* update labels
* update `.github/labeler.yml`
* update `CONTRIBUTING.md`
* doc `.github` files
* wording fix
* add `A-dependency`
2024-05-27 00:57:21 +01:00
hinto-janai
59a49b93ab
repo: update license ( #134 )
...
* add MIT license
* update LICENSE.md
* net: remove license files
* fix LICENSE-MIT formatting
use github formatting
2024-05-27 00:39:32 +01:00
hinto-janai
1e857416c9
database/helper: define static
s within functions ( #135 )
2024-05-24 02:16:39 +01:00
e8b20e6115
P2P: async buffer ( #109 )
...
* impl async buffer
* clippy
* review comments
2024-05-24 02:15:49 +01:00
Boog900
55c744512d
fix doc
2024-05-23 02:03:09 +01:00
Boog900
20f9a063ea
fix merge + add some docs
2024-05-22 21:43:45 +01:00
Boog900
7f5e44f7b1
Merge branch 'main' into network-init
2024-05-22 01:59:47 +01:00
0158c6671a
P2P: Peer sync state svc ( #128 )
...
* 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 a test
* fix merge
* add another test
* unify PeerDisconnectFut and add more docs
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* dif -> diff
* move comment
* Update pruning/src/lib.rs
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-05-22 01:56:39 +01:00
02cd963e57
P2P: Broadcast svc ( #129 )
...
* 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 broadcast svc
* add more docs
* add some tests
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* review comments
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-05-21 23:19:52 +01:00
Boog900
7a22aa6500
correct comment
2024-05-20 18:48:30 +01:00
Boog900
79a14120d9
fix leak in client pool
2024-05-19 21:58:30 +01:00
Boog900
76c0ad33b0
fix address book docs
2024-05-19 19:05:06 +01:00
Boog900
f28321a7ec
remove crate doc for now
2024-05-19 18:50:10 +01:00
Boog900
2fd74dec14
add an inbound connection server
2024-05-19 18:35:07 +01:00
Boog900
f818b6a5ff
start network init
2024-05-19 01:00:01 +01:00
Boog900
8eaaac53ca
Merge branch 'broadcast-svc' into network-init
2024-05-18 18:38:39 +01:00
Boog900
191a1723a1
Merge branch 'main' into broadcast-svc
2024-05-18 14:01:16 +01:00
Boog900
41970d748a
unify PeerDisconnectFut and add more docs
2024-05-18 13:52:21 +01:00
Boog900
f4ef14ca18
add another test
2024-05-17 17:36:25 +01:00
Boog900
e1dfa3e605
fix merge
2024-05-17 15:23:51 +01:00
Boog900
065fa242d8
Merge branch 'main' into sync-states
2024-05-17 14:54:58 +01:00
c5fbbcc6e8
P2P Client Pool ( #121 )
...
* 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
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* review changes
* Update p2p/cuprate-p2p/src/connection_maintainer.rs
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-05-17 14:52:51 +01:00
Boog900
b407377f52
add a test
2024-05-16 00:31:55 +01:00
Boog900
aedf87ec5b
add some tests
2024-05-15 17:15:39 +01:00
hinto-janai
38ede35468
database: more README docs ( #126 )
...
* tables: change order
* readme: add `Schema`
* readme: use type aliases
* readme: add `10. Known issues and tradeoffs`
* !!
* readme: add `The service` section
* readme: fill `Known issues and tradeoffs` section
* readme: fixes
* readme: fixes
* readme: review fixes
2024-05-15 16:58:18 +01:00
Boog900
df6d6ec187
add more docs
2024-05-15 16:30:46 +01:00
Boog900
7881013380
add broadcast svc
2024-05-15 01:47:44 +01:00
Boog900
020fd56673
add peer sync state svc
2024-05-15 01:33:05 +01:00
Boog900
cbb629d431
Merge branch 'main' into peer-set2
2024-05-14 20:04:03 +01:00
hinto-janai
d0ac94a813
ci: downgrade to gcc 13.2
for windows ( #127 )
2024-05-14 19:41:39 +01:00
Boog900
6d3096eb03
small changes
2024-05-13 23:56:00 +01:00
Boog900
e59bb0a1f5
use JoinSet in connection maintainer
2024-05-13 23:39:36 +01:00
SyntheticBird
31ce89412a
Removing old_database/
( #100 )
...
remove old db
2024-05-09 21:06:33 +01:00
Boog900
37e7c29c48
fix docs
2024-05-07 01:18:29 +01:00
Boog900
1570844b0b
typo
2024-05-07 01:13:55 +01:00
Boog900
859d67d8b6
add more docs
2024-05-07 01:07:18 +01:00
Boog900
1b01336294
start documenting client_pool.rs
2024-05-06 02:22:30 +01:00
Boog900
63a3207316
Merge branch 'main' into peer-set2
2024-05-06 01:52:46 +01:00
75306babf8
dandelion++ lib ( #111 )
...
* init D++
* init D++ router
* working D++ router
* add test
* D++ tx pool
* add more txpool docs
* add a txpool builder
* add tracing
* add more docs
* fix doc
* reduce test epoch (windows CI fail)
* generate first state in config
Windows seems to not allows taking a big value from an instant
* extend tests
* clippy
* review comments + more docs
* Apply suggestions from code review
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* update Cargo.lock
* rename txpool.rs -> pool.rs
* review comments
* Update p2p/dandelion/src/tests/router.rs
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
* Update p2p/dandelion/src/router.rs
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
---------
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-05-05 20:22:41 +01:00
hinto-janai
10d327ca13
ci: use dtolnay/rust-toolchain
( #124 )
...
* ci: don't cache `.cargo/`, `.rustup/`
* ci: use `dtolnay/rust-toolchain@master`
2024-05-05 15:22:05 +01:00
hinto-janai
fb3d41ccbb
database: final docs + cleanup ( #117 )
...
* re-apply 'main' merge + doc patches
* fix redb lints
* update readme
* add `lib.rs, ops, service` doc-test examples
* docs for `config`, `ops`, add doc-tests
* remove merge error
incorrect leftover code from previous merge
* doc top-level types
* docs: error, tables, types
* misc docs, TODO, FIXME, SOMEDAY fixes
* change clippy lints
* tests: add `tables_are_sorted()`
* move `tables_are_sorted()` test to `backend/tests.rs`
* readme formatting
* small fixes
* readme fixes
* docs: `helper/`
* docs: `types/`
* database/README.md fixes
* doc fixes
* types: doc fixes
* fixes
* all review changes
2024-05-05 15:21:28 +01:00
Boog900
4b471a947f
Merge branch 'main' into peer-set2
2024-05-03 17:16:36 +01:00
00c3692eac
P2p changes ( #118 )
...
* p2p changes
* clippy
* a few more docs
* review comments
* fix peer list bug
2024-05-02 22:58:22 +00:00
hinto-janai
9c27ba5791
database: impl service
fn bodies ( #113 )
...
* write: impl write_block()
* ops: add `get_block_info()`
* read: impl block fn's
* read: fix signatures
* service: wrap `ConcreteEnv` in `RwLock` and doc why
* heed: use `read-txn-no-tls` for `Send` read transactions
* service: remove RwLock, impl some read functions
* read: impl `outputs()`
* read: flatten indentation, add `thread_local()`
* read: impl `number_outputs_with_amount()`
* tests: add `AssertTableLen`
* ops: replace all table len asserts with `AssertTableLen`
* service: initial tests
* service: finish most tests
* service: fix bad block data in test
* tables: fix incorrect doc
* service: add `ReadRequest::Outputs` test
* read: use macros for set/getting `ThreadLocal`'s based on backend
* small fixes
* fix review
* small fixes
* read: fix ThreadLocal macros for `redb`
* read: move `Output` mapping to `crate::free`
it's needed in tests too
* service: check output value correctness in tests
* helper: add timelock <-> u64 mapping functions
* free: use `u64_to_timelock()`
* read: rct outputs
* read: fix variable name
* read: use ThreadLocal for both backends
* heed: use Mutex for `HeedTableRo`'s read tx
* block: add miner_tx
* heed: remove Table bound
oops
* Revert "heed: use Mutex for `HeedTableRo`'s read tx"
This reverts commit 7e8aae016c
.
* add `UnsafeSendable`
* read: use `UnsafeSendable` for `heed`, branch on backend
* read: safety docs
* cargo.toml: re-add `read-txn-no-tls` for heed
* ops: fix tests, remove miner_tx
* fix tx_idx calculation, account for RCT outputs in tests
* read: docs, fix `get_tables!()` for both backends
* fix clippy
* database: `unsafe trait DatabaseRo`
* tx: use correct tx_id
* free: remove miner_tx comment
* free: remove `amount` input for rct outputs
* ops: split `add_tx` inputs
* read: use `UnsafeSendable` for all backends
* heed: update safety comment
* move output functions `free` -> `ops`
* read: fix `chain_height()` handling
* remove serde on `UnsafeSendable`
* de-dup docs on `trait DatabaseRo`, `get_tables!()`
* Update database/src/unsafe_sendable.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
---------
Co-authored-by: Boog900 <boog900@tutanota.com>
2024-05-01 18:52:20 +01:00