From 932f7bb1ffd6624cc04cd4a78cfcc197f491c81a Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 26 Dec 2020 12:05:29 -0600 Subject: [PATCH] docs: Update JSON-RPC API getwork to match reality. The deprecated hash1 and midstate fields were removed long ago. This updates the API docs to match that reality. --- docs/json_rpc_api.mediawiki | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/json_rpc_api.mediawiki b/docs/json_rpc_api.mediawiki index 7bfce099..5669caf0 100644 --- a/docs/json_rpc_api.mediawiki +++ b/docs/json_rpc_api.mediawiki @@ -2177,17 +2177,15 @@ of the best block. | (json object) : data: (string) hex-encoded block data -: hash1: (string) (DEPRECATED) hex-encoded formatted hash buffer -: midstate: (string) (DEPRECATED) hex-encoded precomputed hash state after hashing first half of the data : target: (string) the hex-encoded little-endian hash target -{"data": "hex", "hash1": "hex", "midstate": "hex", "target": "hex"} +{"data": "hex", "target": "hex"} |- !Returns (data specified) |true or false (boolean) |- !Example Return (data not specified) -|{"data": "00000002c39b5d2b7a1e8f7356a1efce26b24bd15d7d906e85341ef9cec99b6a000000006474f...", "hash1": "00000000000000000000000000000000000000000000000000000000000000000000008000000...", "midstate": "ae4a80fc51476e452de855b4e20d5f33418c50fc7cae3b1ecd5badb819b8a584", "target": "0000000000000000000000000000000000000000000000008c96010000000000"} +|{"data": "00000002c39b5d2b7a1e8f7356a1efce26b24bd15d7d906e85341ef9cec99b6a000000006474f...", "target": "0000000000000000000000000000000000000000000000008c96010000000000"} |- !Example Return (data specified) |true