Artifact 9ea0cf83ab8332692ad9aab9fd555673667fb48ab72122aa22372458e2ca9eb1:
- Executable file examples/generate-work/generate-work — part of check-in [6881dd597e] at 2018-07-06 02:35:06 on branch trunk — Made API more consistent (user: rkeene, size: 322) [annotate] [blame] [check-ins using]
#! /usr/bin/env tclsh package require nano if {[llength $argv] == 0} { puts stderr "Usage: generate-work <hash>..." exit 1 } foreach arg $argv { if {[catch { set work [::nano::work::fromBlockHash $arg] } err]} { puts stderr "Error generating work for \"$arg\": $err" } else { puts "WORK($arg) = $work" } }