Try to stick to the K&R,
especially for the C code.
Keep the line lengths reasonable. No hard limit on 80 characters but don't go further
than 110. Some people work with multiple buffers next to each other.
Make them like you :)
NewForTesting creates a proof of work for use in unit tests.
It uses a smaller DAG and cache size to keep test times low.
DAG files are stored in a temporary directory.
Nonces found by a testing instance are not verifiable with a
regular-size cache.
type Light struct {
NumCaches int// Maximum number of caches to keep before eviction (only init, don't modify)// contains filtered or unexported fields
}
Light implements the Verify half of the proof of work. It uses a few small
in-memory caches to verify the nonces found by Full.