-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Milestone
Description
When we pick a base on which to mine, we compare:
- The current chain head.
- The last tipset we mined on.
If the last tipset we mined on is heavier, we'll stick with that. This leads to a problematic situation:
- We try mining on X.
- F3 finalizes Y at the same height, Y is lighter than X.
- We will keep trying to mine on X until someone else mines a block on Y.
- One option here is to remove the
lastWork
field, I'm not 100% sure why we have it. - Another is to change
ChainTipSetWeight
to take checkpoints into account and set the weight to 0 for any tipset not compatible with the current checkpoint. We need to be careful here in case the tipset weight is used anywhere else, but I don't think it is? - The best option is probably just to ask lotus about the current checkpoint.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done