Commit graph

478 commits

Author SHA1 Message Date
hinto.janai
405db208c7
Merge branch 'main' into other 2025-01-17 15:28:17 -05:00
503ef11514
cuprated: Init (#344)
* 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

* review fixes

* fix clippy

* review fixes
2025-01-17 20:24:24 +00:00
hinto.janai
2c32e0238e
fixes 2025-01-17 15:22:01 -05:00
hinto.janai
416efcb788
fix key image types 2025-01-17 14:58:54 -05:00
hinto.janai
95ab9765e8
fix is_key_image_spent 2025-01-17 14:40:30 -05:00
hinto.janai
78b3ff1925
fix get_hashes 2025-01-17 14:34:16 -05:00
hinto.janai
0b3ff4e14c
review fixes
Some checks are pending
Deny / audit (push) Waiting to run
2025-01-16 20:14:30 -05:00
hinto.janai
4118af2f24
Merge branch 'other' of github.com:hinto-janai/cuprate into other 2025-01-16 19:39:23 -05:00
hinto-janai
c7443c9140
Update binaries/cuprated/src/rpc/handlers/json_rpc.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
2025-01-16 19:38:30 -05:00
hinto-janai
bc6fc0ae13
Update binaries/cuprated/src/rpc/handlers/json_rpc.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
2025-01-16 19:38:14 -05:00
hinto.janai
1d3c807b98
use monero_address 2025-01-16 19:22:48 -05:00
hinto.janai
13f5ed9dd0
Merge branch 'main' into other
Some checks are pending
Deny / audit (push) Waiting to run
2025-01-16 11:44:58 -05:00
hinto-janai
6320411f60
ci: stable Rust for deny, remove boost dep for docs (#364)
Some checks are pending
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / wasm-32-bit-support (cuprate-epee-encoding) (push) Waiting to run
CI / wasm-32-bit-support (cuprate-fixed-bytes) (push) Waiting to run
CI / wasm-32-bit-support (cuprate-rpc-types) (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
Deny / audit (push) Waiting to run
Doc / build (push) Waiting to run
Doc / deploy (push) Blocked by required conditions
* doc.yml: remove boost dep

* deny.yml: install stable rust
2025-01-16 16:31:55 +00:00
hinto-janai
c817c3b889
workspace: Rust 1.84 (#363)
* apply

* ci: use stable rust for rustfmt
2025-01-16 15:43:42 +00:00
hinto.janai
1c3f1b16a0
Merge branch 'main' into other
Some checks are pending
Deny / audit (push) Waiting to run
2025-01-16 08:36:11 -05:00
SyntheticBird
cebb71d7dc
misc: Update SyntheticBird PGP key (#362)
Some checks failed
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / wasm-32-bit-support (cuprate-epee-encoding) (push) Has been cancelled
CI / wasm-32-bit-support (cuprate-fixed-bytes) (push) Has been cancelled
CI / wasm-32-bit-support (cuprate-rpc-types) (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
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
Update SyntheticBird PGP key

I changed my email very recently (and hopefully stay on it).
This key is also used to sign my future commits.
2025-01-14 01:38:14 +00:00
79e4789e6a
rpc/types 32 bit support (#334)
* rpc/types 32 bit support

* fix docs

* add 32 bit check to CI

* remove `cuprate-types`

* add comments to CI

* Apply suggestions from code review

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

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2025-01-08 03:49:59 +00:00
10000b4b34
rpc/types: add missing defaults to fields (#361)
* add defaults to fields

* Update rpc/types/src/bin.rs

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

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2025-01-08 01:58:43 +00:00
hinto.janai
c56ecd358a
cargo hack fix
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-25 16:55:32 -05:00
hinto.janai
04ade527ff
Merge branch 'main' into other 2024-12-25 16:50:03 -05:00
hinto.janai
85ebc679b2
review fixes
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-20 20:53:10 -05:00
hinto.janai
ecf5d66a91
rpc/interface: fix cargo hack 2024-12-20 17:37:23 -05:00
hinto.janai
d41014b210
get_transaction_pool_hashes fix 2024-12-20 17:11:18 -05:00
hinto.janai
b2b7e93e4c
json-rpc fixes
Some checks are pending
Deny / audit (push) Waiting to run
2024-12-19 20:41:50 -05:00
hinto.janai
114a5db52e
fix conflict 2024-12-19 18:42:17 -05:00
hinto.janai
d47f8ec7dc
fix doc tests 2024-12-19 18:38:08 -05:00
hinto.janai
dff77e8bed
fix get_txid for /get_outs
miner transaction was not accounted for
2024-12-19 18:11:00 -05:00
hinto.janai
cb6fdb76e4
HexVec 2024-12-19 17:22:35 -05:00
80369b82d2
Storage: remove get_range (#359)
Some checks failed
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
Doc / build (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
Doc / deploy (push) Has been cancelled
* remove `get_range`

* change usages of `get_range`

* clippy

* cargo update

* fix test + update comment
2024-12-19 21:58:54 +00:00
hinto.janai
ed8de29504
txpool: all_hashes 2024-12-18 21:03:40 -05:00
hinto.janai
21e42c1f54
module cleanup 2024-12-18 20:26:54 -05:00
hinto.janai
aca28552ab
get_output_distribution 2024-12-18 18:09:01 -05:00
hinto.janai
ce6838bd6f
restricted json-rpc error 2024-12-17 18:39:05 -05:00
hinto.janai
3763dc9693
rpc-interface: add restricted invariant comments 2024-12-17 18:23:09 -05:00
hinto.janai
04cdc72f46
/get_blocks.bin 2024-12-17 18:16:03 -05:00
hinto.janai
f7f9063890
clippy 2024-12-16 20:49:20 -05:00
hinto.janai
3664e2f794
/get_output_distribution.bin 2024-12-16 20:48:06 -05:00
hinto.janai
8cd319cc45
/get_o_indexes.bin 2024-12-16 20:30:52 -05:00
hinto.janai
541302ea07
get_blocks_by_height, shared::get_outs 2024-12-16 20:21:00 -05:00
hinto.janai
0b3ee2d1d1
finish other draft 2024-12-16 17:56:27 -05:00
hinto.janai
805f475083
/get_transaction_pool_stats 2024-12-13 20:21:11 -05:00
hinto.janai
c5abf9bb98
/get_transaction_pool 2024-12-13 20:14:16 -05:00
hinto.janai
c924f24765
/peerlist 2024-12-13 19:50:19 -05:00
hinto.janai
b3314d4981
/send_raw_transaction, /save_bc, response_base 2024-12-13 19:30:25 -05:00
hinto.janai
d4b30333bb
most of /send_raw_transaction
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-13 16:43:39 -05:00
hinto.janai
c38daa4497
/get_transactions hex 2024-12-13 15:36:11 -05:00
hinto.janai
ab4822c660
!! 2024-12-13 15:16:26 -05:00
hinto.janai
a359eed8be
/is_key_image_spent 2024-12-11 20:52:40 -05:00
hinto.janai
c3bc9b26ec
/get_transactions 2024-12-11 19:16:34 -05:00
hinto.janai
b402c82557
json_rpc: get_block_template 2024-12-11 16:30:37 -05:00