Commit Graph

111 Commits

Author SHA1 Message Date
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
Jack Grigg
e1dde421c3 Output Equihash solution in RPC results as a hex string 2016-08-27 23:58:11 +12:00
Simon
10d2c57c0d Replace calls to GetHash() with GetTxid() for transaction objects.
Where the caller intends to receive a transaction id and not a double
SHA256 hash.
2016-07-26 17:13:03 -07:00
aniemerg
24809b16b6 Update GetDifficulty() to use consensus.powLimit from consensus parameters. Fixes #1032. 2016-06-20 22:21:42 -04:00
Jack Grigg
fdda3c5085 Use Equihash for Proof-of-Work
The main and test networks are configured to use parameters that are currently
low-memory but usable with the basic solver; they will be increased once the
solver is optimised. The regtest network is configured to have extremely low
memory usage for speed.

Note that Bitcoin's double-hasher is used for the difficulty check. This does
not match the paper, but is simpler than changing the block header
serialization. Single hashing is kept for the EquiHash solver because there is
no requirement on execution time there, only on memory usage.
2016-04-08 13:56:00 +12:00
Peter Todd
6af25b0f64 Add BIP65 to getblockchaininfo softforks list
Rebased-From: 54a200ac9ad8909303ccf1ac49c291e0c2b5fb23
2015-10-08 17:50:02 +02:00
Wladimir J. van der Laan
ba1da90b33 Show softfork status in getblockchaininfo
Rebased-From: 5ed10793c2df970d07cecd760c42205e68779e83
2015-10-08 17:49:00 +02:00
jtimon
da29ecbcc6 Consensus: MOVEONLY: Move CValidationState from main consensus/validation 2015-05-15 16:05:28 +02:00
Chris Arnesen
803f51efe4 Typo in GetRawMemPool RPC method help: "]" --> "}" 2015-05-14 01:02:00 -04:00
Wladimir J. van der Laan
7e0e7f823f Merge pull request #6058
03c5687 appropriate response when trying to get a block in pruned mode (Jonas Schnelli)
1b2e555 add autoprune information to RPC "getblockchaininfo" (Jonas Schnelli)
2015-05-11 16:40:58 +02:00
Jonas Schnelli
03c56872b5 appropriate response when trying to get a block in pruned mode 2015-05-11 16:10:08 +02:00
Cory Fields
11982d366d checkpoints: Decouple checkpoints from Params
Pass checkpoint data in as necessary
2015-04-30 23:14:48 -04:00