237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
puts "\[2.FAIL\] Got: $verify"
puts "\[2.FAIL\] Exp: false"
return false
}
# Generation
set blockhash "1C840FED01000000D8CBCF440CB1E4DF386761E6E66609563BD62A649DF6D0BE"
set work [::nano::work::fromBlockHash $blockhash]
set verify [::nano::work::validate $blockhash $work]
if {!$verify} {
puts "\[3.FAIL\] Got: $verify"
puts "\[3.FAIL\] Exp: true"
return false
}
|
|
|
|
|
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
puts "\[2.FAIL\] Got: $verify"
puts "\[2.FAIL\] Exp: false"
return false
}
# Generation
set workData "1C840FED01000000D8CBCF440CB1E4DF386761E6E66609563BD62A649DF6D0BE"
set work [::nano::work::fromWorkData $workData]
set verify [::nano::work::validate $workData $work]
if {!$verify} {
puts "\[3.FAIL\] Got: $verify"
puts "\[3.FAIL\] Exp: true"
return false
}
|