Skip to content
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

Fix ChainNotify RPC #924

Merged
merged 11 commits into from
Jan 11, 2021
Merged

Fix ChainNotify RPC #924

merged 11 commits into from
Jan 11, 2021

Conversation

ec2
Copy link
Member

@ec2 ec2 commented Jan 11, 2021

Summary of changes
Changes introduced in this pull request:

  • Fixes Chain Notify subscription IDs, storage miner no longer throwing warnings.

Reference issue to close (if applicable)

Closes

Other information and links

blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
node/rpc/src/chain_api.rs Outdated Show resolved Hide resolved
@@ -967,20 +967,17 @@ where

pub async fn sub_head_changes(
mut subscribed_head_change: Subscriber<HeadChange>,
heaviest_tipset: &Option<Arc<Tipset>>,
heaviest_tipset: &Arc<Tipset>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, does it need to be a reference if it can just be moved? it's cloned during the subscribe?

Doesn't really matter, but just mentioning. The clone might get optimized away anyway

@ec2 ec2 merged commit 182eacc into main Jan 11, 2021
@ec2 ec2 deleted the ec2/chainnotify-fix branch January 11, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants