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

update go-fil-markets + implement a shared GetChainHead #3880

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

laser
Copy link
Contributor

@laser laser commented Mar 16, 2020

This PR makes incremental progress towards this go-fil-markets issue.

Motivation

All chain-querying methods need to be provided a tipset identifier. This will allow Node* consumers to issue multiple queries against the same chain state (i.e. the chain's state won't change out from underneath them as the chain's head changes).

Proposed changes

This PR updates go-fil-markets to a version in which the node is expected to provide a GetChainHead method and provides implementations for various connector structs.

@codecov-io
Copy link

Codecov Report

Merging #3880 into master will decrease coverage by 14%.
The diff coverage is 0%.

@@           Coverage Diff            @@
##           master   #3880     +/-   ##
========================================
- Coverage      39%     25%    -15%     
========================================
  Files         233     152     -81     
  Lines       13775    8352   -5423     
========================================
- Hits         5478    2117   -3361     
+ Misses       7504    5916   -1588     
+ Partials      793     319    -474

@laser laser requested review from ZenGround0 and anorth March 16, 2020 22:59
@laser laser marked this pull request as ready for review March 16, 2020 23:09
factor GetChainHead into shareable function

move into connectors dir

move market and storage node-connectors into new connectors dir

change panic

reorder imports

change relative path to accommodate new structure

obey linter
@laser laser force-pushed the chores/go-fil-get-chain-head branch from 6d882d8 to e11f53e Compare March 17, 2020 16:39
@laser laser merged commit bd85286 into master Mar 17, 2020
@laser laser deleted the chores/go-fil-get-chain-head branch March 17, 2020 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants