Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daemon-rpc: incorrect doc fixes #2337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions resources/developer-guides/daemon-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ Outputs:
* *view_tag* - The 1st byte of a shared secret (used for reducing synchronization time)
* *extra* - Usually called the "transaction ID" but can be used to include any random 32 byte/64 character hex string.
* *rct_signatures* - Contain signatures of tx signers. Coinbased txs do not have signatures.
* *tx_hashes* - List of hashes of non-coinbase transactions in the block. If there are no other transactions, this will be an empty list.
* *tx_hashes* - List of hashes of non-coinbase transactions in the block. If there are no transactions, this field not not be present.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* *tx_hashes* - List of hashes of non-coinbase transactions in the block. If there are no transactions, this field not not be present.
* *tx_hashes* - List of hashes of non-coinbase transactions in the block. If there are no transactions, this field will not be present.

* *status* - string; General RPC error code. "OK" means everything looks good.
* *top_hash* - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
* *untrusted* - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
Expand Down Expand Up @@ -1090,7 +1090,7 @@ Outputs:
Example:

```
$ curl http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"flush_txpool","params":{"txids":["dc16fa8eaffe1484ca9014ea050e13131d3acf23b419f33bb4cc0b32b6c49308",""]}}' -H 'Content-Type: application/json'
$ curl http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"flush_txpool","params":{"txids":["dc16fa8eaffe1484ca9014ea050e13131d3acf23b419f33bb4cc0b32b6c49308"]}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
Expand Down Expand Up @@ -1525,7 +1525,7 @@ Outputs:
* *height* - unsigned int; current blockheight.
* *prev_id* - string; previous block id.
* *seed_hash* - string; RandomX seed hash.
* *difficulty* - unsigned int; network. difficulty.
* *difficulty* - string; Network difficulty. This is an unsigned int in hexadecimal string form.
* *median_weight* - unsigned int; median block weight.
* *already_generated_coins* - unsigned int; coins mined by the network so far.
* *status* - string; General RPC error code. "OK" means everything looks good.
Expand Down Expand Up @@ -1610,7 +1610,7 @@ Inputs:

* *major_version* - unsigned int; The major version of the monero protocol at this block height.
* *height* - unsigned int;
* *block_blob* - blobdata;
* *block_blob* - string; Block bytes in hexadecimal string form.
* *seed_hash* - string;

Outputs:
Expand Down Expand Up @@ -1887,7 +1887,6 @@ Inputs:
Outputs:

* *outs* - array of structure *outkey* as follows:
* *amount* - unsigned int;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this here for backward compatibility? (from when amounts were public)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iirc we have a few instances of supporting backward compatibility for devs experimenting at different points of the blockchain

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean: it shouldn't be removed if its still needed for older parts of the bc

Copy link
Collaborator

@plowsof plowsof Aug 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* *height* - unsigned int; block height of the output
* *key* - the public key of the output
* *mask*
Expand Down Expand Up @@ -2130,7 +2129,6 @@ Outputs:
* *invalid_input* - boolean; Input is invalid (`true`) or valid (`false`).
* *invalid_output* - boolean; Output is invalid (`true`) or valid (`false`).
* *low_mixin* - boolean; Mixin count is too low (`true`) or OK (`false`).
* *not_rct* - boolean; Transaction is a standard ring transaction (`true`) or a ring confidential transaction (`false`).
* *not_relayed* - boolean; Transaction was not relayed (`true`) or relayed (`false`).
* *overspend* - boolean; Transaction uses more money than available (`true`) or not (`false`).
* *reason* - string; Additional information. Currently empty or "Not relayed" if transaction was accepted but not relayed.
Expand Down Expand Up @@ -2214,12 +2212,12 @@ Outputs:

* *active* - boolean; States if mining is enabled (`true`) or disabled (`false`).
* *address* - string; Account address daemon is mining to. Empty if not mining.
* *bg_idle_threshold* - int; Minimum average idle percentage over lookback interval.
* *bg_idle_threshold* - unsigned int; Minimum average idle percentage over lookback interval.
* *bg_ignore_battery* - boolean; If false, the device will stop mining when battery is low.
* *bg_min_idle_seconds* - int; Minimum lookback interval in seconds for determining whether the device is idle or not.
* *bg_target* - int; Maximum percentage cpu use by miner.
* *block_reward* - int; Base block reward for the next block to be mined.
* *block_target* - int; The target number of seconds between blocks.
* *bg_min_idle_seconds* - unsigned int; Minimum lookback interval in seconds for determining whether the device is idle or not.
* *bg_target* - unsigned int; Maximum percentage cpu use by miner.
* *block_reward* - unsigned int; Base block reward for the next block to be mined.
* *block_target* - unsigned int; The target number of seconds between blocks.
* *difficulty* - unsigned int; Network difficulty (analogous to the strength of the network)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* *difficulty* - unsigned int; Network difficulty (analogous to the strength of the network)
* *difficulty* - unsigned int; Network difficulty (analogous to the strength of the network).

* *difficulty_top64* - unsigned int; Most-significant 64 bits of the 128-bit network difficulty.
* *is_background_mining_enabled* - boolean; States if the mining is running in background (`true`) or foreground (`false`).
Expand Down Expand Up @@ -2623,7 +2621,7 @@ Outputs:
* *s1* -
* *npb* -
* *pseudoOuts* -
* *weight* -
* *weight* - unsigned int; The transaction's weight.

Example (Note: Some lists in the returned information have been truncated for display reasons):

Expand Down
Loading