Commit graph

57 commits

Author SHA1 Message Date
Boog900
511639d1b4
fix merge
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-10-14 21:10:09 +01:00
Boog900
5ba2bf020a
Merge branch 'cuprated-txpool' into p2p-request-handler 2024-10-14 21:03:15 +01:00
Boog900
dc482558db
fix merge 2024-10-14 21:02:47 +01:00
Boog900
bb7126bd96
Merge branch 'main' into p2p-request-handler 2024-10-14 20:51:54 +01:00
Boog900
6c1f871d81
remove blockchain height from txpool
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-10-14 20:24:12 +01:00
Boog900
bfb4cbf831
typos 2024-10-14 19:31:17 +01:00
Boog900
b8e96cffcb
fix merge 2024-10-14 19:25:00 +01:00
Boog900
e199b8c26d
Merge branch 'main' into cuprated-txpool 2024-10-14 18:56:24 +01:00
Boog900
fb29f32375
tell the txpool about incoming blocks 2024-10-14 18:15:43 +01:00
Boog900
5ab5b062fd
check txpool on incoming block 2024-10-13 22:43:53 +01:00
Boog900
93fb3c657c
handle duplicate stem txs 2024-10-13 18:35:58 +01:00
Boog900
2d5567e47b
Add missing txpool requests
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-10-13 02:20:45 +01:00
Boog900
b6d94cf780
finish incoming tx handler 2024-10-13 01:22:20 +01:00
Boog900
d2c7e49e80
add dandelion start function 2024-10-10 21:14:22 +01:00
Boog900
adf592e530
init dandelion integration 2024-10-10 20:12:18 +01:00
hinto-janai
9923d8d69d
cuprated: internal signatures required for RPC (#297)
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
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* add request methods

* add p2p messages

* add txpool msgs

* add blockchain_context msgs

* add blockchain msgs

* fmt

* blockchain_manager msgs

* blockchain manager msg types

* add DB fn signatures

* add statics module

* p2p msg changes, docs

* txpool docs/types

* blockchain docs/types

* `AlternateChains`, docs

* fixes

* remove blockchain write handle, fix docs

* remove `BlockchainReadRequest::Difficulty`

* remove `BlockchainReadRequest::MinerData`

* fix p2p ban types

* `CurrentRxVm` -> `CurrentRxVms`

* storage: remove `Clone` off write handle

* Update p2p/p2p-core/src/ban.rs

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

* fix merge

---------

Co-authored-by: Boog900 <boog900@tutanota.com>
2024-10-08 22:57:09 +01:00
8be369846e
cuprated: Blockchain Manager (#274)
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
Doc / build (push) Waiting to run
Doc / deploy (push) Blocked by required conditions
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
* 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

* improve interface globals

* manger -> manager

* enums instead of bools

* move chain service to separate file

* more review fixes

* add link to issue

* fix syncer + update comment

* fmt
2024-10-08 18:26:07 +01:00
Boog900
4af0145baa
sort imports + docs 2024-10-05 22:23:25 +01:00
Boog900
048af975f3
Merge branch 'cuprated-blockchain' into p2p-request-handler 2024-10-05 21:40:31 +01:00
Boog900
a21e489fdc
more review fixes 2024-10-05 21:16:51 +01:00
Boog900
27a8acdb04
move chain service to separate file 2024-10-05 19:57:30 +01:00
Boog900
f50d921459
enums instead of bools 2024-10-05 19:49:26 +01:00
Boog900
375a1e1826
manger -> manager 2024-10-05 16:58:15 +01:00
Boog900
783f4260b4
improve interface globals 2024-10-05 16:39:33 +01:00
Boog900
37025bdfc0
add new_fluffy_block handler 2024-10-05 01:07:27 +01:00
Boog900
aa274ebafe
add fluffy_missing_txs handler
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-10-04 21:45:40 +01:00
Boog900
f158f869b4
add get_chain handler 2024-10-04 17:21:57 +01:00
Boog900
6e8fbf04f6
add get_objects handler 2024-10-04 02:45:42 +01:00
Boog900
403964bc22
remove unrelated changes
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-10-03 22:52:47 +01:00
Boog900
4af0f896b0
fix typo 2024-10-03 21:39:18 +01:00
Boog900
8cff481227
add more docs + cleanup imports 2024-10-03 21:35:42 +01:00
Boog900
caaeceda2e
clean up the blockchain manger
Some checks are pending
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run
2024-10-03 03:36:33 +01:00
Boog900
69f9d84ae1
fix merge 2024-10-03 01:53:47 +01:00
Boog900
a7553c20de
Merge branch 'main' into cuprated-blockchain 2024-10-01 22:58:31 +01:00
hinto-janai
12bbadd749
cuprated: add constants & statics modules (#301)
Some checks failed
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
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 (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* add modules

* docs

* test

* rename

* tabs -> spaces
2024-09-28 01:41:34 +01:00
Boog900
fa54df27d3
increase outbound peer count 2024-09-16 01:39:01 +01:00
Boog900
c0a3f7a718
small cleanup 2024-09-15 18:08:49 +01:00
Boog900
291ffe324d
fix new block handling 2024-09-15 01:59:05 +01:00
Boog900
d2ab8e20c4
add fluffy block handler 2024-09-15 01:20:24 +01:00
Boog900
a16381ea61
broadcast new blocks + add commands 2024-09-14 13:49:41 +01:00
Boog900
90beed1590
add docs to handler functions 2024-09-13 03:17:30 +01:00
Boog900
6ec5bc37a9
add function for incoming blocks 2024-09-13 00:03:03 +01:00
Boog900
01a3065cc8
clean up handler code 2024-09-12 22:17:44 +01:00
Boog900
915633fe70
handle more p2p requests + alt blocks
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-09-12 02:24:07 +01:00
Boog900
d4e0e30133
fix generated coins
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-09-09 20:13:22 +01:00
Boog900
da78cbdb7a
fix merge errors 2024-09-09 17:04:45 +01:00
Boog900
20033eedb0
Merge branch 'main' into cuprated-blockchain 2024-09-09 16:59:34 +01:00
hinto-janai
92800810d9
cuprated: initial RPC module skeleton (#262)
* readme

* cuprated: add all workspace deps

* cuprated: add lints

* !!

* add state, fn signatures

* fixes

* error signatures

* interface: handle json-rpc concepts

* split rpc calls into 3 `Service`s

* interface: extract out to `RpcService`

* fix merge

* remove crate lints

* use `BoxFuture`

* rpc/interface: impl `thiserror::Error`

* split state from main handler struct

* cleanup

* fix imports

* replace `RpcError` with `anyhow::Error`

* interface: update error

* cuprated: update error type
2024-09-08 15:52:17 +01:00
Boog900
05d0cf2295
move more config values 2024-08-29 16:04:17 +01:00
Boog900
1c93ea14b4
misc changes
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-08-29 01:58:10 +01:00