From b2cd9f1fd9fea48fc3dcc43bd7271a99911c8d9e Mon Sep 17 00:00:00 2001 From: Chuan-Chun Wang Date: Sat, 19 Mar 2022 05:06:36 +0800 Subject: [PATCH 1/4] Update the description of block.difficulty --- docs/v5/api/providers/types/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/v5/api/providers/types/README.md b/docs/v5/api/providers/types/README.md index b797562d8f..e948bbae6f 100644 --- a/docs/v5/api/providers/types/README.md +++ b/docs/v5/api/providers/types/README.md @@ -61,7 +61,12 @@ The nonce used as part of the proof-of-work to mine this block. This property is generally of little interest to developers. -#### *block* . **difficulty** => *number* +#### *block* . **difficulty** => *null* + +Because the difficulty had reached the limit of IEEE754 numbers, this attribute is deprecated. + + +#### *block* . **_difficulty** => *[BigNumber](/v5/api/utils/bignumber/)* The difficulty target required to be met by the miner of the block. From 3311cca467a540fc32da93f9fdf1a67093430191 Mon Sep 17 00:00:00 2001 From: Chuan-Chun Wang Date: Sat, 19 Mar 2022 05:11:18 +0800 Subject: [PATCH 2/4] Update the description of block.difficulty --- docs/v5/api/providers/types/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/v5/api/providers/types/index.html b/docs/v5/api/providers/types/index.html index e79168dcd4..5c9fabe2f4 100644 --- a/docs/v5/api/providers/types/index.html +++ b/docs/v5/api/providers/types/index.html @@ -55,7 +55,9 @@

This property is generally of little interest to developers.

-
block.difficulty number

The difficulty target required to be met by the miner of the block.

+
block.difficulty null

Because the difficulty had reached the limit of IEEE754 numbers, this attribute is deprecated.

+ +
block._difficulty BigNumber

The difficulty target required to be met by the miner of the block.

This property is generally of little interest to developers.

From 9e9ff7fafe1854d0960f19d56b10fd93a39d3f92 Mon Sep 17 00:00:00 2001 From: Chuan-Chun Wang Date: Sat, 19 Mar 2022 05:27:27 +0800 Subject: [PATCH 3/4] Fix wording --- docs/v5/api/providers/types/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/v5/api/providers/types/README.md b/docs/v5/api/providers/types/README.md index e948bbae6f..51987184e2 100644 --- a/docs/v5/api/providers/types/README.md +++ b/docs/v5/api/providers/types/README.md @@ -63,7 +63,7 @@ This property is generally of little interest to developers. #### *block* . **difficulty** => *null* -Because the difficulty had reached the limit of IEEE754 numbers, this attribute is deprecated. +Because the difficulty had reached the limit of IEEE754 numbers, this property is temporarily deprecated at v5. It will be available again at v6. #### *block* . **_difficulty** => *[BigNumber](/v5/api/utils/bignumber/)* From c18219ba45008e9e2fd9f55439940489fa6ce650 Mon Sep 17 00:00:00 2001 From: Chuan-Chun Wang Date: Sat, 19 Mar 2022 05:29:20 +0800 Subject: [PATCH 4/4] Fix wording --- docs/v5/api/providers/types/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/v5/api/providers/types/index.html b/docs/v5/api/providers/types/index.html index 5c9fabe2f4..027ba3bd7a 100644 --- a/docs/v5/api/providers/types/index.html +++ b/docs/v5/api/providers/types/index.html @@ -55,7 +55,7 @@

This property is generally of little interest to developers.

-
block.difficulty null

Because the difficulty had reached the limit of IEEE754 numbers, this attribute is deprecated.

+
block.difficulty null

Because the difficulty had reached the limit of IEEE754 numbers, this property is temporarily deprecated at v5. It will be available again at v6.

block._difficulty BigNumber

The difficulty target required to be met by the miner of the block.