Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Refactor Client consumers to use only chain info where needed #4516

Merged
merged 1 commit into from
Jan 2, 2020

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Dec 31, 2019

Right now Client api consumers request full ClientInfo when they only need sp_blockchain::Info, this addresses this.

While now it is rather cheap to construct ClientInfo (though it requires shared cache locking and cache structure traversing already), this is expected to be not that cheap (more memory stats, along with I/o stats)

@NikVolf NikVolf added the A0-please_review Pull request needs code review. label Dec 31, 2019
@parity-cla-bot
Copy link

It looks like @NikVolf signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@NikVolf NikVolf requested a review from arkpar December 31, 2019 10:03
Copy link
Contributor

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

lgtm!

@bkchr bkchr merged commit 73049c0 into master Jan 2, 2020
@bkchr bkchr deleted the nv-chain-info branch January 2, 2020 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants