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

Network upgrade support #3781

Merged
merged 110 commits into from
Sep 23, 2020
Merged

Network upgrade support #3781

merged 110 commits into from
Sep 23, 2020

Commits on Sep 12, 2020

  1. [WIP] Network upgrade support

    This patch starts adding support for network upgrades.
    
    * It adds an actors abstraction layer for loading abstract (cross-version) actors.
    * It starts switching over to a shared deadline type.
    * It adds an abstraction for ADTs (hamt/amt).
    * It removes the callback-based API in the StateManager (difficult to abstract
    across actor versions).
    * It _does not_ actually add support for actors v2. We can do that in a followup
    patch but that should be relatively easy.
    
    This patch is heavily WIP and does not compile. Feel free to push changes
    directly to this branch.
    
    Notes:
    
    * State tree access now needs a network version, because the HAMT type will change.
    * I haven't figured out a nice way to abstract over changes to the _message_
    types. However, many of them will be type aliased to actors v0 in actors v2 so
    we can likely continue using the v0 versions (or use the v2 versions
    everywhere). I've been renaming imports to `v0*` to make it clear that we're
    importing types from a _specific_ actors version.
    
    TODO:
    
    * Consider merging incremental improvements? We'd have to get this compiling
    again first but we could merge in the new abstractions, and slowly switch over.
    * Finish migrating to the new abstractions.
    * Remove all actor state types from the public API. See `miner.State.Info()` for
    the planned approach here.
    * Fix the tests. This is likely going to be a massive pain.
    Stebalien committed Sep 12, 2020
    Configuration menu
    Copy the full SHA
    d359483 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. Fix some build errors

    magik6k committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    38f8798 View commit details
    Browse the repository at this point in the history
  2. Fix vm build

    magik6k committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    6809713 View commit details
    Browse the repository at this point in the history
  3. More terraforming in chain/

    magik6k committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    683a581 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06ec571 View commit details
    Browse the repository at this point in the history
  5. Some post-master merge fixes

    magik6k committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    fb3f710 View commit details
    Browse the repository at this point in the history
  6. rename to simplify merge

    Stebalien committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    2088335 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    02dcb5e View commit details
    Browse the repository at this point in the history
  8. Progress

    Stebalien committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    cc4d530 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7fa6c1e View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. progress

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    36f920b View commit details
    Browse the repository at this point in the history
  2. state manager progress

    magik6k committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    4dabab5 View commit details
    Browse the repository at this point in the history
  3. state api impl fixes

    magik6k committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    4419850 View commit details
    Browse the repository at this point in the history
  4. gofmt

    magik6k committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    9dad38c View commit details
    Browse the repository at this point in the history
  5. more progress

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    00c6397 View commit details
    Browse the repository at this point in the history
  6. fix decode

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    6bf7976 View commit details
    Browse the repository at this point in the history
  7. remove final WithStateTree

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    4cd92d8 View commit details
    Browse the repository at this point in the history
  8. migrate wallet access

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    53384e8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c64f983 View commit details
    Browse the repository at this point in the history
  10. Compile fixes

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    91e9573 View commit details
    Browse the repository at this point in the history
  11. start multisig abstraction

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    4e01fad View commit details
    Browse the repository at this point in the history
  12. sub reward actor

    Stebalien committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    e1ba4eb View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    02bc5fa View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    92471d4 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. Configuration menu
    Copy the full SHA
    454c382 View commit details
    Browse the repository at this point in the history
  2. feat(paych): convert paych actor

    build abstraction for paych actor and switch to using it in payment channel manager and state
    predicates
    hannahhoward committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    05c1153 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b4ee519 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    90853e2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    72d19f3 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #3877 from filecoin-project/refactor/net-upgrade-p…

    …aych
    
    Support Network Upgrades: Payment Channel
    magik6k authored Sep 16, 2020
    Configuration menu
    Copy the full SHA
    ccce1a9 View commit details
    Browse the repository at this point in the history
  7. Migrate miner actor

    arajasek committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    b530f25 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2020

  1. Configuration menu
    Copy the full SHA
    7115485 View commit details
    Browse the repository at this point in the history
  2. feat(market): update state diffing for market actor

    Update to abstract actor for markets state diffing. Also move the diff adt functions inside the
    abstract actors
    hannahhoward committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    80b6994 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3889 from filecoin-project/refactor/net-upgrade-m…

    …arkets-deal-states
    
    feat(market): update state diffing for market actor
    arajasek authored Sep 17, 2020
    Configuration menu
    Copy the full SHA
    81004ea View commit details
    Browse the repository at this point in the history
  4. Miner migration

    arajasek committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    b5ba7a0 View commit details
    Browse the repository at this point in the history
  5. Fixups

    arajasek committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    9e48dd2 View commit details
    Browse the repository at this point in the history
  6. Migrate reward actor

    arajasek committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    b606149 View commit details
    Browse the repository at this point in the history
  7. Migrate multisig actor

    arajasek committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    e2295c3 View commit details
    Browse the repository at this point in the history
  8. feat(markets): complete markets conversion

    complete markets conversion to using chain/actors types, also replacing DealProposal/DealState
    interfaces with structs
    hannahhoward committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    691bd9f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7bf165c View commit details
    Browse the repository at this point in the history
  10. Migrate verifreg actor

    arajasek committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    053cfc1 View commit details
    Browse the repository at this point in the history
  11. Get State API almost working

    arajasek committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    31ff523 View commit details
    Browse the repository at this point in the history
  12. api: Test return types

    magik6k committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    e632643 View commit details
    Browse the repository at this point in the history
  13. Most tests passing

    magik6k committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    6eda535 View commit details
    Browse the repository at this point in the history
  14. docsgen

    magik6k committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    68e884e View commit details
    Browse the repository at this point in the history
  15. cbor gen

    magik6k committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    82b95e3 View commit details
    Browse the repository at this point in the history
  16. fix: paych To()

    dirkmc committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    c40c136 View commit details
    Browse the repository at this point in the history
  17. uncruft

    Stebalien committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    18bc59b View commit details
    Browse the repository at this point in the history
  18. remove dep on v0 miner

    Stebalien committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    708aa36 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ae38970 View commit details
    Browse the repository at this point in the history
  20. remove unnecessary code

    Go does have some nice features, once in a while.
    Stebalien committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    dc58f71 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5bcfee0 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. improve diff logic

    * Make diffing work across versions.
    * Start porting more chainwatch logic.
    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    b2ee590 View commit details
    Browse the repository at this point in the history
  2. remove specs-actors import

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    f2a0779 View commit details
    Browse the repository at this point in the history
  3. more fixups

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    8bd6791 View commit details
    Browse the repository at this point in the history
  4. simplify market diff

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    daa441b View commit details
    Browse the repository at this point in the history
  5. Fixup tests

    arajasek committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    37de154 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fce423c View commit details
    Browse the repository at this point in the history
  7. More lint fixes

    arajasek committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    694463f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    70faa36 View commit details
    Browse the repository at this point in the history
  9. wip fixing wdpost tests

    magik6k committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    ccd0a67 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c3046f4 View commit details
    Browse the repository at this point in the history
  11. finish upgrading chainwatch

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    fb2b25c View commit details
    Browse the repository at this point in the history
  12. fix lint errors

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    298efa2 View commit details
    Browse the repository at this point in the history
  13. abstract over account actor

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    8747c60 View commit details
    Browse the repository at this point in the history
  14. rename imports

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    24df873 View commit details
    Browse the repository at this point in the history
  15. remove todo

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    e60027c View commit details
    Browse the repository at this point in the history
  16. migrate storage miner info

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    8285eda View commit details
    Browse the repository at this point in the history
  17. fix state loading in vm

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    4a7055c View commit details
    Browse the repository at this point in the history
  18. fixup some more imports

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    f741ce6 View commit details
    Browse the repository at this point in the history
  19. compile fix

    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    c130806 View commit details
    Browse the repository at this point in the history
  20. rename imports to match actors code

    `sed -i 's/\bv0\(\w\)\(\w*\)/\L\1\E\20/g' **/*.go`
    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    1bf3b49 View commit details
    Browse the repository at this point in the history
  21. revert post changes

    1. Calling the specific partition/deadline APIs is faster.
    2. It's _much_ easier to test this way.
    Stebalien committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    35bce5a View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2020

  1. Configuration menu
    Copy the full SHA
    7c3f638 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2020

  1. Configuration menu
    Copy the full SHA
    b25dd2a View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Configuration menu
    Copy the full SHA
    ed285f1 View commit details
    Browse the repository at this point in the history
  2. Fix build

    arajasek committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    a95e34f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b355eb7 View commit details
    Browse the repository at this point in the history
  4. Add some TODOs

    arajasek committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    286fe04 View commit details
    Browse the repository at this point in the history
  5. wdpost: Fix TestWDPostDoPost

    magik6k committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    a307e45 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0b5e4a9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f7934b0 View commit details
    Browse the repository at this point in the history
  8. non-destructive diff

    Stebalien committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    0256631 View commit details
    Browse the repository at this point in the history
  9. optimize sector loading

    And avoid exposing "arrays" via the miner abstraction. We may change these
    structures later.
    Stebalien committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    4cf0c10 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    24ae920 View commit details
    Browse the repository at this point in the history
  11. fix compile

    Stebalien committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    f9a896f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0ab2459 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a41bf74 View commit details
    Browse the repository at this point in the history
  14. convert lotus-shed balances

    Stebalien committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    916421b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4bab784 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3f0106c View commit details
    Browse the repository at this point in the history
  17. migrate some more imports

    Stebalien committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    63f026f View commit details
    Browse the repository at this point in the history
  18. more renames

    Stebalien committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    d33dd4f View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. Configuration menu
    Copy the full SHA
    d56da1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1dc69e3 View commit details
    Browse the repository at this point in the history
  3. fixup some imports

    Stebalien committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    fc15888 View commit details
    Browse the repository at this point in the history
  4. remove ptr indirection

    Stebalien committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    5314ba8 View commit details
    Browse the repository at this point in the history
  5. copy actor object when iterating over actors

    This is a pretty big footgun.
    Stebalien committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    ab070f2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bc24fdb View commit details
    Browse the repository at this point in the history
  7. cleanup imports some more

    Stebalien committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    441d7ff View commit details
    Browse the repository at this point in the history
  8. remove old comment

    Stebalien committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    c91774b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2967c4e View commit details
    Browse the repository at this point in the history
  10. add deal state iterator

    Stebalien committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    46fb0e7 View commit details
    Browse the repository at this point in the history
  11. Test fix

    arajasek committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    77f81fc View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. update oni

    Stebalien committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    7737147 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed4bf9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e27fc03 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    476e799 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    819180f View commit details
    Browse the repository at this point in the history
  6. Use actor state addresses

    arajasek committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    a876a0b View commit details
    Browse the repository at this point in the history