1. 02 Nov, 2021 2 commits
    • Martin Holst Swende's avatar
      consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) · 178debe4
      Martin Holst Swende authored
      When we map a file for generating the DAG, we do a simple truncate to e.g. 1Gb. This is fine, even if we have nowhere near 1Gb disk available, as the actual file doesn't take up the full 1Gb, merely a few bytes. When we start generating into it, however, it eventually crashes with a unexpected fault address .
      
      This change fixes it (on linux systems) by using the Fallocate syscall, which preallocates suffcient space on disk to avoid that situation. 
      Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
      178debe4
    • rjl493456442's avatar
      cmd/geth: implement data import and export (#22931) · 2e8b58f0
      rjl493456442 authored
      This PR offers two more database sub commands for exporting and importing data.
      Two exporters are implemented: preimage and snapshot data respectively. 
      The import command is generic, it can take any data export and import into leveldb. 
      The data format has a 'magic' for disambiguation, and a version field for future compatibility. 
      2e8b58f0
  2. 01 Nov, 2021 7 commits
  3. 31 Oct, 2021 1 commit
  4. 29 Oct, 2021 1 commit
    • Martin Holst Swende's avatar
      eth/filters, p2p/simulations: fix benchmarks (#23806) · 31870a59
      Martin Holst Swende authored
      Some benchmarks in eth/filters were not good: they weren't reproducible, relying on geth chaindata to be present.
      
      Another one was rejected because the receipt was lacking a backing transcation.
      
      The p2p simulation benchmark had a lot of the warnings below, due to the framework calling both
      Stop() and Close(). Apparently, the simulated adapter is the only implementation which has a Close(),
      and there is no need to call both Stop and Close on it.
      31870a59
  5. 28 Oct, 2021 2 commits
  6. 27 Oct, 2021 2 commits
  7. 26 Oct, 2021 3 commits
  8. 25 Oct, 2021 2 commits
  9. 21 Oct, 2021 2 commits
  10. 20 Oct, 2021 6 commits
  11. 19 Oct, 2021 1 commit
  12. 18 Oct, 2021 9 commits
  13. 15 Oct, 2021 2 commits