-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
mining focused on blocks that are too old? #981
Comments
Mining works sometimes though. Here is an example. I forgot to mention this is geth v0.8.5-2-2128-g7fa7409 on Linux.
|
If you're using 0.8.5, I would highly recommend updating to latest which contains many mining improvements. Current version is 0.9.20 |
Yeah, I'm already using 7fa7409 = v0.8.5-2-2128-g7fa7409 |
Did you start mining before it was caught up? |
Anyone notice this issue ever since? @jpritikin ? |
It doesn't happen very frequently, in my experience. |
I'll close this as hopefully solved by the many fixes since the issue was opened. If you still see something similar, please reopen a new issue with fresh logs. |
* Add CLI flags to config LevelDB table/total sizes I wired up CLI flags to allow configuring LevelDB table and total sizes: - `--leveldb.compaction.table.size`, LevelDB SSTable file size factor in MiB (default: 2) - `--leveldb.compaction.table.multiplier`, multiplier on LevelDB SSTable file size (default: 1) - `--leveldb.compaction.total.size`, total size factor in MiB of LevelDB levels (default: 10) - `--leveldb.compaction.total.multiplier`, multiplier on LevelDB total level size (default: 10) N.B. that the default values for these configs are exactly the same as before this changset and so Bor behavior should not change unless these flags are deliberately overridden. Bor/Geth inherited the default values from [the `goleveldb` defaults](https://github.com/syndtr/goleveldb/blob/126854af5e6d8295ef8e8bee3040dd8380ae72e8/leveldb/opt/options.go). We (Alchemy) found it necessary to override these configs as follows to keep Bor archive nodes tracking the canonical chain: - `--leveldb.compaction.table.size=4` - `--leveldb.compaction.total.size=20` These overrides double the size of LevelDB SSTable files (2 MiB -> 4 MiB) and also the total amount of data in each level (100 MiB -> 200 MiB, 1,000 MiB -> 2,000 MiB, etc.). The idea is to have LevelDB read and write data in larger chunks while keeping the proportional frequency of compaction operations the same as in the original defaults defined by Dean and Ghemawat. Without these overrides we found that our archive nodes would tend to fall into a "LevelDB compaction loop of death" where the incoming stream of blockchain data could not be flowed into LevelDB's structure quickly enough, resulting in the node blocking writes for long periods of time while LevelDB's single-threaded compaction organized the data. Over time the nodes would fall farther and farther behind the canonical chain head, metaphorically dying a slow node's death. These configs can be changed on existing node databases (resyncing is not necessary). LevelDB appears to work correctly with SSTable files of different sizes. Note that the database does not undergo any sort of migration when changing these configs. Only newly-written files (due to new data or compaction) are affected by these configs. * Update docs * Adjust line spacing for linter * Replace map with `ExtraDBConfig` * Rename `LevelDbConfig` to `ExtraDBConfig` * Regenerate docs
I'm not sure if this is what I'm seeing, but it looks like block 333862 was available and geth mined on 333595. What's up with that? That's way too old to be an uncle, isn't it?
The text was updated successfully, but these errors were encountered: