Commit graph

419 commits

Author SHA1 Message Date
Boog900
ac5c1736fc
update update deps and fix doc 2025-03-07 19:27:08 +00:00
Boog900
f15a754c50
update rust to 2024 2025-03-07 18:45:35 +00:00
Boog900
435c6b717f
fix clippy 2025-03-06 21:52:18 +00:00
Boog900
d71c5aaf7f
add docs + order imports 2025-03-06 21:41:29 +00:00
Boog900
8c268aa841
fmt 2025-03-06 21:20:58 +00:00
Boog900
693b7a94df
Merge branch 'main' into fast-sync-clean 2025-03-06 21:20:11 +00:00
Boog900
7226d4d1ad
fix import order 2025-03-06 21:14:48 +00:00
5c2b56c78e
Update to experimental monero oxide api ()
* add specific method for context

* add new statemachine for tx verification

* fix consensus crates build

* working builds

* fix CI

* add docs

* fix CI

* fix docs

* fix clippy

* cleanup

* add docs to `blockchain_context`

* fix doc tests

* add output cache

* new monero-serai

* todo

* todo

* Revert "new monero-serai"

This reverts commit fe3f6acc67.

* use indexmap to request outputs

* clean up

* fix typos

* fix CI

* fix cargo hack

* fix reorgs

* check if a block is already present before adding it to the alt block cache

* fmt

* update to new monero oxide API

* fmt & fix cache

* update config values

* fix tests

* fix no-std builds
2025-03-06 19:03:25 +00:00
2dc258e4c8
Consensus: Fix reorgs ()
* add specific method for context

* add new statemachine for tx verification

* fix consensus crates build

* working builds

* fix CI

* add docs

* fix CI

* fix docs

* fix clippy

* cleanup

* add docs to `blockchain_context`

* fix doc tests

* add output cache

* new monero-serai

* todo

* todo

* Revert "new monero-serai"

This reverts commit fe3f6acc67.

* use indexmap to request outputs

* clean up

* fix typos

* fix CI

* fix cargo hack

* fix reorgs

* check if a block is already present before adding it to the alt block cache

* fmt
2025-03-06 16:40:52 +00:00
6a9356b552
consensus: Batch get outputs ()
* add specific method for context

* add new statemachine for tx verification

* fix consensus crates build

* working builds

* fix CI

* add docs

* fix CI

* fix docs

* fix clippy

* cleanup

* add docs to `blockchain_context`

* fix doc tests

* add output cache

* new monero-serai

* todo

* todo

* Revert "new monero-serai"

This reverts commit fe3f6acc67.

* use indexmap to request outputs

* clean up

* fix typos

* fix CI

* fix cargo hack

* update doc comment

* fix non-rct miner tx error

* Apply suggestions from code review

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

* Update storage/database/src/backend/redb/env.rs

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

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2025-03-06 16:17:09 +00:00
ba708a78d5
cuprated: add startup delay if config is missing ()
* add startup delay if config is missing

* clean up

* fix typos

* fix imports + add small comment

* fmt
2025-03-06 03:52:03 +00:00
hinto-janai
f554be73b9
cuprated: config versioning + backwards compat test ()
* apply

* typo

* fix path
2025-03-06 01:35:14 +00:00
hinto-janai
d795b51e4d
ci: remove dependency installs, set OS versions ()
* remove boost deps

* fix

* readd some windows deps

* windows-2019

* update OSs, `randomx-rs` commit

* !!

* ubuntu-22.04
2025-03-05 03:23:38 +00:00
1c04634396
P2P: fix deadlock ()
* fix deadlock

* fix ci

* clean up + docs

* fmt

* remove extra tick

* fix typos
2025-03-04 21:36:27 +00:00
Boog900
7d7208e532
typo 2025-03-04 21:28:58 +00:00
Boog900
86a6bf0275
fix permit 2025-03-04 02:48:44 +00:00
Boog900
066bb4eda1
wait for all blocks to download before starting the syncer again. 2025-03-04 01:18:16 +00:00
Boog900
ca4f95e414
add docs 2025-03-03 03:29:37 +00:00
Boog900
5d67c15ec3
add fast sync config options 2025-03-03 02:21:39 +00:00
Boog900
003f435806
disable kill switch for now 2025-03-02 15:48:27 +00:00
Boog900
619040beda
fix start_height check 2025-03-01 02:38:41 +00:00
Boog900
67dcc4ac15
add fast sync 2025-02-28 23:17:28 +00:00
Yichi Zhang
4f3d11be1d
Modify wrong code ()
Modify_inconsistency
2025-02-27 15:19:12 +00:00
Boog900
c9261b3eb0
fix tests 2025-02-26 00:30:34 +00:00
Boog900
57ce4b5175
update config values 2025-02-25 21:56:16 +00:00
Boog900
c43fab3970
fmt & fix cache 2025-02-25 15:49:53 +00:00
Boog900
e1d1f616f1
update to new monero oxide API 2025-02-25 01:59:27 +00:00
Boog900
dfdd8f4850
fmt 2025-02-25 01:34:37 +00:00
Boog900
6c7424e628
check if a block is already present before adding it to the alt block cache 2025-02-22 16:32:15 +00:00
Boog900
eedbd559a3
fix reorgs 2025-02-22 01:46:18 +00:00
Boog900
8cf22101e0
fix cargo hack 2025-02-22 01:42:40 +00:00
Boog900
da884b3fc1
fix CI 2025-02-22 00:27:45 +00:00
Boog900
cb43a73a05
fix typos 2025-02-22 00:13:35 +00:00
Boog900
5054f4aa26
clean up 2025-02-22 00:03:31 +00:00
Boog900
6cb3ec15bc
Merge branch 'main' into batch-outputs 2025-02-09 23:58:23 +00:00
Boog900
241b7fce65
use indexmap to request outputs 2025-02-09 19:05:43 +00:00
Boog900
4e805b30fe
Revert "new monero-serai"
This reverts commit fe3f6acc67.
2025-01-29 15:11:23 +00:00
hinto-janai
7e8e62135c
database: SyncMode changes ()
apply
2025-01-29 14:41:30 +00:00
d8d1e34266
Consensus: Improve API ()
* add specific method for context

* add new statemachine for tx verification

* fix consensus crates build

* working builds

* fix CI

* add docs

* fix CI

* fix docs

* fix clippy

* cleanup

* add docs to `blockchain_context`

* fix doc tests

* review fixes

* fix cargo doc
2025-01-28 22:25:20 +00:00
Boog900
51b4a3e495
todo 2025-01-26 23:20:00 +00:00
Boog900
26fbde22d8
todo 2025-01-25 22:36:09 +00:00
Boog900
fe3f6acc67
new monero-serai 2025-01-25 21:25:56 +00:00
Boog900
918d818581
add output cache 2025-01-24 03:39:57 +00:00
hinto-janai
9842535e86
cuprated: killswitch and version module ()
* add cuprated skeleton

* fmt and add deny exception

* add main chain batch handler

* add blockchain init

* very rough block manager

* misc changes

* move more config values

* add new tables & types

* add function to fully add an alt block

* resolve current todo!s

* add new requests

* WIP: starting re-orgs

* add last service request

* commit Cargo.lock

* add test

* more docs + cleanup + alt blocks request

* clippy + fmt

* document types

* move tx_fee to helper

* more doc updates

* fmt

* fix imports

* remove config files

* fix merge errors

* fix generated coins

* handle more p2p requests + alt blocks

* clean up handler code

* add function for incoming blocks

* add docs to handler functions

* broadcast new blocks + add commands

* add fluffy block handler

* fix new block handling

* small cleanup

* increase outbound peer count

* fix merge

* clean up the blockchain manger

* add more docs + cleanup imports

* fix typo

* fix doc

* remove unrelated changes

* add `get_objects` handler

* add `get_chain` handler

* add `fluffy_missing_txs` handler

* add `new_fluffy_block` handler

* improve interface globals

* manger -> manager

* enums instead of bools

* move chain service to separate file

* more review fixes

* sort imports + docs

* init config

* init dandelion integration

* add dandelion start function

* finish incoming tx handler

* Add tx blob hash table

* Add missing txpool requests

* handle duplicate stem txs

* check txpool on incoming block

* add request to remove tx in new blocks from the pool

* tell the txpool about incoming blocks

* fix merge

* typos

* remove blockchain height from txpool

* fix merge

* fix merge

* handle incoming txs in p2p request handler

* split sections

* finish initial config.

* fix clap

* misc changes

* fix doc

* fix test & clippy

* fix test 2

* try fix windows

* testing

* testing 2

* fix windows test

* fix windows: the remix.

* Allow `IncomingTxHandler` to be given later

* add p2p clearnet init

* fix build

* misc changes

* review comments

* fix imports

* rename & fix default config file

* fix cargo hack

* enable serde on `cuprate-helper`

* changes from matrix chats

* fix ci

* fix doc

* fix doc test

* doc updates

* more doc updates

* sort imports

* add startup code

* d -> h

* add file logging

* fix stem peer service

* todo

* remove `get_range`

* change usages of `get_range`

* clippy

* cargo update

* fix test + update comment

* manually set numb threads for each pool

* fix address book saves

* add more data to status

* fix config

* cleanup main + logging

* add more info to output when changing log level

* cleanup commands

* fix small issue in block downloader  more misc clean up

* cross block bp(+) batch verification

* add message when syncing is done

* Revert "cross block bp(+) batch verification"

This reverts commit 764c4663a0.

* fix fmt & clippy

* move `io_loop` to commands

* cuprated: killswitch module

* use `const` for major version

* `|| -> !`

* spacing

* fixes

* fixes

* fixes

---------

Co-authored-by: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com>
Co-authored-by: Boog900 <boog900@tutanota.com>
2025-01-21 19:02:10 +00:00
Boog900
2756d9613c
fix doc tests 2025-01-21 02:25:21 +00:00
Boog900
a425713f87
add docs to blockchain_context 2025-01-21 02:09:50 +00:00
Boog900
caab94c1ad
cleanup 2025-01-21 02:02:42 +00:00
Boog900
e884cd1c99
fix clippy 2025-01-20 22:19:46 +00:00
Boog900
dc639503f5
fix docs 2025-01-20 22:05:14 +00:00
Boog900
b680d8d270
fix CI 2025-01-20 21:54:35 +00:00