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: support node instantiation in external packages #7511

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

frrist
Copy link
Member

@frrist frrist commented Oct 13, 2021

Without these changes lily is unable to use lotus as a library to instantiate a node.
If this could make it into the coming 1.13 release that would be 👌

- implement ChainGetPath on ChainModuleAPI
@frrist frrist requested a review from a team as a code owner October 13, 2021 22:27
@codecov
Copy link

codecov bot commented Oct 13, 2021

Codecov Report

Merging #7511 (6cd6732) into master (6d8a6c4) will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7511      +/-   ##
==========================================
+ Coverage   39.31%   39.32%   +0.01%     
==========================================
  Files         627      627              
  Lines       66373    66379       +6     
==========================================
+ Hits        26092    26105      +13     
+ Misses      35763    35759       -4     
+ Partials     4518     4515       -3     
Impacted Files Coverage Δ
node/builder.go 75.75% <0.00%> (-3.19%) ⬇️
node/impl/full/chain.go 12.27% <0.00%> (-0.08%) ⬇️
extern/sector-storage/manager_calltracker.go 57.70% <0.00%> (-4.85%) ⬇️
chain/stmgr/execute.go 86.95% <0.00%> (-4.35%) ⬇️
storage/wdpost_sched.go 75.24% <0.00%> (-1.99%) ⬇️
extern/sector-storage/sched.go 83.05% <0.00%> (-1.66%) ⬇️
chain/gen/gen.go 68.42% <0.00%> (-1.24%) ⬇️
extern/sector-storage/sched_worker.go 77.25% <0.00%> (-0.73%) ⬇️
chain/store/store.go 63.00% <0.00%> (-0.67%) ⬇️
chain/consensus/filcns/filecoin.go 51.21% <0.00%> (-0.45%) ⬇️
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d8a6c4...6cd6732. Read the comment docs.

@frrist frrist self-assigned this Oct 13, 2021
@jennijuju jennijuju added this to the v1.13.0 milestone Oct 13, 2021
@jennijuju jennijuju added the P1 P1: Must be resolved label Oct 13, 2021
Comment on lines +377 to +383
func WithEnableLibp2pNode(enable bool) func(s *Settings) error {
return func(s *Settings) error {
s.enableLibp2pNode = enable
return nil
}
}

Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -105,6 +106,10 @@ func (m *ChainModule) ChainGetTipSet(ctx context.Context, key types.TipSetKey) (
return m.Chain.LoadTipSet(key)
}

func (m *ChainModule) ChainGetPath(ctx context.Context, from, to types.TipSetKey) ([]*api.HeadChange, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@jennijuju jennijuju merged commit afe54ab into master Oct 14, 2021
@jennijuju jennijuju deleted the frrist/fix-lily branch October 14, 2021 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 P1: Must be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants