-
Notifications
You must be signed in to change notification settings - Fork 28
Chain index integration #596
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
Conversation
|
Current status: FetchService has been updated to use the ChainIndex instead of the LocalCache. StateService still uses LocalCache. There are currently several test failures and hangs due to this switchover highlighting possible bugs in the new ChainIndex module. |
| /// changes (a new block is mined or a reorg occurs). | ||
| /// | ||
| /// If the chain tip has changed from the given spanshot returns None. | ||
| /// If a snapshot is given and the chain tip has changed from the given spanshot, returns None. |
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.
typo
| /// changes (a new block is mined or a reorg occurs). | ||
| /// | ||
| /// Returns None if the chain tip has changed from the given snapshot. | ||
| /// If a snapshot is given and the chain tip has changed from the given spanshot, returns None. |
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.
typo
| FinalisedStateError::JsonRpcConnectorError(transport_error) | ||
| } | ||
| RpcRequestError::JsonRpc(error) => { | ||
| FinalisedStateError::Custom(format!("argument failed to serialze: {error}")) |
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.
typo
| } | ||
| RpcRequestError::JsonRpc(error) => { | ||
| FinalisedStateError::Custom(format!("argument failed to serialze: {error}")) | ||
| NonFinalisedStateError::Custom(format!("argument failed to serialze: {error}")) |
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.
typo
| MempoolError::JsonRpcConnectorError(transport_error) | ||
| } | ||
| RpcRequestError::JsonRpc(error) => { | ||
| MempoolError::Critical(format!("argument failed to serialze: {error}")) |
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.
typo
| } | ||
| RpcRequestError::JsonRpc(error) => { | ||
| MempoolError::Critical(format!("argument failed to serialze: {error}")) | ||
| FetchServiceError::Critical(format!("argument failed to serialze: {error}")) |
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.
typo
| .ok() | ||
| } | ||
|
|
||
| /// Strips the ouputs and from all transactions, retains only |
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.
typo
| } | ||
|
|
||
| /// Strips the ouputs and from all transactions, retains only | ||
| /// the nullifier from all orcard actions, and clears the chain |
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.
typo
| let mempool = Mempool::spawn(mempool_source, None).await.map_err(|e| { | ||
| FetchServiceError::BlockCacheError(BlockCacheError::Custom(e.to_string())) | ||
| })?; | ||
| .unwrap(); |
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.
unwrap
| @@ -170,10 +160,8 @@ impl Drop for FetchService { | |||
| pub struct FetchServiceSubscriber { | |||
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.
doc comment for this struct seems incomplete
|
closed for #650 |
Updates StateService and FetchService to use ChainIndex, removes old local cache code.
Motivation
replaces Zainod chain index #496
closes Update Zainod to use ChainIndex and remove legacy local cache code from codebase. #528
built atop Ready tests for ChainIndex #597
Solution
Tests
Specifications & References
Follow-up Work
PR Checklist