Commit Graph

122 Commits

Author SHA1 Message Date
jl777
1d8bddf724 test 2016-10-24 14:24:49 -03:00
jl777
d019c44792 test 2016-10-24 14:14:11 -03:00
jl777
05dfe053b2 test 2016-10-24 12:42:05 -03:00
jl777
0d1959519e test 2016-10-24 12:26:09 -03:00
jl777
d836ec3f63 test 2016-10-24 12:24:19 -03:00
jl777
bd1750d3bf test 2016-10-24 12:02:31 -03:00
jl777
56d91e9ccc test 2016-10-24 12:01:11 -03:00
jl777
6710be90e8 test 2016-10-24 11:36:18 -03:00
jl777
96eb75eec8 test 2016-10-24 11:35:32 -03:00
jl777
aa5a494cc9 test 2016-10-24 11:31:54 -03:00
jl777
a4ebaad761 test 2016-10-24 11:24:34 -03:00
jl777
86bb5aa275 test 2016-10-24 10:19:49 -03:00
jl777
d27a1c1c7e test 2016-10-24 09:46:53 -03:00
jl777
3000de349a test 2016-10-23 20:28:00 -03:00
jl777
0012cfe4a8 test 2016-10-23 17:42:46 -03:00
jl777
768f9a1df5 test 2016-10-23 17:13:31 -03:00
jl777
303e9e00c6 test 2016-10-23 17:06:56 -03:00
jl777
46d5a641f8 test 2016-10-23 17:05:22 -03:00
jl777
1f34636377 test 2016-10-23 16:54:13 -03:00
jl777
a0ae285799 test 2016-10-23 15:36:43 -03:00
jl777
f09940d8b4 test 2016-10-23 15:07:07 -03:00
jl777
a9869d0dd7 test 2016-10-23 14:40:41 -03:00
jl777
17878015bb test 2016-10-22 13:23:25 -03:00
jl777
2860f74793 test 2016-10-22 13:03:18 -03:00
jl777
7a77c4431c test 2016-10-22 12:46:45 -03:00
jl777
382c22eaa7 test 2016-10-22 12:31:43 -03:00
jl777
47658758e1 test 2016-10-22 12:27:01 -03:00
jl777
6f3a040798 test 2016-10-22 12:09:45 -03:00
jl777
e42867d124 test 2016-10-22 11:38:25 -03:00
jl777
cad0d1ca62 test 2016-10-22 11:32:24 -03:00
jl777
ae02c5b4b6 test 2016-10-22 10:27:14 -03:00
jl777
6ef202b24a test 2016-10-22 10:24:06 -03:00
jl777
8ad9f27fdd test 2016-10-21 18:32:52 -03:00
jl777
0f24f24562 test 2016-10-21 17:28:28 -03:00
jl777
f2dd868d93 test 2016-10-20 06:32:43 -03:00
jl777
254debb628 test 2016-10-18 19:44:12 -03:00
jl777
c73c41db3c test 2016-10-18 19:40:45 -03:00
jl777
74a3757792 test 2016-10-18 19:30:22 -03:00
jl777
38f6c6f0fd test 2016-10-18 19:27:59 -03:00
jl777
8e54e61f93 test 2016-10-18 19:20:56 -03:00
jl777
53b58ced34 test 2016-10-18 19:19:24 -03:00
jl777
745f5b12ff test 2016-10-18 19:03:06 -03:00
jl777
0cb232fa89 test 2016-10-18 19:01:38 -03:00
jl777
651989c73c test 2016-10-18 19:00:22 -03:00
jl777
482c3933ad test 2016-10-18 13:17:40 -03:00
zkbot
2271d3feda Auto merge of #1338 - str4d:147-tweak-difficulty-adjustment-algorithm, r=ebfull
Tweaks to difficulty adjustment algorithm

This PR changes the difficulty algorithm to adjust from the average difficulty over the
block window instead of from the last difficulty. It also removes the special rules for the
testnet, which are incompatible with difficulty averaging.

Closes #147 again.
2016-09-08 02:21:13 +00:00
Simon
805344dcf4 Refactor: replace calls to GetTxid() with GetHash() 2016-09-07 15:12:09 -07:00
Jack Grigg
f50e8313f5 Remove accidental double-semicolon (harmless but odd) 2016-09-06 13:18:33 +12:00
Jack Grigg
333ea3c426 Remove testnet-only difficulty rules
The min-difficulty blocks are incompatible with difficulty averaging.

Network difficulty is also now defined as the difficulty the network is
currently working to solve, rather than the last non-min-difficulty block
difficulty.
2016-09-05 23:13:25 +12:00
Jack Grigg
695a7a8826 Separate concepts of block difficulty and network difficulty in RPC
"Block difficulty" is the difficulty listed in a block's header, which in the
testnet can sometimes be min-difficulty (if time-since-last-block is too large).

"Network difficulty" is the difficulty that the network was trying to satisfy
at a particular block height. In mainnet this is always equal to the difficulty
of the solved block for that height, but in testnet the network difficulty is
derived from the last non-min-difficulty block difficulty.

This commit fixes the RPC APIs that are intended to show network difficulty, so
that on testnet they don't sometimes drop to 1.0, confusing users.

Closes #1181
2016-09-01 15:13:05 +12:00