Diff

Differences From Artifact [9b1e3719a4]:

To Artifact [14c732d43e]:


237
238
239
240
241
242
243






244



245
246
247
248
249
250
251
237
238
239
240
241
242
243
244
245
246
247
248
249

250
251
252
253
254
255
256
257
258
259







+
+
+
+
+
+
-
+
+
+







		puts "\[2.FAIL\] Got: $verify"
		puts "\[2.FAIL\] Exp: false"

		return false
	}

	# Generation
	set blockhash "1C840FED01000000D8CBCF440CB1E4DF386761E6E66609563BD62A649DF6D0BE"
	set work      [binary encode hex [::nano::internal::generateWork [binary decode hex $blockhash]]]
	set verify [::nano::internal::validateWork [binary decode hex $blockhash] [binary decode hex $work]]
	if {!$verify} {
		puts "\[3.FAIL\] Got: $verify"
		puts "\[3.FAIL\] Exp: true"
	## XXX:TODO

		return false
	}

	return true
}

set tests {
	selftest
	signatures