From 6702d4400f0e68da92881d6600eefd2685a22470 Mon Sep 17 00:00:00 2001 From: holgerd77 Date: Wed, 30 Aug 2017 20:07:50 +0200 Subject: Updated difficulty test structure, network/fork information --- docs/difficulty_tests/index.rst | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/difficulty_tests/index.rst b/docs/difficulty_tests/index.rst index 2125169f5..a72e5cb9a 100644 --- a/docs/difficulty_tests/index.rst +++ b/docs/difficulty_tests/index.rst @@ -1,14 +1,19 @@ .. _difficulty_tests: -################################################################################ Difficulty Tests -################################################################################ +================ -Found in ``\Basic Tests\difficulty*.json`` files. This tests are designed to just check the difficulty formula of a block. +These tests are designed to just check the difficulty formula of a block. + +=================== ============================================================== +Location `\BasicTests `_ (difficulty*.json) +Supported Hardforks ``Test Networks`` | ``Frontier`` | ``Homestead`` +Status Outdated +=================== ============================================================== difficulty = DIFFICULTY(currentBlockNumber, currentTimestamp, parentTimestamp, parentDifficulty) -described at [EIP2](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.mediawiki) point 4 with homestead changes. +described at `EIP2 `_ point 4 with homestead changes. So basically this .json tests are just to check how this function is calculated on different function parameters (parentDifficulty, currentNumber) in its extremum points. @@ -27,8 +32,8 @@ There are several test files: ``difficultyCustomHomestead.json`` Tests for homestead difficulty (regardless of the block number) -Basic structure --------------------------------------------------------------------------------- +Test Structure +-------------- :: { @@ -42,7 +47,8 @@ Basic structure } Sections --------------------------------------------------------------------------------- +^^^^^^^^ + * ``parentTimestamp`` - indicates the timestamp of a previous block * ``parentDifficulty`` - indicates the difficulty of a previous block * ``currentTimestamp`` - indicates the timestamp of a current block -- cgit v1.2.3