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 ask Max and Min piece size being reset on reboot #4334

Closed
wants to merge 1 commit into from

Commits on Oct 12, 2020

  1. Fix ask Max and Min piece size being reset on reboot

    `set-ask` for max and min piece sizes only takes effects while the miner
    runs. During reboot they are reset to the defaults.
    
    This is because during initialization the miner does a "default set ask" with
    the purpose of adjusting the MaxPieceSize to the miners sector-size.
    
    However this should only happen if the miner has never adjusted the ask
    themselves, that is, SeqNo is 0.
    
    Additionally, handle the case when the ask is nil, in case markets code
    decides to not create a default ask during initialization at some point.
    hsanjuan committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    ca79466 View commit details
    Browse the repository at this point in the history