-
Notifications
You must be signed in to change notification settings - Fork 118
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
Update getinfo
RPC method
#8448
Milestone
Comments
I think we can get rid of all the optional wallet fields as Zebra will not be ever (with the current plan) able to provide them. This fields are |
Reference zcashd output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
In order to enable zcashd deprecation, we need to ensure that RPC methods that are used by existing zcashd consumers are implemented in zebra to cater to their usecases.
Specification
zcashd
'sgetinfo
RPC method is documented here: https://zcash.github.io/rpc/getinfo.htmlZebra already partially implements the
getinfo
RPC method, however, it is missing the following fields:version
: xxxxx, (numeric) the server versionprotocolversion
: xxxxx, (numeric) the protocol versionwalletversion
: xxxxx, (numeric, optional) the wallet version, if wallet functionality is enabledbalance
: xxxxxxx, (numeric, optional) the total Zcash balance of the wallet, if wallet functionality is enabledblocks
: xxxxxx, (numeric) the current number of blocks processed in the servertimeoffset
: xxxxx, (numeric) the time offset (deprecated; always 0)connections
: xxxxx, (numeric) the number of connectionsproxy
: "host:port", (string, optional) the proxy used by the serverdifficulty
: xxxxxx, (numeric) the current difficultytestnet
: true|false, (boolean) if the server is using testnet or notkeypoololdest
: xxxxxx, (numeric, optional) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool, if wallet functionality is enabledkeypoolsize
: xxxx, (numeric, optional) how many new keys are pre-generatedunlocked_until
: ttt, (numeric, optional) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked, if wallet functionality is available and the wallet is encryptedpaytxfee
: x.xxxx, (numeric) the transaction fee rate set in ZEC per 1000 bytesrelayfee
: x.xxxx, (numeric) minimum relay fee rate for transactions in ZEC per 1000 byteserrors
: "..." (string) message describing the latest or highest-priority errorerrorstimestamp
: "..." (string) timestamp associated with the latest or highest-priority errorWe need to:
The text was updated successfully, but these errors were encountered: