-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
parent-grinding fault overcheck #7833
Comments
@llifezou We havent seen any other similar reports with the lotus release. seems like you are running a custom lotus version, could you please tell us what exactly did you change before we take a deeper look here? |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 24 hours. |
This issue was closed because it is missing author input. |
I didn't make any factual changes to the mining module, I just added some logs to give me more clarity on the running status |
The situation is as follows: two blocks are mined in a row, the first block contains one less parent block because my daemon is not completely synchronized, and then, my second block must contain My first block, which will cause me to lose the second block (the first block contains less of the parent block, it is invalid, but the second block has to contain this invalid block, otherwise Can't commit, it's overchecked) |
The relevant code is as follows:: miner/miner.go https://github.com/filecoin-project/lotus/blob/master/miner/miner.go#L328
chain/gen/slashfilter/slashfilter.go
The scenario is as follows: I mine two blocks in a row, the first block is finally rejected by the network due to the lack of a parent block, but it is recorded in func (f *SlashFilter) MinedBlock , when checking the second block, the second block is correct (not including mine to invalid parent block), but was rejected here |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 24 hours. |
If any data is needed, I'm willing to help |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 24 hours. |
This issue was closed because it is missing author input. |
Are they mined in the same epoch or in subsequent epochs
What has not yet been fully synchronized? The parents of the first block? Is it common for block mining to begin without fully synchronizing an epoch?
I'm confused about this situation. If you could use "is the parent" of instead of "contain" it would probably help. If you could sketch a diagram of what's happening it would also help. |
I think what you are describing is the following. There is an incomplete base tipset |
subsequent epochs
not common, but occasionally
I use epoch example with height 100 and 101: |
Moving discussion to fips discussion |
Checklist
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Describe the Bug
Continuously generate blocks, the first block is invalid (including the wrong parent block), causing the second block to fail.
Logging Information
Repo Steps
1.Continuously generate blocks
2.the first block is invalid (including the wrong parent block), causing the second block to fail.
The text was updated successfully, but these errors were encountered: