Commit Graph

12 Commits

Author SHA1 Message Date
Mark Holt
7f9f12acab
Added BorFinality to kv table definitions to support polygon milestones (#1116) 2023-09-10 08:49:51 +00:00
Alex Sharov
3cee4ac5c8
Downloader: don't fail when see unusual file, skip it (backward/forward compatibility) (#1117) 2023-09-10 15:46:27 +07:00
Alex Sharov
dde477f603
shutdown deadlock (#1107) 2023-09-06 10:19:00 +07:00
ledgerwatch
3aa5249d48
Add BorEvents snapshot type (#1051)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-08-18 15:33:09 +00:00
Alex Sharov
7b91b91ad5
downloader: speedup "--downloader.verify" mode (#997)
deduplicate logic
create more producer goroutines (torrent lib does limiting internally
amount of consumers/disk-readers/hashers by 2, and it's enough because
we can verify multiple files in parallel)
move flag from "downloader torrent_hashes --verify" to "downloader
--verify"
2023-05-17 09:52:34 +00:00
Alex Sharov
a4034d5cea
enable more linters (#954) 2023-03-25 05:13:20 +00:00
Alex Sharov
f110e80dab
go 1.19 atomics (#951) 2023-03-23 05:11:20 +00:00
Alex Sharov
335efa7d12
torrent: don't cancel storage, because lib can't handle such error and can graceful-shutdown anyway (#938) 2023-03-14 08:41:43 +00:00
Alex Sharov
460699ca6b
Downloader main loop wait on close (#931) 2023-03-13 02:12:26 +00:00
Alex Sharov
565acd3624
e3: read files list from db (#885) 2023-02-13 05:16:58 +00:00
Alex Sharov
3e933bc456
Downloader: "incomplete" markers are more important than "complete", so commit them with fsync (#883)
On power-off recent "no-sync" txs may be lost. It will cause 2. cases:
- Good piece on disk and recent "complete" db marker lost. Self-Heal by
re-download.
- Bad piece on dis and recent "incomplete" db marker lost. No Self-Heal.
So, can't afford loosing recent "incomplete" markers.
2023-02-10 13:20:13 +07:00
Alex Sharov
0eb4f8388a
Downloader extract, step2 (#739) 2022-11-20 10:41:20 +07:00