diff options
author | holgerd77 <Holger.Drewes@gmail.com> | 2017-08-31 02:07:50 +0800 |
---|---|---|
committer | holgerd77 <Holger.Drewes@gmail.com> | 2017-08-31 02:07:50 +0800 |
commit | 6702d4400f0e68da92881d6600eefd2685a22470 (patch) | |
tree | e8c676873b6998cae7958129d8000ee69289e6de /docs | |
parent | b0425dc87ab3556d020b2e76980bfe516e7b4b84 (diff) | |
download | tangerine-tests-6702d4400f0e68da92881d6600eefd2685a22470.tar.gz tangerine-tests-6702d4400f0e68da92881d6600eefd2685a22470.tar.zst tangerine-tests-6702d4400f0e68da92881d6600eefd2685a22470.zip |
Updated difficulty test structure, network/fork information
Diffstat (limited to 'docs')
-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 |