Overview
Comment: | Updated work nomenclature to be more clear |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3aeba5d8efd70b1ec7c112018e76e316 |
User & Date: | rkeene on 2018-07-06 14:53:22 |
Other Links: | manifest | tags |
Context
2018-07-08
| ||
21:17 | "-fcheck-pointer-bounds" requires "-mmpx" check-in: 3de63da81f user: rkeene tags: trunk | |
2018-07-06
| ||
14:53 | Updated work nomenclature to be more clear check-in: 3aeba5d8ef user: rkeene tags: trunk | |
02:35 | Made API more consistent check-in: 6881dd597e user: rkeene tags: trunk | |
Changes
Modified build/nano.txt from [698fe4d7c1] to [038189dc4b].
︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | + - + - + + - + + | ::nano::block::verifyBlockHash blockHash signature publicKey -> boolean ::nano::block::verify blockData signature publicKey -> boolean ::nano::block::create::send args -> blockJSON|blockDict ::nano::block::create::receive args -> blockJSON|blockDict ::nano::block::create::setRepresentative args -> blockJSON|blockDict # Work Generation |
Modified build/test/test.tcl from [a74429d687] to [11db632ebe].
︙ | |||
237 238 239 240 241 242 243 | 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 |
︙ |
Modified examples/generate-work/generate-work from [9ea0cf83ab] to [1db3d7157f].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | + - + | #! /usr/bin/env tclsh lappend auto_path ../../build/work package require nano if {[llength $argv] == 0} { puts stderr "Usage: generate-work <hash>..." exit 1 } foreach arg $argv { if {[catch { |
Modified nano.tcl from [a0ad3d6e3d] to [d9714fb5b7].
︙ | |||
325 326 327 328 329 330 331 | 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | - + - + | set block(link_as_account) [::nano::address::fromPublicKey $block(link) $addressFormatFlag] } } set blockJSONFields { type account source destination previous representative balance |
︙ | |||
701 702 703 704 705 706 707 | 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 | - + - + | return -code error "Invalid option: $arg" } } } set blockDict [_addBlockHash $blockDict] |
︙ | |||
751 752 753 754 755 756 757 | 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 | - + | return $retval } proc ::nano::block::dict::validateWork {blockDict} { set blockDict [_addBlockHash $blockDict] |
︙ | |||
781 782 783 784 785 786 787 | 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 | - + | set blockDict [dict create \ "type" state \ "account" $block(from) \ "previous" $block(previous) \ "representative" $block(representative) \ "balance" $block(balance) \ "link_as_account" $block(to) \ |
︙ | |||
810 811 812 813 814 815 816 | 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 | - + - + - + | if {![info exists block(representative)]} { set block(representative) $block(to) } if {![info exists block(previous)]} { set block(previous) "0000000000000000000000000000000000000000000000000000000000000000" set block(previousBalance) 0 |
︙ | |||
854 855 856 857 858 859 860 | 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 | - + - - - + + + - + - + + - + - - - + + + - + | set blockDict [dict create \ "type" state \ "account" $block(account) \ "previous" $block(previous) \ "representative" $block(representative) \ "balance" $block(balance) \ "link" $block(link) \ |
︙ |