Ocean archive indexer and api server#2724
Merged
prasannavl merged 207 commits intomasterfrom Sep 28, 2024
Merged
Conversation
f12bdf8 to 96ff191 Compare Contributor Author
| 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
prasannavl previously approved these changes Sep 27, 2024
* ignore if any zero * fmt
This reverts commit 04716fa.
prasannavl reviewed Sep 28, 2024
| 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()), |
Contributor
There was a problem hiding this comment.
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
Contributor
| 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. |
Bushstar reviewed Sep 28, 2024
| // Construct undo | ||
| FlushCacheCreateUndo(pindex, mnview, cache, uint256S(std::string(64, '1'))); | ||
| | ||
| // Ocean archive |
Contributor
There was a problem hiding this comment.
Maybe this should be after evm_try_unsafe_commit_block in ConnectBlock, that's the very last point of failure when connecting new blocks.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Summary
Flags :