Mining test: we can only test that it runs without crash/exception
This commit is contained in:
parent
833a26c8c7
commit
f9cf0b78df
|
@ -28,13 +28,7 @@ suite "Test mining":
|
||||||
let mined_nonce = mine(full_size, dag, header, difficulty)
|
let mined_nonce = mine(full_size, dag, header, difficulty)
|
||||||
echo " Done, time taken: ", $(cpuTime() - start), " seconds"
|
echo " Done, time taken: ", $(cpuTime() - start), " seconds"
|
||||||
|
|
||||||
check: mined_nonce == 0x495732e0ed7a801c'u64
|
echo "\nUnfortunately we can't really test Ethereu mining as multiple nonces are valid"
|
||||||
|
echo "for a set of parameters, so we only test that there is no exception or out of memory"
|
||||||
# test "1st test from official ethereum/tests repo":
|
echo "\nThe nonce mined was:"
|
||||||
# # https://github.com/ethereum/tests/blob/b6aa0947a8e20f4140dd2647882791be6ceb2ac5/PoWTests/ethash_tests.json
|
echo mined_nonce
|
||||||
|
|
||||||
# let
|
|
||||||
# seed = Hash[256]()
|
|
||||||
# cache = mkcache(16776896, seed)
|
|
||||||
|
|
||||||
# check: $keccak_256(cache) == toUpperAscii "35ded12eecf2ce2e8da2e15c06d463aae9b84cb2530a00b932e4bbc484cde353"
|
|
||||||
|
|
Loading…
Reference in New Issue