-
Notifications
You must be signed in to change notification settings - Fork 122
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
Ocean archive indexer and api server #2724
Conversation
f12bdf8
to
96ff191
Compare
List of RPC queries done by Ocean that should be exposed directly by FFI:
|
cf793b1
to
039219b
Compare
* add ApiPageResponse + impl json on list_blocks * refine * body -> query
* Added `rockdb` to ocean api. * Implementation of ocean-api database method all module. * Added data_access layer * Added test case for module.
* wip * fail-fast false
* pagination query * poolpair path api path * mild refactor on error.rs and block.rs * masternode typing * rm debug_handler * extra line * default masternodestate * fix return type * typo * pub enum state * missing import * clone * simplified mn
* added block indexing * added block indexing and query method * added query methods and extra table * added query methods to modules * added oracle price active and prive feed module * added oracle price active and prive feed module * rebased indexing ocean-archive * rebased indexing ocean-archive and updated query methods all modules * rebased indexing ocean-archive and updated query methods all modules * fixed white space * fixed white space * fixed query method for masternode and masterstats
* OceanStore building * With RepositoryOps trait * Cleanup columns * Implement put/get/list masternode * Fix MasternodeByHeight get_key * Cleanup MasternodeData * Invalidate masternode * Remove comments * cfg(test_off) --------- Co-authored-by: canonbrother <w.canonbrother@gmail.com>
* target branch feature/ocean-archive * docker-build * on pr master + note
e33fc67
to
d422a1b
Compare
* model cleanup dup fields * fix apis * fmt_rs * cleanup PriceTicker 2 * rm oracle_history * model cleanup * fix api * clippy * fmt_rs * better naming * fmt * fix get_oracle_by_address api * update rounding strategy update rounding strategy * aggregated amt and weigtage typing * fmt_rs
* cache pool utils * get_network_info_cached * guard
* ignore if any zero * fmt
This reverts commit 04716fa.
@@ -135,7 +135,7 @@ pub async fn init_ocean_server(addr: String) -> Result<()> { | |||
let (user, pass) = ain_cpp_imports::get_rpc_auth().map_err(|e| format_err!("{e}"))?; | |||
let client = Arc::new( | |||
Client::new( | |||
&format!("localhost:{}", ain_cpp_imports::get_rpc_port()), | |||
&format!("http://127.0.0.1:{}", ain_cpp_imports::get_rpc_port()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, we might need to let this be configured from the flags similar to the rest as if the IP binding is different, it might not work
Going ahead and merging this in, as even though it doesn't affect consensus and the rest is also completed isolated and flagged - it's good to have the core part of it in for the testnet release before further refinements and fixes that target the optional ocean archive. |
@@ -4666,6 +4685,15 @@ Res ProcessDeFiEventFallible(const CBlock &block, | |||
// Construct undo | |||
FlushCacheCreateUndo(pindex, mnview, cache, uint256S(std::string(64, '1'))); | |||
|
|||
// Ocean archive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be after evm_try_unsafe_commit_block in ConnectBlock, that's the very last point of failure when connecting new blocks.
Summary
Flags :