-
Notifications
You must be signed in to change notification settings - Fork 49
cuprated: RPC handlers #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
132 commits
Select commit
Hold shift + click to select a range
d170b46
import diffs
hinto-janai 02e950b
small fixes, hardfork changes
hinto-janai c18ba6e
lints
hinto-janai 93be3be
hard_fork
hinto-janai c590bbb
apply diffs
hinto-janai cec746b
review fixes
hinto-janai e57c887
Merge branch 'hf' into json
hinto-janai ac6360a
Merge branch 'main' into json
hinto-janai 2522bb8
binaries/cuprated/src/rpc/request: `pub(super)` -> `pub(crate)`
hinto-janai fd136b2
add `BlockChainContextService`, `on_get_block_hash`
hinto-janai 9459d59
Merge branch 'main' into json
hinto-janai b82ff27
map `tower::BoxError` to `anyhow::Error`
hinto-janai 8a3229b
get_block
hinto-janai 9422c07
connection_info
hinto-janai 50bd576
hard_fork_info
hinto-janai f677b1a
set_bans
hinto-janai 37bcbb5
get_bans
hinto-janai c7ae795
banned
hinto-janai 6af977f
flush_transaction_pool
hinto-janai 1a76934
get_output_histogram
hinto-janai 1d435cc
get_coinbase_tx_sum
hinto-janai d7fef15
get_version
hinto-janai 1e0ab56
get_fee_estimate
hinto-janai 294df3f
get_alternate_chains
hinto-janai 08b5ff2
relay_tx
hinto-janai 2daf255
response_base: `fn` -> `const`
hinto-janai a10ed59
get_transaction_pool_backlog
hinto-janai d7d8b35
prune
hinto-janai 5926f24
calc_pow
hinto-janai 7148ba1
add_aux_pow
hinto-janai d56477c
get_tx_ids_loose
hinto-janai 548639b
generate_blocks
hinto-janai e2f25bd
get_info
hinto-janai 4b1d7bc
sync_info
hinto-janai bd3a844
get_miner_data
hinto-janai bf07f2c
`BlockchainManagerRequest` docs
hinto-janai 98dfaa4
docs, `ConnectionInfo`, `AddressType`
hinto-janai 13eedc6
sig docs, remove `HardForks` request
hinto-janai 79b03e3
Merge branch 'main' into json
hinto-janai 544287d
Merge branch 'main' into json
hinto-janai 0cb6a76
clean imports
hinto-janai e30eeb8
fix `on_get_block_hash`, `generate_blocks`, `get_block_headers_range`
hinto-janai 228a718
fix `get_info`, `banned`
hinto-janai 9374d08
fix `sync_info`
hinto-janai fd84940
fix `get_miner_data`
hinto-janai 46bf198
initial `add_aux_pow` impl
hinto-janai 1f3b5ed
fix `calculate_pow`
hinto-janai e975c42
add_aux_pow
hinto-janai d634bea
`get_output_distribution`
hinto-janai 854b175
checkup
hinto-janai 2d2d493
`find_nonce()` + `add_aux_pow` async wrapper
hinto-janai 86f2dd1
fixes
hinto-janai de7abfc
`helper::block_header`
hinto-janai 1ffa86c
review fixes
hinto-janai 916d593
fixes
hinto-janai ff48fb4
doc fix
hinto-janai 8d5f779
p2p: remove tmp `AddressBookRequest::NextNeededPruningSeed`
hinto-janai 1a079c8
lint/todo fixes
hinto-janai a3fa638
fix bans
hinto-janai edaf627
Merge branch 'main' into json
hinto-janai 0b50091
merge diffs from https://github.com/Cuprate/cuprate/pull/272
hinto-janai 2104bb0
`cuprate_types::rpc`, `from` module for `cuprate_rpc_types`
hinto-janai 568a276
`rpc-types` -> `types` pt. 2
hinto-janai 20e599f
type fixes, move fn to `-helper`
hinto-janai a1903f3
clippy fix
hinto-janai d1c1025
rpc: move json-rpc types away from macros
hinto-janai 5b8cacd
!!
hinto-janai f2e7af7
move types, fix orphan impl + cyclic dependency
hinto-janai 3c25374
architecture book
hinto-janai 2de9a01
fix json-rpc handlers
hinto-janai bf5e863
remove `::<N>`
hinto-janai 89191ce
fix clippy
hinto-janai 3a79921
fix type defaults, use `Hex`
hinto-janai 1719d7d
return defaults, hex test
hinto-janai b402c82
json_rpc: get_block_template
hinto-janai c3bc9b2
`/get_transactions`
hinto-janai a359eed
`/is_key_image_spent`
hinto-janai ab4822c
!!
hinto-janai c38daa4
`/get_transactions` hex
hinto-janai d4b3033
most of `/send_raw_transaction`
hinto-janai b3314d4
`/send_raw_transaction`, `/save_bc`, response_base
hinto-janai c924f24
`/peerlist`
hinto-janai c5abf9b
`/get_transaction_pool`
hinto-janai 805f475
`/get_transaction_pool_stats`
hinto-janai 0b3ee2d
finish other draft
hinto-janai 541302e
get_blocks_by_height, shared::get_outs
hinto-janai 8cd319c
`/get_o_indexes.bin`
hinto-janai 3664e2f
`/get_output_distribution.bin`
hinto-janai f7f9063
clippy
hinto-janai 04cdc72
`/get_blocks.bin`
hinto-janai 3763dc9
rpc-interface: add restricted invariant comments
hinto-janai ce6838b
restricted json-rpc error
hinto-janai aca2855
get_output_distribution
hinto-janai 21e42c1
module cleanup
hinto-janai ed8de29
txpool: all_hashes
hinto-janai cb6fdb7
`HexVec`
hinto-janai dff77e8
fix `get_txid` for `/get_outs`
hinto-janai d47f8ec
fix doc tests
hinto-janai 114a5db
fix conflict
hinto-janai b2b7e93
json-rpc fixes
hinto-janai d41014b
`get_transaction_pool_hashes` fix
hinto-janai ecf5d66
rpc/interface: fix cargo hack
hinto-janai 85ebc67
review fixes
hinto-janai 04ade52
Merge branch 'main' into other
hinto-janai c56ecd3
cargo hack fix
hinto-janai 1c3f1b1
Merge branch 'main' into other
hinto-janai 13f5ed9
Merge branch 'main' into other
hinto-janai 1d3c807
use `monero_address`
hinto-janai bc6fc0a
Update binaries/cuprated/src/rpc/handlers/json_rpc.rs
hinto-janai c7443c9
Update binaries/cuprated/src/rpc/handlers/json_rpc.rs
hinto-janai 4118af2
Merge branch 'other' of github.com:hinto-janai/cuprate into other
hinto-janai 0b3ff4e
review fixes
hinto-janai 78b3ff1
fix `get_hashes`
hinto-janai 95ab976
fix `is_key_image_spent`
hinto-janai 416efcb
fix key image types
hinto-janai 2c32e02
fixes
hinto-janai 405db20
Merge branch 'main' into other
hinto-janai 783ca05
Merge branch 'main' into other
hinto-janai 384ac54
fix book
hinto-janai ecc21d2
Merge branch 'main' into other
hinto-janai e6efdbb
output timelock fix + `blockchain_context()`
hinto-janai 366c4a3
Merge branch 'main' into other
hinto-janai d8f12ef
fix
hinto-janai d18a9da
fix
hinto-janai 986c5c4
fix
hinto-janai babd82e
fix getblocks.bin
hinto-janai 9009fa1
`cuprate_types` doc
hinto-janai 373c890
output fix
hinto-janai 9131e91
fixme
hinto-janai daa6f63
rct output fix
hinto-janai b87bddf
fix cast
hinto-janai 8ac347d
clippy
hinto-janai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| //! RPC handler functions. | ||
| //! | ||
| //! These are the glue (async) functions that connect all the | ||
| //! internal `cuprated` functions and fulfill the request. | ||
| //! | ||
| //! - JSON-RPC handlers are in [`json_rpc`] | ||
| //! - Other JSON endpoint handlers are in [`other_json`] | ||
| //! - Other binary endpoint handlers are in [`bin`] | ||
| //! | ||
| //! - [`helper`] contains helper functions used by many handlers | ||
| //! - [`shared`] contains shared functions used by multiple handlers | ||
|
|
||
| pub(super) mod bin; | ||
| pub(super) mod json_rpc; | ||
| pub(super) mod other_json; | ||
|
|
||
| mod helper; | ||
| mod shared; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.