Overview
| Comment: | Even faster block work generation test |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
dfb2005c0f57bc2e4ea83980922d2cf3 |
| User & Date: | rkeene on 2018-07-11 17:28:29.086 |
| Other Links: | manifest | tags |
Context
|
2018-07-11
| ||
| 17:33 | Improved RPC client configuration check-in: cb98af7618 user: rkeene tags: trunk | |
| 17:28 | Even faster block work generation test check-in: dfb2005c0f user: rkeene tags: trunk | |
| 17:23 | Added a complete block generation cycle test check-in: 33f9a7b27a user: rkeene tags: trunk | |
Changes
Modified test/test.tcl
from [0b36e2ea3f]
to [8e9b84f027].
| ︙ | ︙ | |||
266 267 268 269 270 271 272 | puts "\[8.FAIL\] Got: $verify" puts "\[8.FAIL\] Exp: true" return false } # A typical block cycle | | | | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
puts "\[8.FAIL\] Got: $verify"
puts "\[8.FAIL\] Exp: true"
return false
}
# A typical block cycle
set seed FC11FC93CA62BEB6F39290D476798757CE9A767E6CF598AE2F9D0976944736A8
set key [::nano::key::fromSeed $seed]
set account [::nano::address::fromPrivateKey $key]
set frontierHash $seed
::nano::account::setFrontier $account $frontierHash 1 $account
set block [::nano::account::send $account $account 1 $key]
set block [::nano::block::json::work $block -update]
set block [::nano::block::json::filter $block]
set block [::nano::block::dict::fromJSON $block]
set signature [dict get $block "signature"]
set signature_expected "5A3B477463080E11E7CB9FAEE5A900BEC93D33A0679F76FC6FC2F29211D0AF5C8421D0DFC3744FFDAD21F29FA0203B8007594B9DDCF70921B63EA66712963D0A"
if {$signature ne $signature_expected} {
puts "\[9.FAIL\] Got: $signature"
puts "\[9.FAIL\] Exp: $signature_expected"
return false
}
|
| ︙ | ︙ |