diff options
-rw-r--r-- | docs/difficulty_tests/index.rst | 20 |
1 files changed, 13 insertions, 7 deletions
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 <https://github.com/ethereum/tests/tree/develop/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 <https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.mediawiki>`_ 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 |