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

chain: Use f2 code #4

Merged
merged 27 commits into from
Jul 8, 2019
Merged

chain: Use f2 code #4

merged 27 commits into from
Jul 8, 2019

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Jul 5, 2019

This PR brings most chain related code from f2

Based on #2

State: not building (but close)

Todo:

  • Get this to at least build
    • Don't depend on go-filecoin
      • This makes gomod annoying
      • Extract go-filecoin/bls-signatures
      • Extract go-filecoin/crypto
      • Extract / don't depend on go-filecoin/testhelpers/testflags
  • Review code, make some issues to track todos
  • Fix lint warnings
    • Maybe
  • Start wire everything into the constructor

@whyrusleeping
Copy link
Member

+1 to extracting bls-signatures and /crypto. The address code here is also from go-filecoin. Let's pull that into a separate repo as well

@whyrusleeping
Copy link
Member

Meta note:
It would make me so amazingly happy if we could collapse the blockservice and blockstore interfaces into a single interface that gets used everywhere. I have a lot of hacks around those being separate and its quite annoying.

bstore "github.com/ipfs/go-ipfs-blockstore"
)

type BufferedBS struct {
Copy link
Member

Choose a reason for hiding this comment

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

This file is a strong candidate for being a separate package.

cbor.RegisterCborType(BSTipSet{})
}

type BlockSyncService struct {
Copy link
Member

Choose a reason for hiding this comment

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

not blocking: Would be good to have this as (at least) a subpackage. Maybe even pull it into a separate repo if we can. We want to try and build things that could be reused by go-filecoin.

sharray "github.com/whyrusleeping/sharray"
)

type Miner struct {
Copy link
Member

Choose a reason for hiding this comment

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

This mining code isnt great. fine to merge it in for now just to get things working, but i think rewriting it from scratch once we understand the problem would be good

magik6k and others added 10 commits July 8, 2019 16:07
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

sweet, it builds for me. lets do this

@whyrusleeping whyrusleeping merged commit 03227e1 into master Jul 8, 2019
@whyrusleeping whyrusleeping deleted the feat/f2-chain branch July 8, 2019 15:55
magik6k pushed a commit that referenced this pull request Jul 6, 2020
magik6k added a commit that referenced this pull request Aug 10, 2020
we should always load worker address from the chain
galargh added a commit that referenced this pull request Jul 10, 2024
fix: ci: update triggers to cover miner
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