-
Notifications
You must be signed in to change notification settings - Fork 4
Review block timestamps #296
Comments
The result: it's complicated. On one hand the PoW mining loop doesn't adjust the time after preparing a header. If mining takes an hour, the header will have timestamp from one hour ago. On the other I've cranked up the target mining time to 10 minutes and started a local devnet. After some time the blocks started appearing only once a few minutes, the highest time was 12 minutes. The network had no problem with that, everything just worked. I think that we're pretty safe with our 1 minute target. |
I've tracked the inherents validation down to I'm not entirely sure what this function is supposed to do. It looks like |
Thanks for the insights, @CodeSandwich. Given what we know we should think about whether this can be gamed. For example, would a node that treats timestamp differently gain an advantage over our implementation? We should look at how other PoW chains are doing this. I don’t think this is critical for the FFnet though. Let’s remove the issue from the milestone. |
To ensure that the network is working properly we want block time stamps close to the time when there are mined. Otherwise other nodes will reject the blocks because they are two far in the past.
We want to verify that block timestamps are set properly or come up with a solution how we can ensure this.
The text was updated successfully, but these errors were encountered: