plugeth/consensus
Martin Holst Swende 178debe435
consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799)
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: Felix Lange <fjl@twurst.com>
2021-11-02 11:33:54 +01:00
..
clique rpc: avoid crashing on clique getSigner during sync (#23832) 2021-11-01 07:51:03 +01:00
ethash consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
misc params: changed CatalystBlock to TerminalTotalDifficulty (#23700) 2021-10-11 18:58:11 +03:00
consensus.go consensus: remove seal verification from the consensus engine interface (#22274) 2021-02-05 20:44:34 +02:00
errors.go consensus: fix possessives in comments. (#20209) 2019-10-28 09:57:34 +02:00