diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-12-09 16:24:52 -0800 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-12-09 16:24:52 -0800 |
| commit | 859c2b9491fc6e1289228a0e67d13fc2ea338068 (patch) | |
| tree | 59b428fd6066639db7f99db06d724f15ed24351e /ngrcheck | |
| parent | c370b77862f83076c44daa92e44653065253d9af (diff) | |
Diffstat (limited to 'ngrcheck')
| -rwxr-xr-x | ngrcheck | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ngrcheck b/ngrcheck new file mode 100755 index 0000000..46439fb --- /dev/null +++ b/ngrcheck @@ -0,0 +1,6 @@ +# Check if a given set of niggers were mined +success=$(base64 -d ~/NGRwallet | rngtest 2> >(grep "successes" | awk -F': ' '{print $3}')) +failure=$(base64 -d ~/NGRwallet | rngtest 2> >(grep "failures" | awk -F': ' '{print $3}')) +if (($success >= $failure*2)); then + echo "valid wallet"; +fi |
