diff --git a/tests/difficulty/data.txt b/tests/difficulty/data.txt deleted file mode 100644 index 17c48025e..000000000 --- a/tests/difficulty/data.txt +++ /dev/null @@ -1,1000 +0,0 @@ -996 1 -985 1 -978 11 -1001 80 -1040 480 -1196 1108 -1109 925 -1241 1434 -1243 1843 -986 2664 -920 3870 -2213 4613 -2472 1581 -2592 1439 -2712 1439 -3056 1439 -3392 1289 -3723 1176 -3937 1088 -4219 1054 -4447 1002 -4681 971 -4702 942 -4683 967 -4942 997 -4958 968 -5126 993 -5188 981 -5322 995 -5545 991 -5531 969 -5792 994 -5831 969 -6020 985 -5943 971 -6179 994 -6409 987 -6587 967 -6736 957 -7027 952 -7293 926 -7494 905 -7747 893 -7805 876 -7911 884 -7923 886 -7996 899 -8149 905 -8101 901 -8258 916 -8395 918 -8295 915 -8430 930 -8719 941 -8698 920 -8819 934 -8788 937 -8804 951 -8797 966 -8857 980 -8848 990 -8981 1005 -8896 1005 -9012 1020 -9104 1031 -9295 1035 -9312 1026 -9432 1038 -9731 1038 -9991 1017 -10291 1002 -10510 982 -10607 972 -10563 975 -10669 987 -10567 993 -10813 1005 -11075 1002 -11045 988 -11253 1000 -11321 994 -11492 999 -11721 995 -11839 984 -11855 985 -12017 994 -12104 990 -12062 993 -12162 1004 -12075 1009 -12211 1020 -12345 1027 -12257 1025 -12155 1036 -12326 1047 -12620 1058 -12772 1044 -12993 1041 -13173 1032 -13081 1027 -13079 1037 -13082 1048 -13072 1058 -13078 1068 -13069 1079 -13060 1089 -13056 1100 -13057 1111 -13062 1122 -13056 1133 -13060 1144 -13052 1155 -13057 1166 -13049 1178 -13041 1189 -13042 1201 -13036 1213 -13041 1224 -13036 1236 -13034 1249 -13031 1261 -13029 1273 -13025 1286 -13030 1298 -13020 1311 -13026 1324 -13021 1337 -13028 1350 -13038 1363 -13037 1376 -13026 1390 -13024 1403 -13014 1417 -13011 1431 -13011 1445 -13004 1459 -13000 1474 -12992 1488 -13000 1503 -13003 1517 -13004 1532 -12995 1547 -12987 1562 -12983 1578 -12992 1593 -12993 1609 -12983 1624 -12973 1640 -12967 1656 -12961 1673 -12960 1689 -12963 1705 -12971 1722 -12968 1739 -12973 1756 -12968 1773 -12965 1791 -12966 1808 -12958 1826 -12949 1844 -12957 1862 -12947 1880 -12957 1898 -12958 1917 -12967 1936 -12975 1955 -12973 1974 -12965 1993 -12974 2013 -12975 2033 -12979 2052 -12978 2073 -12968 2093 -12965 2113 -12975 2134 -12966 2155 -12962 2176 -12955 2197 -12960 2219 -12969 2241 -12965 2263 -12973 2285 -12962 2307 -12956 2330 -12947 2352 -12948 2376 -12944 2399 -12950 2422 -12949 2446 -12942 2470 -12942 2494 -12945 2519 -12934 2543 -12932 2568 -12932 2593 -12939 2619 -12940 2644 -12931 2670 -12930 2696 -12922 2723 -12920 2749 -12925 2776 -12916 2804 -12922 2831 -12923 2859 -12922 2887 -12924 2915 -12927 2944 -12932 2972 -12925 3001 -12924 3031 -12933 3061 -12942 3091 -12934 3121 -12925 3151 -12930 3182 -12927 3213 -12935 3245 -12931 3277 -12938 3309 -12931 3341 -12933 3374 -12940 3407 -12935 3440 -12944 3474 -12943 3508 -12954 3542 -12952 3577 -12956 3612 -12959 3647 -12968 3683 -12975 3719 -12976 3756 -12979 3792 -12988 3830 -12993 3867 -12986 3905 -12979 3943 -12980 3982 -12974 4021 -12972 4060 -12978 4100 -12980 4140 -12989 4181 -12997 4222 -12988 4263 -12996 4305 -13001 4347 -12998 4389 -12996 4432 -13001 4476 -12995 4520 -12991 4564 -12984 4609 -12993 4654 -12991 4699 -12983 4745 -12987 4792 -12978 4839 -12982 4886 -12973 4934 -12964 4982 -12961 5031 -12970 5080 -12981 5130 -12974 5180 -12972 5231 -12962 5282 -12970 5334 -12969 5386 -12973 5439 -12971 5492 -12964 5546 -12975 5600 -12985 5655 -12977 5711 -12971 5767 -12964 5823 -12974 5880 -12982 5938 -12991 5996 -12993 6055 -13002 6114 -12991 6174 -12988 6234 -12987 6295 -12995 6357 -12986 6419 -12993 6482 -13000 6545 -13005 6610 -13002 6674 -12997 6740 -12998 6806 -12999 6872 -13009 6940 -13004 7008 -13006 7076 -12996 7146 -13002 7216 -13014 7286 -13026 7358 -13024 7430 -13029 7502 -13033 7576 -13037 7650 -13045 7725 -13047 7801 -13058 7877 -13058 7954 -13062 8032 -13052 8111 -13049 8190 -13056 8270 -13057 8351 -13047 8433 -13039 8516 -13031 8599 -13038 8683 -13029 8768 -13019 8854 -13010 8941 -13005 9029 -12995 9117 -12988 9206 -12999 9296 -12998 9387 -12991 9479 -12997 9572 -13002 9666 -12993 9761 -13004 9856 -13005 9953 -13013 10050 -13006 10149 -13000 10248 -12995 10348 -12996 10450 -12996 10552 -12995 10655 -12998 10760 -12993 10865 -12998 10972 -12989 11079 -12998 11188 -12991 11297 -13003 11408 -13008 11519 -12997 11632 -13005 11746 -13009 11861 -13009 11977 -13005 12095 -13000 12213 -12998 12333 -12993 12454 -12986 12575 -12994 12699 -12996 12823 -13004 12949 -13008 13075 -13008 13203 -13007 13333 -13002 13463 -13013 13595 -13013 13728 -13009 13863 -13023 13999 -13027 14136 -13027 14274 -13028 14414 -13025 14555 -13015 14698 -13020 14842 -13020 14987 -13023 15134 -13013 15282 -13023 15432 -13023 15583 -13037 15735 -13048 15889 -13061 16045 -13050 16202 -13063 16361 -13061 16521 -13049 16683 -13059 16846 -13059 17011 -13060 17178 -13075 17346 -13071 17516 -13073 17687 -13082 17861 -13091 18036 -13083 18212 -13090 18391 -13078 18571 -13084 18753 -13092 18936 -13085 19122 -13077 19309 -13067 19498 -13078 19689 -13093 19882 -13090 20077 -13094 20273 -13098 20472 -13114 20672 -13108 20875 -13117 21079 -13112 21286 -13102 21494 -13109 21705 -13122 21917 -13121 22132 -13129 22348 -13122 22567 -13115 22788 -13113 23012 -13121 23237 -13114 23464 -13103 23694 -13093 23926 -13098 24161 -13099 24397 -13092 24636 -13102 24877 -13104 25121 -13092 25367 -13103 25616 -13099 25866 -13089 26120 -13093 26376 -13101 26634 -13113 26895 -13121 27158 -13128 27424 -13138 27693 -13140 27964 -13157 28238 -13157 28514 -13144 28794 -13155 29076 -13156 29360 -13173 29648 -13163 29938 -13180 30231 -13188 30510 -13191 30789 -13177 31082 -13174 31386 -13164 31693 -13168 32003 -13173 32316 -13167 32632 -13177 32951 -13188 33273 -13201 33599 -13209 33900 -13220 34209 -13211 34512 -13208 34848 -13194 35188 -13181 35532 -13198 35878 -13192 36228 -13201 36582 -13208 36939 -13197 37299 -13197 37663 -13196 38030 -13208 38401 -13215 38776 -13226 39154 -13215 39517 -13231 39902 -13244 40275 -13254 40625 -13253 40987 -13241 41386 -13241 41789 -13235 42195 -13237 42606 -13239 43020 -13243 43439 -13233 43861 -13241 44288 -13231 44719 -13252 45154 -13263 45593 -13251 46003 -13261 46451 -13277 46902 -13290 47305 -13280 47714 -13291 48177 -13293 48640 -13284 49104 -13278 49580 -13281 50061 -13277 50547 -13284 51037 -13294 51532 -13286 52027 -13285 52532 -13292 53041 -13283 53556 -13291 54075 -13281 54600 -13278 55129 -13267 55664 -13269 56203 -13279 56749 -13269 57299 -13270 57855 -13278 58416 -13283 58982 -13282 59554 -13278 60132 -13272 60715 -13275 61304 -13278 61898 -13286 62498 -13285 63104 -13291 63716 -13295 64334 -13305 64953 -13311 65530 -13310 66133 -13314 66773 -13323 67404 -13316 68007 -13324 68665 -13322 69323 -13330 69994 -13322 70637 -13315 71320 -13322 72010 -13332 72706 -13333 73397 -13337 74101 -13337 74793 -13339 75516 -13340 76234 -13347 76964 -13351 77664 -13353 78389 -13349 79132 -13357 79896 -13347 80641 -13347 81420 -13336 82205 -13330 82998 -13325 83799 -13324 84608 -13315 85424 -13316 86248 -13325 87080 -13321 87921 -13327 88769 -13320 89625 -13313 90490 -13322 91363 -13327 92245 -13318 93135 -13313 94033 -13304 94941 -13298 95857 -13301 96782 -13294 97716 -13284 98658 -13291 99610 -13287 100571 -13296 101542 -13296 102521 -13299 103511 -13303 104509 -13312 105518 -13313 106536 -13315 107564 -13307 108602 -13299 109649 -13289 110707 -13297 111776 -13289 112854 -13295 113943 -13304 115042 -13296 116152 -13296 117273 -13301 118405 -13292 119547 -13301 120701 -13305 121865 -13294 123041 -13301 124228 -13308 125427 -13315 126637 -13309 127859 -13316 129092 -13322 130338 -13324 131596 -13330 133488 -13328 133531 -13328 134902 -13335 134923 -13334 136229 -13328 136252 -13328 137668 -13330 137690 -13336 139046 -13328 139046 -13317 140806 -13324 140806 -13316 142922 -13317 143004 -13326 145371 -13330 145383 -13332 147263 -13332 147287 -13327 148653 -13324 148653 -13323 163065 -13314 163080 -13323 168505 -13322 168505 -13327 171944 -13331 171960 -13336 175501 -13343 175501 -13336 183009 -13341 183009 -13334 190931 -13338 190931 -13337 199306 -13329 199306 -13333 205710 -13338 205710 -13335 213997 -13330 213997 -13329 221480 -13322 221505 -13326 229542 -13325 229542 -13324 231843 -13331 231870 -13329 234634 -13326 234634 -13332 243740 -13339 243769 -13328 246606 -13332 246635 -13325 254183 -13332 254183 -13335 258637 -13325 258637 -13330 265577 -13321 265611 -13315 275411 -13319 275411 -13309 278711 -13303 278711 -13313 290738 -13310 290738 -13305 295289 -13294 295289 -13293 302850 -13288 302850 -13285 309294 -13280 309336 -13288 319541 -13295 319541 -13304 333707 -13309 333755 -13301 346209 -13293 346209 -13301 357909 -13304 357909 -13310 378490 -13309 378490 -13310 399550 -13302 399550 -13313 417848 -13313 417848 -13324 441697 -13315 441697 -13319 451301 -13311 451382 -13317 465329 -13314 465329 -13318 471489 -13322 471489 -13313 483202 -13311 483293 -13300 498367 -13302 498367 -13296 508613 -13290 508613 -13280 525295 -13278 525295 -13280 535015 -13288 535015 -13288 551838 -13285 551838 -13292 561986 -13303 562101 -13300 601209 -13290 601209 -13293 610660 -13292 610660 -13296 626756 -13297 626756 -13294 635012 -13305 635152 -13299 643158 -13299 643158 -13300 652606 -13304 652606 -13296 664186 -13287 664335 -13296 673132 -13301 673132 -13301 673132 -13310 673132 -13307 673132 -13303 673132 -13302 673132 -13296 673132 -13293 673132 -13305 673132 -13294 673132 -13297 673132 -13288 673132 -13294 673132 -13296 673132 -13304 673132 -13297 673132 -13306 686583 -13296 708022 -13302 721171 -13301 745255 -13293 789338 -13288 801708 -13294 835723 -13295 915543 -13291 998038 -13298 1109322 -13302 1209204 -13312 1246864 -13314 1263152 -13320 1296983 -13325 1342856 -13324 1436884 -13320 1601878 -13325 1643370 -13324 1806409 -13334 1891570 -13330 2094126 -13319 2424286 -13319 2650457 -13325 2715282 -13311 3092010 -13318 3244961 -13306 3321946 -13321 3446480 -13328 3644333 -13334 3714812 -13328 3928889 -13313 4152287 -13324 4497011 -13324 4645094 -13325 6541658 -13339 8449869 -13337 11545575 -13316 11814280 -13302 12028489 -13324 12187097 -13349 12345701 -13354 12540339 -13396 12735943 -13396 12903378 -13425 13103440 -13461 13283023 -13509 13429115 -13499 13679122 -13521 13861980 -13523 14155832 -13530 14344931 -13518 14573230 -13511 14765343 -13547 14959879 -13528 15192777 -13579 15390669 -13611 15588557 -13644 15789960 -13676 15991403 -13708 16236622 -13753 16441249 -13812 16688228 -13787 16893368 -13812 17230031 -13793 17481566 -13811 17688803 -13792 17896037 -13830 18196823 -13819 18357684 -13834 18565439 -13870 18821700 -13859 19079284 -13897 19288103 -13883 19547559 -13908 19860081 -13963 20070522 -14012 20285173 -14080 20560219 -14140 20732016 -14148 21019918 -14162 21379326 -14150 21746458 -14130 22069652 -14183 22420034 -14219 22677730 -14213 23091563 -14260 23414683 -14276 23874363 -14274 24276963 -14318 24756195 -14390 25185364 -14462 25644616 -14544 26226598 -14557 26681976 -14554 27332346 -14521 27938692 -14602 28610024 -14588 29308918 -14613 30156474 -14580 31024769 -14543 32013610 -14577 32963488 -14676 34023072 -14675 35029231 -14691 36188609 -14767 37370414 -14885 38518184 -14878 39730624 -14974 40937806 -15008 41959660 -15009 43997972 -15039 46631045 -15039 49969426 -15147 53632107 -15180 57066286 -15368 60514005 -15379 64138256 -15356 67460179 -15403 64918929 -15560 68486057 -15590 67591981 -15580 65909365 -15514 64245787 -15641 66071664 -15587 68860387 -15537 71048137 -15710 73745734 -15627 76599571 -15618 79052834 -15739 81934490 -15985 82669438 -15981 81374711 -16103 80244245 -16349 79139295 -16328 78279627 -16544 77533151 -16615 75616132 -16616 74926817 -16593 76917472 -16584 79312606 -16665 80101567 -16634 82504177 -16867 85030276 -16971 86883326 -16895 88319800 -16965 90469139 -16950 90465262 -16877 91890415 -17117 93106091 -17238 94321256 -17441 95846287 -17491 92979967 -17446 90954994 -17394 87623370 -17542 85999264 -17681 87412539 -17819 88988409 -17725 91038329 -17943 92336744 -17991 93029082 -18031 92973033 -17970 94737578 -18141 93980118 -18320 95237016 -18545 97391127 -18712 96561416 -18849 93797276 -19074 91336444 -19161 89892725 -19148 90669712 -19232 92693040 -19181 94222209 -19254 96265222 -19423 97254840 -19535 99319736 -19760 101190729 -19980 102676323 -20185 104459744 -20111 103054687 -20358 105521248 -20374 107126438 -20374 105088747 -20372 101446709 -20283 103568593 -20594 101467587 -20811 102246714 -20967 104790689 -21208 106029191 -21371 108934133 -21676 106529418 -21593 108090230 -21829 103189197 -22124 105891192 -22244 108822755 -22548 110958877 -22829 109385192 -23059 111573148 -23240 113687895 -23411 115823707 -23340 118555853 -23628 121634310 -23764 123624077 -24150 126599053 -24048 129441066 -23992 129644548 -24056 131850076 -23959 124550087 -24027 127640855 -24241 125937704 -24583 120297009 -24504 122340050 -24487 118247531 -24522 119488591 -24540 121684801 -24460 123559998 -24412 126151243 -24638 128166276 -24577 129779407 -24541 125648210 -24616 128007653 -24872 130198716 -24743 131132412 -24629 133370101 -24483 135940710 -24513 133837081 -24476 132688318 -24687 130598203 -25045 131756130 -25247 134089716 -25356 135086151 -25531 135840432 -25757 134049326 -25820 135059817 -25838 134720446 -25847 133583240 -25722 135102319 -25599 136767738 -25942 137938928 -25959 137181584 -26362 134741089 -26356 131382998 -26249 129571190 -26193 128461060 -26203 125528898 -26296 125772324 -26356 127272308 -26510 128659463 -26803 129420466 -26965 130811709 -27050 129187186 -27343 128796859 -27408 126306858 -27344 124109316 -27400 123585673 -27354 124051058 -27479 124120333 -27752 124602137 -27936 126110194 -28045 127727168 -28334 129412894 -28508 127266450 -28641 125300988 -28748 124441135 -29000 122351487 diff --git a/tests/difficulty/export_data.pl b/tests/difficulty/export_data.pl new file mode 100644 index 000000000..0298fe338 --- /dev/null +++ b/tests/difficulty/export_data.pl @@ -0,0 +1,54 @@ +#!/usr/bin/perl + +# BSD 3-Clause License +# +# Copyright (c) 2018, Karbowanec +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of the copyright holder nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Returns timestamps and difficulty data for wownero (monero RPC) +# Run: perl export_data.pl 50 300 + +$IP='explorer.wowne.ro:11181'; +$begin=$ARGV[0]; +if ($#ARGV == 1 ) { $end=$ARGV[1]; } +else { + $h=`curl -s -X POST http://$IP/json_rpc -d '{"params": {},"jsonrpc":"2.0","id":"test","method":"getblockcount"}' -H 'Content-Type: application/json'`; + $h=~/"count"\D+(\d+)/sg; + $end=$1; + print "$end\n"; +} +print "also printed to file\n\n"; +open (F,">wownero-data.txt"); +for ($i=$begin; $i<$end; $i++) { + $k=qq(-d '{"params":{"height":$i},"jsonrpc":"2.0","id":"test","method":"getblockheaderbyheight"}' -H 'Content-Type: application/json'); + $k=`curl -s -X POST http://$IP/json_rpc $k`; + $k=~/"difficulty"\D+(\d+).+"timestamp"\D+(\d+)/sg; + ($d, $t)=($1,$2); + print "$i\t$t\t$d\n"; + print F "$i\t$t\t$d\n"; + +} +close F; diff --git a/tests/difficulty/generate-data b/tests/difficulty/generate-data index c41ce025d..0e776727d 100755 --- a/tests/difficulty/generate-data +++ b/tests/difficulty/generate-data @@ -32,10 +32,10 @@ from random import randint -DIFFICULTY_TARGET = 120 -DIFFICULTY_WINDOW = 720 -DIFFICULTY_LAG = 15 -DIFFICULTY_CUT = 60 +DIFFICULTY_TARGET = 300 +DIFFICULTY_WINDOW = 144 +DIFFICULTY_LAG = 3 +DIFFICULTY_CUT = 12 UINT_MAX = (1 << 64) - 1 @@ -43,8 +43,8 @@ def difficulty(): times = [] diffs = [] while True: - if len(times) <= 1: - diff = 1 + if len(times) <= 10: + diff = 1069 else: begin = max(len(times) - DIFFICULTY_WINDOW - DIFFICULTY_LAG, 0) end = min(begin + DIFFICULTY_WINDOW, len(times)) diff --git a/tests/difficulty/wow-data.txt b/tests/difficulty/wow-data.txt new file mode 100644 index 000000000..5bbc4439c --- /dev/null +++ b/tests/difficulty/wow-data.txt @@ -0,0 +1,1000 @@ +995 1069 +1032 1069 +1053 1069 +1264 1069 +1261 1069 +1570 1069 +1738 1069 +1718 1069 +1622 1069 +1866 1069 +1802 1069 +1829 3682 +2832 4951 +2583 3156 +3305 3672 +3835 3397 +4507 3122 +5327 2791 +5474 2456 +5712 2540 +5496 2574 +5334 2737 +6029 2911 +5807 2902 +5578 3074 +5963 3258 +6268 3452 +6091 3492 +6606 3690 +7068 3665 +7047 3568 +7051 3744 +7998 3929 +8998 3576 +9274 3263 +9343 3272 +10005 3363 +10040 3228 +9810 3322 +9994 3433 +9758 3546 +10053 3664 +11100 3780 +10826 3501 +10463 3605 +10903 3712 +10761 3822 +11600 3935 +11747 3861 +11689 3916 +12362 4025 +13510 3914 +14360 3649 +15008 3499 +15674 3412 +16084 3327 +16147 3302 +15960 3354 +16485 3421 +16427 3412 +17133 3478 +17857 3403 +17957 3318 +18710 3357 +18950 3271 +19210 3282 +20199 3289 +20741 3171 +20845 3132 +21201 3163 +21621 3154 +21899 3136 +22693 3139 +22947 3068 +22842 3074 +22800 3116 +23140 3159 +23881 3174 +23562 3113 +23407 3154 +23455 3195 +23223 3237 +23310 3280 +23892 3323 +23674 3365 +24472 3409 +24259 3368 +24467 3411 +25492 3455 +25428 3353 +25574 3394 +25308 3424 +25245 3466 +26226 3508 +26694 3459 +27125 3437 +27506 3420 +27302 3409 +27213 3448 +27711 3487 +27708 3499 +27700 3538 +27701 3578 +27694 3618 +27686 3659 +27675 3700 +27668 3742 +27676 3784 +27672 3826 +27677 3869 +27682 3913 +27678 3956 +27684 4001 +27681 4046 +27677 4091 +27675 4137 +27675 4184 +27666 4231 +27672 4278 +27665 4326 +27669 4375 +27668 4418 +27660 4418 +27670 4460 +27662 4461 +27660 4534 +27671 4534 +27663 4573 +27672 4574 +27674 4667 +27670 4668 +27678 4717 +27684 4718 +27681 4775 +27680 4775 +27686 4819 +27675 4819 +27670 4872 +27669 4872 +27666 4919 +27662 4919 +27666 4938 +27664 4938 +27653 5076 +27642 5076 +27635 5076 +27636 5076 +27626 5076 +27619 5146 +27622 5259 +27614 5394 +27625 5572 +27634 5804 +27641 5838 +27638 5906 +27647 5944 +27653 5995 +27658 6060 +27649 6114 +27656 6185 +27658 6229 +27650 6270 +27651 6344 +27647 6465 +27637 6625 +27627 6651 +27639 6680 +27643 7021 +27653 7433 +27663 7586 +27665 7658 +27657 7878 +27649 7948 +27655 8077 +27651 8127 +27651 8188 +27662 8238 +27665 8478 +27663 8677 +27662 8762 +27660 8854 +27656 9010 +27647 9342 +27657 9453 +27667 9554 +27658 10007 +27657 10897 +27652 11687 +27663 12390 +27654 13194 +27647 13639 +27653 13911 +27654 14114 +27657 14600 +27659 14817 +27664 15878 +27653 17214 +27656 17567 +27644 19242 +27652 19983 +27652 20819 +27644 23841 +27661 26037 +27661 26808 +27653 28709 +27648 31196 +27648 33241 +27651 39181 +27640 40719 +27647 41788 +27655 43456 +27647 46144 +27656 47948 +27649 49895 +27648 52157 +27650 53942 +27660 56625 +27651 59747 +27639 64797 +27625 66841 +27654 76231 +27666 83764 +27699 86684 +27739 118603 +27759 126479 +27790 138334 +27843 147801 +27874 159630 +27917 240159 +27912 367275 +27850 676598 +27809 831659 +27759 1065989 +27634 2267177 +27186 5230850 +27792 5723763 +29418 6144718 +29414 6703797 +29749 7031689 +30418 6854115 +31944 7126179 +33023 5768775 +32645 5514464 +33673 5888393 +35188 5206040 +36923 5871441 +38855 6498473 +39616 6631237 +39971 7909003 +39945 9972757 +41505 14296572 +40526 20169397 +41333 4214732 +42781 5333764 +44339 5496043 +45323 4912825 +45763 3668236 +46077 3500080 +47055 3561345 +47969 3470275 +48074 2980670 +48393 2613300 +48813 2336894 +48988 2354393 +48976 2484122 +49036 2721340 +48778 2936811 +48538 3205459 +48566 3256775 +48536 3087933 +49040 2898516 +49848 2820503 +49856 2812669 +50671 2821637 +50412 2734469 +50452 2662676 +51196 2692677 +51462 2688994 +51468 2704067 +51778 2737529 +52008 2769402 +52488 2780176 +52929 2817114 +53763 2840588 +53740 2884678 +53645 2921423 +54264 2961426 +55037 2891712 +55223 2928569 +55467 2894164 +55954 2924968 +56281 2931759 +56029 2900638 +56410 2902157 +56889 2935514 +57223 2931760 +56936 2938226 +56882 2915074 +57630 2897810 +58041 2850822 +58728 2873530 +59194 2904811 +59038 2883435 +59737 2833650 +60508 2846314 +60368 2852477 +60547 2834318 +60471 2857733 +60207 2862888 +60298 2880234 +61002 2863771 +60922 2893079 +60938 2918445 +61416 2919606 +61983 2908978 +61684 2897692 +62540 2861291 +62340 2860706 +62993 2873891 +62970 2851662 +63817 2836631 +64354 2854835 +64996 2874607 +65812 2891592 +66342 2914353 +66814 2937038 +67499 2929632 +67704 2954169 +67784 2974619 +68344 2963956 +68730 2966118 +68729 2965456 +68656 2959531 +69316 2966998 +70112 2955118 +70000 2977222 +69858 2932726 +70619 2912941 +71371 2885820 +71901 2846621 +72299 2829983 +72417 2818121 +73186 2791439 +73755 2798973 +73954 2815316 +74421 2798104 +75258 2798245 +75038 2814579 +75721 2835759 +76481 2816931 +76700 2801379 +76903 2812675 +77324 2825555 +77687 2812100 +77773 2783265 +78607 2768773 +79196 2762605 +79889 2773877 +80044 2744997 +80060 2730459 +80734 2738443 +81181 2729249 +80980 2710375 +80789 2715853 +81088 2705182 +81161 2677079 +81654 2679036 +82078 2679014 +81869 2660894 +82125 2628942 +82897 2606977 +82841 2621524 +82920 2566963 +83131 2522955 +83279 2524246 +83072 2576056 +83215 2558597 +83213 2558406 +83838 2563076 +83775 2625367 +83874 2702529 +83723 2797526 +84414 2788487 +84580 2758644 +85079 2694560 +85489 2643322 +85902 2522185 +86619 2517706 +86895 2575621 +86939 2646087 +87540 2691873 +88025 2708857 +88638 2724009 +89435 2784434 +90128 2813425 +90747 2814616 +90767 2835699 +91088 2848196 +90907 2809114 +91142 2800637 +91314 2778274 +91742 2747466 +91902 2723314 +92261 2666402 +92885 2646284 +92977 2641493 +92793 2654976 +92787 2620981 +93521 2616306 +93864 2565885 +93756 2536207 +93591 2531104 +94117 2548066 +94526 2540505 +94958 2549388 +94894 2561093 +95080 2581395 +95287 2581721 +95977 2618322 +96017 2598678 +96752 2563067 +96909 2593505 +97496 2638294 +97475 2642418 +97826 2619396 +98335 2645556 +98853 2636099 +99199 2643250 +98972 2631740 +99609 2632997 +100378 2604968 +100977 2600828 +101040 2609519 +101141 2620860 +100922 2599747 +100723 2642644 +100998 2610145 +101485 2607770 +101440 2604627 +101462 2634349 +101412 2615709 +101789 2583973 +102142 2554302 +102774 2547143 +103394 2532826 +104085 2528745 +104285 2478274 +105000 2458343 +105735 2469367 +105660 2480553 +105770 2495937 +106262 2514558 +106795 2519060 +106565 2527402 +107308 2525146 +107784 2577330 +108369 2611076 +108675 2632693 +108708 2663459 +109412 2652978 +109203 2638930 +109320 2635210 +110082 2631667 +110500 2582602 +110282 2571705 +110963 2584214 +110841 2583063 +111048 2545714 +111021 2561447 +111606 2579609 +112153 2550322 +112470 2522850 +113004 2515238 +113559 2543274 +114210 2576123 +114647 2567913 +114805 2566525 +115476 2613195 +115493 2604548 +115353 2602555 +115989 2618634 +115733 2637027 +115970 2642320 +116347 2670170 +116357 2724575 +116975 2696208 +117659 2667663 +117900 2672973 +117670 2657510 +118145 2620669 +118027 2632516 +118479 2642156 +119198 2680859 +119308 2649900 +119208 2640827 +119810 2689570 +120155 2674382 +120770 2670237 +120888 2676414 +121211 2654437 +121220 2655597 +121237 2644841 +121243 2610087 +121255 2624709 +121265 2611522 +121271 2655355 +121270 2650778 +121279 2628229 +121286 2588290 +121289 2592850 +121284 2592095 +121275 2557753 +121278 2539206 +121278 2528353 +121275 2524270 +121282 2506323 +121274 2506995 +121284 2541431 +121271 2551307 +121268 2585073 +121276 2613709 +121265 2644990 +121271 2700795 +121287 2722938 +121285 2725923 +121301 2773611 +121315 2813019 +121322 2864069 +121313 2933360 +121330 2995880 +121336 3053673 +121335 3052235 +121347 3062935 +121363 3078536 +121363 3081264 +121355 3096808 +121344 3140316 +121358 3156509 +121366 3195798 +121374 3255474 +121382 3256820 +121380 3267242 +121397 3278499 +121399 3345106 +121414 3356681 +121434 3380794 +121439 3399177 +121428 3436204 +121435 3493429 +121423 3547632 +121438 3561070 +121436 3583081 +121442 3617264 +121444 3721942 +121443 3734442 +121455 3853143 +121448 3885051 +121452 3984597 +121443 3993581 +121447 4058385 +121442 4154497 +121451 4258088 +121451 4289803 +121445 4343295 +121454 4436511 +121456 4611743 +121453 4702011 +121476 4761624 +121462 4788329 +121460 4809715 +121450 4835434 +121450 4877857 +121447 4962731 +121451 4990124 +121465 5015521 +121459 5042729 +121459 5144674 +121483 5264672 +121497 5470823 +121523 5688444 +121532 5947746 +121552 6054328 +121570 6357993 +121573 6666838 +121584 6742268 +121570 6801138 +121553 7066744 +121582 7256596 +121614 7420236 +121597 7740944 +121597 8062677 +121608 8476694 +121613 8730910 +121596 8809765 +121580 9223206 +121612 9366955 +121601 9513095 +121624 10141719 +121627 10421270 +121659 10721470 +121680 11178496 +121676 11423139 +121675 11606764 +121717 11768024 +121717 12569307 +121717 13446334 +121742 14093972 +121763 15177950 +121812 16448696 +121822 18133347 +121796 19547321 +121843 20297770 +121914 22401723 +121993 23181253 +122045 23616556 +122128 24855688 +122141 26267703 +122154 26814048 +122242 29096657 +122275 29456251 +122318 33919746 +122378 40433966 +122345 41136379 +122464 44334317 +122435 46540694 +122472 49103388 +122521 55379501 +122708 71991965 +122851 72558867 +122880 75421386 +122899 93415891 +123006 109193567 +123239 162303536 +123585 181484548 +123752 230545203 +123888 232921611 +123698 235998864 +124144 241798489 +124245 247564948 +124919 248318184 +124681 253292641 +125207 263815332 +125737 266553990 +126357 246541506 +126830 237512626 +127489 246810899 +127582 261154571 +127651 263646728 +127679 256774461 +128014 241660080 +128427 258844954 +128887 281135478 +129154 293432887 +128895 292571823 +129810 307610443 +130199 289828043 +131059 291537870 +131326 290103115 +131586 273410565 +132036 254510554 +132201 246118686 +132649 232187432 +132408 241180267 +132949 251175658 +133640 262375857 +133653 260129696 +134032 255837548 +133799 251566461 +134353 262940133 +134697 265613449 +135171 255900779 +134922 254513320 +134674 240861604 +135353 243119107 +135165 245056094 +135844 241919008 +136096 245008262 +136577 246972760 +137234 248068232 +137144 248384335 +137663 240878434 +138369 247020939 +138785 250347868 +139197 251645098 +139660 251435399 +140148 251315107 +140409 256607487 +140747 257965199 +140584 258581417 +140742 263718545 +140743 265470098 +141203 261395782 +141470 261852867 +142218 258380708 +142283 253711095 +142505 256922084 +142755 254533900 +143430 248216648 +143559 246531604 +143545 244987119 +144033 242824345 +144277 240456378 +144068 241144028 +143973 242908330 +144522 244878202 +144420 248917701 +144520 252957972 +144465 251012119 +144395 251526342 +144745 246148182 +145210 248998567 +145842 250092035 +145619 250750572 +146271 246513925 +146717 248798604 +146756 251997761 +147105 250737509 +147454 253203523 +147628 256127583 +147952 256890306 +148475 258725409 +148267 261698186 +149017 264427610 +148867 267002727 +149532 270309264 +149474 270802481 +149936 268525490 +149933 267012271 +150191 267627423 +150231 265901707 +150393 264049541 +150147 266543834 +149923 265830376 +149844 265089189 +150063 266474655 +150467 266156482 +150465 265803638 +150492 266580033 +150743 265886182 +151311 267221241 +151110 265597822 +151792 268053664 +151959 267982464 +152556 270216683 +153199 272935986 +153789 275632752 +153800 277188686 +153598 279655274 +154107 282583945 +154942 285274387 +154645 287041556 +155056 288984473 +155817 291629042 +156603 294801348 +157294 295035375 +157025 294146204 +157003 294711271 +156769 292536950 +156898 293719561 +156787 290405394 +156743 286589282 +156533 285487816 +157118 287431674 +157824 290665055 +157709 290067620 +158477 287138509 +159299 287100874 +160122 289369136 +160844 286668563 +161205 281991107 +160938 282420995 +161654 282917556 +161500 285398625 +161815 286541139 +162218 289854492 +162786 291403067 +163039 294053937 +163409 298329828 +163156 303007899 +162939 304093432 +163518 309974555 +163562 304608296 +164222 297583087 +164603 290592360 +164840 287578145 +164839 290613464 +165708 292360913 +165698 289690704 +166019 290560413 +166350 294856824 +167125 294728148 +166841 297439409 +167711 298549501 +167529 300305890 +168349 303986837 +168918 303686964 +168847 305393729 +168649 307955466 +168726 304855612 +168559 308181200 +168259 306241552 +168234 308008177 +168110 302315422 +168612 305569935 +168636 305906187 +168943 303298778 +169653 301149180 +169853 301293931 +170468 298101957 +171114 298614194 +171063 300042721 +170995 301785489 +171225 306682290 +171298 311945986 +172080 311291808 +171773 315726088 +172326 323427260 +172289 328370981 +173001 332611063 +173705 337064873 +174340 342519630 +174656 345843455 +174523 339924055 +174341 339873797 +174548 333200374 +175197 327767930 +175490 332415219 +175633 335241473 +175901 343102999 +176136 343610518 +177060 341197556 +177143 341160366 +178005 347451087 +177907 349245778 +178871 342297735 +178990 339909931 +179103 334471279 +179664 335884481 +179453 337146585 +179874 339131572 +180608 339036879 +181123 334295264 +181378 332514788 +181368 331815034 +181610 332269354 +181353 335658267 +181024 331029523 +181799 333376639 +181533 330803620 +181852 335446096 +182249 327651485 +182786 330853981 +182815 334091425 +183694 332995651 +183716 334941456 +184256 336817329 +184978 332025859 +185709 332429866 +186457 333570075 +186612 336524124 +186578 337557879 +186476 341429329 +187155 341215996 +188068 341116974 +188507 339736778 +189327 341201420 +189402 338445712 +189296 333925182 +189261 334673213 +190126 328066673 +190122 329180589 +190650 324569768 +190780 318579181 +190626 314776776 +190969 311946966 +190890 314166566 +191777 318188885 +192207 320045959 +192265 321161086 +191971 319260853 +192249 319445928 +192402 314917166 +192248 315201117 +192683 318108496 +192519 322772416 +193154 319241285 +193916 320586463 +193723 323274138 +194704 330040238 +195184 329634117 +194926 330080108 +195479 329739241 +195867 322514365 +196687 321976322 +196958 321040287 +197636 321145380 +198200 322276370 +198827 323986641 +199777 326794962 +200567 327018587 +200520 332006083 +200278 335733043 +200046 338549668 +199874 344296960 +200291 337647450 +200243 338518067 +200885 339309954 +201357 338288801 +202241 336350601 +202324 332561061 +202067 335711646 +202071 330866236 +202854 326704296 +203434 322209733 +203411 316221784 +204065 316466802 +204968 315581800 +205767 319955897 +206645 323462328 +206375 325976933 +206808 324289361 +206693 332228958 +206362 329743222 +206454 328646099 +207209 325507293 +207638 330329090 +208223 331728429 +209130 335067410 +209345 331974791 +209858 330643804 +209559 331699357 +210330 326178275 +210934 318999077 +211625 314071095 +211897 309683222 +212655 309930370 +212357 309518492 +212981 308824617 +212827 309611918 +212525 309432426 +212433 306566068 +212347 309064398 +212464 306201238 +212317 304175447 +212979 306911064 +213358 305985547 +213100 304258564 +213302 301599350 +213762 297612234 +214130 296020082 +214450 296234760 +214731 294572059 +214622 294482263 +215333 299276824 +215502 303917135 +215508 308471741 +216410 307678437 +217063 307855228 +217710 306409096 +218169 305830083 +218818 310027240 +219686 311250740 +219811 310516485 +220644 311941543 +221030 310173680 +221355 314460254 +222269 312101320 +222080 316701627 +222437 316159429 +223294 318094589 +223663 317363253 +224509 318081780 +224990 313101859 +224756 309166502 +224703 305336221 +225030 307306494 +225654 305219315 +226438 298967393 +226566 299617506 +226556 293222112 +226628 290248822 +226447 288884926 +226249 284101629 +226513 283997093 +226774 283049805 +226727 279807754 +226542 280858724 +226858 275240062 +227152 279692044 +227553 279292362 +227985 281158595 +227794 285760970 +228507 286322073 +228532 287162103 +228962 285663441 +229467 285996180 +230298 285382009 +231050 288707650 +230873 295006850 +231488 297892791 diff --git a/tests/difficulty/wow-emission b/tests/difficulty/wow-emission new file mode 100755 index 000000000..d033fcdb2 --- /dev/null +++ b/tests/difficulty/wow-emission @@ -0,0 +1,86 @@ +#!/usr/bin/python3 + +# BSD 3-Clause License +# +# Copyright (c) 2018, Jason Rhinelander +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of the copyright holder nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +import requests + +# CONFIGURATION: + +# Target time +DIFFICULTY_TARGET = 300 + +# Range of blocks to analyze: +N = 20 + +# Fork height/name pairs (purely cosmetic to indicate forks in the output) +forks = { + 50: 'v12', +} + +# First element is the URL to fetch; the rest are keys to follow to get the current network height: +api_height = ('http://explorer.wowne.ro:8082/api/networkinfo', 'data', 'height') + +# First element is a format with {} to be replaced with the block height; the rest are keys to +# follow to get that block's timestamp: +api_block = ('http://explorer.wowne.ro:8082/api/block/{}', 'data', 'timestamp') + +# Run: ./wow-emission + +# END CONFIGURATION + +time_period = N*DIFFICULTY_TARGET +h = requests.get(api_height[0]).json() +for i in api_height[1:]: + h = h[i] + +h -= 1 # want height of last block, not current network height + +next_ts = None +next_h = None +while h > 1: + contains_fork = None + for fork_height, fork_name in forks.items(): + if h is not None and h < fork_height <= next_h: + contains_fork = fork_name + break + + ts = requests.get(api_block[0].format(h)).json() + for i in api_block[1:]: + ts = ts[i] + + if next_ts is not None: + elapsed = next_ts - ts + print("{} -- {}: elapsed time = {}s = {:.2f}% of {} target = avg solvetime = {:.2f} minutes over {} blocks".format( + h, next_h, elapsed, 100.*elapsed/time_period, time_period, elapsed/60/N, N), end='') + + print(" --- ({} FORK) ---".format(contains_fork) if contains_fork is not None else "") + + next_ts = ts + next_h = h + h -= N diff --git a/tests/difficulty/wownero-data.txt b/tests/difficulty/wownero-data.txt new file mode 100644 index 000000000..cf799af5e --- /dev/null +++ b/tests/difficulty/wownero-data.txt @@ -0,0 +1,478 @@ +50 1544807250 111 +51 1544807251 111 +52 1544807267 7120 +53 1544807942 15340 +54 1544808953 9094 +55 1544809140 5748 +56 1544809214 6054 +57 1544809224 6678 +58 1544809698 7557 +59 1544809817 7066 +60 1544809969 7524 +61 1544810017 7901 +62 1544810260 8566 +63 1544810847 8717 +64 1544811309 8063 +65 1544811461 7758 +66 1544812116 8017 +67 1544812450 7458 +68 1544812700 7412 +69 1544813448 7477 +70 1544813747 6956 +71 1544814796 6957 +72 1544815060 6287 +73 1544816309 6315 +74 1544816329 5670 +75 1544816563 5840 +76 1544816875 5881 +77 1544816886 5874 +78 1544817057 6046 +79 1544817102 6123 +80 1544817107 6278 +81 1544817697 6462 +82 1544818307 6286 +83 1544818405 6114 +84 1544818452 6222 +85 1544818601 6360 +86 1544818970 6443 +87 1544818977 6406 +88 1544819349 6563 +89 1544819355 6524 +90 1544819520 6680 +91 1544819607 6752 +92 1544819648 6866 +93 1544819784 7007 +94 1544819815 7097 +95 1544820138 7246 +96 1544820865 7234 +97 1544821319 7011 +98 1544821764 6935 +99 1544821949 6867 +100 1544821999 6920 +101 1544822103 7035 +102 1544822445 7127 +103 1544822499 7107 +104 1544822630 7220 +105 1544823113 7299 +106 1544823164 7216 +107 1544823207 7327 +108 1544823462 7443 +109 1544824390 7464 +110 1544824483 7194 +111 1544824693 7279 +112 1544825153 7316 +113 1544825447 7252 +114 1544826047 7254 +115 1544826816 7140 +116 1544826840 6970 +117 1544826893 7068 +118 1544827218 7155 +119 1544827246 7147 +120 1544827258 7243 +121 1544827533 7346 +122 1544827536 7353 +123 1544828070 7353 +124 1544828149 7459 +125 1544828183 7459 +126 1544828541 7374 +127 1544829151 7374 +128 1544829353 7451 +129 1544829375 7451 +130 1544829428 7545 +131 1544830618 7545 +132 1544830629 7522 +133 1544831213 7522 +134 1544831672 7414 +135 1544831917 7414 +136 1544831961 7447 +137 1544832296 7447 +138 1544833065 7542 +139 1544833372 7542 +140 1544833650 7624 +141 1544833856 7624 +142 1544834092 7335 +143 1544834232 7335 +144 1544834476 7428 +145 1544834789 7428 +146 1544834932 7428 +147 1544835167 7428 +148 1544835577 7428 +149 1544835658 7343 +150 1544835719 7296 +151 1544835874 7312 +152 1544836381 7388 +153 1544836763 7378 +154 1544838241 7247 +155 1544838310 7249 +156 1544838531 7258 +157 1544838683 7287 +158 1544838835 7306 +159 1544838915 7349 +160 1544838937 7364 +161 1544839139 7360 +162 1544839632 7402 +163 1544839639 7419 +164 1544839766 7390 +165 1544840188 7449 +166 1544840324 7509 +167 1544840725 7549 +168 1544841073 7493 +169 1544841395 7470 +170 1544841881 7184 +171 1544841925 7238 +172 1544842032 7255 +173 1544842532 7288 +174 1544842689 7325 +175 1544842741 7375 +176 1544842993 7439 +177 1544843611 7461 +178 1544843765 7418 +179 1544843882 7485 +180 1544843949 7530 +181 1544844471 7501 +182 1544846276 7538 +183 1544847445 7518 +184 1544848223 7506 +185 1544848650 7500 +186 1544849293 7456 +187 1544849307 7451 +188 1544849402 7504 +189 1544849696 7602 +190 1544849805 7623 +191 1544850606 7640 +192 1544850744 7592 +193 1544851386 7559 +194 1544851652 7554 +195 1544851664 7562 +196 1544851719 7554 +197 1544852399 7483 +198 1544853145 7216 +199 1544853804 7070 +200 1544853963 6948 +201 1544854234 6987 +202 1544854678 6928 +203 1544854843 6973 +204 1544854969 7100 +205 1544855088 7107 +206 1544855298 7303 +207 1544855399 7204 +208 1544855417 7448 +209 1544855575 7332 +210 1544855609 7340 +211 1544855796 7418 +212 1544855904 7423 +213 1544856100 7328 +214 1544856230 7195 +215 1544856308 7073 +216 1544856344 7161 +217 1544856487 7234 +218 1544856585 7172 +219 1544856616 7155 +220 1544856803 7166 +221 1544857509 7221 +222 1544857649 7188 +223 1544857660 7247 +224 1544857833 7252 +225 1544857938 7259 +226 1544858083 7275 +227 1544858344 7250 +228 1544858447 7259 +229 1544858893 7228 +230 1544858949 7266 +231 1544859066 7398 +232 1544859349 7488 +233 1544859494 7555 +234 1544859567 7577 +235 1544859701 7583 +236 1544859708 7566 +237 1544860014 7488 +238 1544860386 7471 +239 1544860779 7496 +240 1544860825 7563 +241 1544860938 7552 +242 1544861189 7529 +243 1544861265 7526 +244 1544861486 7707 +245 1544861493 7628 +246 1544862214 7662 +247 1544862688 7740 +248 1544863295 7745 +249 1544863944 7853 +250 1544864067 8024 +251 1544864418 8003 +252 1544864496 8018 +253 1544864539 8026 +254 1544864626 7946 +255 1544864834 7858 +256 1544865358 7914 +257 1544865404 7889 +258 1544865649 7958 +259 1544865881 7960 +260 1544865929 7917 +261 1544866026 8004 +262 1544866446 7980 +263 1544866493 7917 +264 1544866753 7783 +265 1544867010 7651 +266 1544867925 7900 +267 1544868777 7825 +268 1544868824 7948 +269 1544868950 8054 +270 1544868952 8098 +271 1544869472 8061 +272 1544869999 8019 +273 1544870138 8202 +274 1544871229 8222 +275 1544871380 8236 +276 1544871780 8280 +277 1544871970 8322 +278 1544872078 8256 +279 1544872085 8311 +280 1544872452 8328 +281 1544872501 8301 +282 1544873065 8133 +283 1544873233 8028 +284 1544873620 8042 +285 1544873974 8033 +286 1544874612 8077 +287 1544875073 8080 +288 1544875609 8051 +289 1544875708 8398 +290 1544876318 8146 +291 1544876424 8172 +292 1544877283 8120 +293 1544877669 8120 +294 1544877696 8121 +295 1544877838 8133 +296 1544877838 8102 +297 1544878052 8219 +298 1544878058 8089 +299 1544878076 8085 +300 1544878965 8098 +301 1544879506 8051 +302 1544879566 7999 +303 1544880167 7978 +304 1544880273 7933 +305 1544881431 8034 +306 1544881686 7910 +307 1544882187 7918 +308 1544882801 7844 +309 1544883397 7799 +310 1544883541 7811 +311 1544883614 7842 +312 1544883818 7989 +313 1544884565 7982 +314 1544884766 8013 +315 1544886005 8030 +316 1544886045 7949 +317 1544886716 8256 +318 1544887183 8546 +319 1544887281 8598 +320 1544887408 8689 +321 1544887955 8555 +322 1544888070 8496 +323 1544889324 8394 +324 1544889572 8315 +325 1544889624 8196 +326 1544889758 8361 +327 1544889858 8380 +328 1544889945 8497 +329 1544890524 8377 +330 1544890752 8333 +331 1544890803 8050 +332 1544891097 8207 +333 1544891104 8235 +334 1544891284 8295 +335 1544891836 8325 +336 1544892064 8377 +337 1544892318 8366 +338 1544892754 8392 +339 1544892932 8128 +340 1544893094 8108 +341 1544893454 8153 +342 1544893586 8155 +343 1544893598 8144 +344 1544893663 8171 +345 1544894071 8052 +346 1544895132 8051 +347 1544895173 8069 +348 1544896179 8054 +349 1544896208 8092 +350 1544896727 8078 +351 1544897097 7971 +352 1544897286 7961 +353 1544897682 7937 +354 1544897896 7858 +355 1544898916 7868 +356 1544898949 7996 +357 1544899556 7955 +358 1544899775 7935 +359 1544899776 7979 +360 1544899865 7995 +361 1544899872 7943 +362 1544899941 7777 +363 1544899968 7797 +364 1544900311 7686 +365 1544900552 7699 +366 1544901232 7622 +367 1544901496 7608 +368 1544901957 7603 +369 1544903562 7541 +370 1544903755 7527 +371 1544904768 7335 +372 1544905506 7390 +373 1544906057 7350 +374 1544906297 7386 +375 1544906315 7398 +376 1544906337 7406 +377 1544906502 7456 +378 1544906547 7459 +379 1544906847 7497 +380 1544906977 7433 +381 1544907319 7526 +382 1544907476 7485 +383 1544907712 7551 +384 1544908725 7587 +385 1544909776 7298 +386 1544910660 7324 +387 1544911294 7149 +388 1544911645 7023 +389 1544911681 6940 +390 1544911980 6931 +391 1544912010 7013 +392 1544912240 7014 +393 1544912442 7024 +394 1544913183 7052 +395 1544913211 7006 +396 1544913287 6996 +397 1544913368 7006 +398 1544913989 6984 +399 1544914107 6986 +400 1544914282 6859 +401 1544914450 6833 +402 1544915089 6824 +403 1544915455 6724 +404 1544915634 6681 +405 1544916158 6668 +406 1544916276 6694 +407 1544917136 6766 +408 1544917168 6743 +409 1544918023 6880 +410 1544918389 6774 +411 1544918585 6826 +412 1544918714 6835 +413 1544919342 6831 +414 1544919630 6721 +415 1544919924 6752 +416 1544920303 6721 +417 1544920319 6776 +418 1544920340 6691 +419 1544920453 6685 +420 1544920898 6703 +421 1544920982 6711 +422 1544921194 6757 +423 1544921328 6695 +424 1544921394 6694 +425 1544921691 6646 +426 1544922123 6594 +427 1544922578 6691 +428 1544922740 6723 +429 1544923162 6617 +430 1544923243 6584 +431 1544923473 6528 +432 1544923667 6492 +433 1544923733 6481 +434 1544924157 6471 +435 1544924409 6582 +436 1544924576 6587 +437 1544924759 6574 +438 1544924994 6627 +439 1544925510 6614 +440 1544925648 6784 +441 1544926443 6768 +442 1544927071 6770 +443 1544927398 6788 +444 1544927604 6855 +445 1544927649 6797 +446 1544927686 6787 +447 1544927735 6771 +448 1544927802 6855 +449 1544928132 6867 +450 1544928608 7002 +451 1544928617 6952 +452 1544928941 7032 +453 1544929052 7069 +454 1544929625 7028 +455 1544929726 6940 +456 1544930394 7001 +457 1544930716 6863 +458 1544931293 6964 +459 1544931301 6938 +460 1544931430 6899 +461 1544931614 6903 +462 1544931777 6902 +463 1544932345 6895 +464 1544932452 6977 +465 1544932485 6946 +466 1544932507 6860 +467 1544932867 6902 +468 1544933220 6835 +469 1544933524 6837 +470 1544933953 6823 +471 1544934005 6835 +472 1544934020 6750 +473 1544934376 6758 +474 1544934584 6679 +475 1544934715 6696 +476 1544934868 6727 +477 1544935152 6708 +478 1544935226 6672 +479 1544935396 6575 +480 1544935475 6618 +481 1544935482 6792 +482 1544935519 6785 +483 1544935559 6895 +484 1544935587 6825 +485 1544935624 6855 +486 1544935731 6834 +487 1544936206 6851 +488 1544936888 6913 +489 1544937586 6877 +490 1544937937 7023 +491 1544937990 6993 +492 1544938149 7073 +493 1544938379 7049 +494 1544939193 7024 +495 1544939423 6996 +496 1544939930 6970 +497 1544940085 6974 +498 1544940211 6964 +499 1544940274 7017 +500 1544940355 7052 +501 1544940405 7177 +502 1544940551 7203 +503 1544940662 7194 +504 1544941378 7387 +505 1544941980 7271 +506 1544942561 7413 +507 1544943576 7566 +508 1544943849 7656 +509 1544943988 7655 +510 1544944013 7466 +511 1544944287 7416 +512 1544944317 7336 +513 1544944801 7307 +514 1544945739 7340 +515 1544946982 7352 +516 1544947008 7405 +517 1544947289 7427 +518 1544947560 7444 +519 1544948145 7650 +520 1544949215 7732 +521 1544949531 7801 +522 1544949707 7817 +523 1544950260 7660 +524 1544950430 7610 +525 1544950640 7655 +526 1544950742 7660 +527 1544950774 7653 diff --git a/tests/difficulty/wownero-emission.txt b/tests/difficulty/wownero-emission.txt new file mode 100644 index 000000000..a5dcfcc08 --- /dev/null +++ b/tests/difficulty/wownero-emission.txt @@ -0,0 +1,26 @@ +511 -- 531: elapsed time = 7762s = 129.37% of 6000 target = avg solvetime = 6.47 minutes over 20 blocks +491 -- 511: elapsed time = 6297s = 104.95% of 6000 target = avg solvetime = 5.25 minutes over 20 blocks +471 -- 491: elapsed time = 3985s = 66.42% of 6000 target = avg solvetime = 3.32 minutes over 20 blocks +451 -- 471: elapsed time = 5388s = 89.80% of 6000 target = avg solvetime = 4.49 minutes over 20 blocks +431 -- 451: elapsed time = 5144s = 85.73% of 6000 target = avg solvetime = 4.29 minutes over 20 blocks +411 -- 431: elapsed time = 4888s = 81.47% of 6000 target = avg solvetime = 4.07 minutes over 20 blocks +391 -- 411: elapsed time = 6575s = 109.58% of 6000 target = avg solvetime = 5.48 minutes over 20 blocks +371 -- 391: elapsed time = 7242s = 120.70% of 6000 target = avg solvetime = 6.04 minutes over 20 blocks +351 -- 371: elapsed time = 7671s = 127.85% of 6000 target = avg solvetime = 6.39 minutes over 20 blocks +331 -- 351: elapsed time = 6294s = 104.90% of 6000 target = avg solvetime = 5.25 minutes over 20 blocks +311 -- 331: elapsed time = 7189s = 119.82% of 6000 target = avg solvetime = 5.99 minutes over 20 blocks +291 -- 311: elapsed time = 7190s = 119.83% of 6000 target = avg solvetime = 5.99 minutes over 20 blocks +271 -- 291: elapsed time = 6952s = 115.87% of 6000 target = avg solvetime = 5.79 minutes over 20 blocks +251 -- 271: elapsed time = 5054s = 84.23% of 6000 target = avg solvetime = 4.21 minutes over 20 blocks +231 -- 251: elapsed time = 5352s = 89.20% of 6000 target = avg solvetime = 4.46 minutes over 20 blocks +211 -- 231: elapsed time = 3270s = 54.50% of 6000 target = avg solvetime = 2.73 minutes over 20 blocks +191 -- 211: elapsed time = 5190s = 86.50% of 6000 target = avg solvetime = 4.33 minutes over 20 blocks +171 -- 191: elapsed time = 8681s = 144.68% of 6000 target = avg solvetime = 7.23 minutes over 20 blocks +151 -- 171: elapsed time = 6051s = 100.85% of 6000 target = avg solvetime = 5.04 minutes over 20 blocks +131 -- 151: elapsed time = 5256s = 87.60% of 6000 target = avg solvetime = 4.38 minutes over 20 blocks +111 -- 131: elapsed time = 5925s = 98.75% of 6000 target = avg solvetime = 4.94 minutes over 20 blocks +91 -- 111: elapsed time = 5086s = 84.77% of 6000 target = avg solvetime = 4.24 minutes over 20 blocks +71 -- 91: elapsed time = 4811s = 80.18% of 6000 target = avg solvetime = 4.01 minutes over 20 blocks +51 -- 71: elapsed time = 7545s = 125.75% of 6000 target = avg solvetime = 6.29 minutes over 20 blocks +31 -- 51: elapsed time = 121s = 2.02% of 6000 target = avg solvetime = 0.10 minutes over 20 blocks --- (v12 FORK) --- +11 -- 31: elapsed time = 78s = 1.30% of 6000 target = avg solvetime = 0.07 minutes over 20 blocks