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
Replace "Bitcoin" with "Zcash" in strings #2150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from the capitalization of ZEC and Zcash, and the indentation in the RPC help.
src/qt/bitcoinstrings.cpp
Outdated
@@ -194,7 +194,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Connect only to the specified node(s)"), | |||
QT_TRANSLATE_NOOP("bitcoin-core", "Connect through SOCKS5 proxy"), | |||
QT_TRANSLATE_NOOP("bitcoin-core", "Connect to a node to retrieve peer addresses, and disconnect"), | |||
QT_TRANSLATE_NOOP("bitcoin-core", "Connection options:"), | |||
QT_TRANSLATE_NOOP("bitcoin-core", "Copyright (C) 2009-%i The Bitcoin Core Developers"), | |||
QT_TRANSLATE_NOOP("bitcoin-core", "Copyright (C) 2009-%i The Zcash Developers"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bitcoin Core copyright notices can't be deleted. In this case it wouldn't matter very much because we're about to remove the QT wallet anyway, but can you remove either this change, or all the QT changes?
src/rpcblockchain.cpp
Outdated
@@ -184,7 +184,7 @@ UniValue getrawmempool(const UniValue& params, bool fHelp) | |||
"{ (json object)\n" | |||
" \"transactionid\" : { (json object)\n" | |||
" \"size\" : n, (numeric) transaction size in bytes\n" | |||
" \"fee\" : n, (numeric) transaction fee in bitcoins\n" | |||
" \"fee\" : n, (numeric) transaction fee in zec\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/zec/ZEC/
src/rpcblockchain.cpp
Outdated
" \"reqSigs\" : n, (numeric) Number of required signatures\n" | ||
" \"bestblock\" : \"hash\", (string) the block hash\n" | ||
" \"confirmations\" : n, (numeric) The number of confirmations\n" | ||
" \"value\" : x.xxx, (numeric) The transaction value in zec\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZEC (and similarly below)
src/rpcblockchain.cpp
Outdated
" \"addresses\" : [ (array of string) array of bitcoin addresses\n" | ||
" \"bitcoinaddress\" (string) bitcoin address\n" | ||
" \"addresses\" : [ (array of string) array of zcash addresses\n" | ||
" \"zcashaddress\" (string) zcash address\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zcash address
src/rpcblockchain.cpp
Outdated
" \"type\" : \"pubkeyhash\", (string) The type, eg pubkeyhash\n" | ||
" \"addresses\" : [ (array of string) array of bitcoin addresses\n" | ||
" \"bitcoinaddress\" (string) bitcoin address\n" | ||
" \"addresses\" : [ (array of string) array of zcash addresses\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zcash addresses (and similarly below)
src/rpcblockchain.cpp
Outdated
" \"asm\" : \"code\", (string) \n" | ||
" \"hex\" : \"hex\", (string) \n" | ||
" \"reqSigs\" : n, (numeric) Number of required signatures\n" | ||
" \"bestblock\" : \"hash\", (string) the block hash\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a line has four escaped quotes, the description should appear two characters further to the right than if it has only two escaped quotes (i.e. the escapes are nonprinting characters).
src/wallet/rpcwallet.cpp
Outdated
+ HelpExampleCli("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\" 0.1 \"donation\" \"seans outpost\"") | ||
+ HelpExampleCli("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\" 0.1 \"\" \"\" true") | ||
+ HelpExampleRpc("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\", 0.1, \"donation\", \"seans outpost\"") | ||
+ HelpExampleCli("sendtoaddress", "\"tb4oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1\" 0.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would start with t1.
☔ The latest upstream changes (presumably #2099) made this pull request unmergeable. Please resolve the merge conflicts. |
@daira I incorporated your comments, would love to get this merged in 1.0.8 |
Rebased on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many good changes in here, but I'd prefer that we first pull in bitcoin/bitcoin#6504 and then rebase this on top of that. We could do both in this same PR if desired. I will review more thoroughly afterwards.
src/init.cpp
Outdated
<<<<<<< HEAD | ||
======= | ||
|
||
>>>>>>> Removes out bitcoin mention in favor for zcash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh thought I got rid of this. Deleting.
Makes sense to pull in bitcoin/bitcoin#6504 first though
src/rpcmisc.cpp
Outdated
@@ -61,8 +61,8 @@ UniValue getinfo(const UniValue& params, bool fHelp) | |||
" \"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n" | |||
" \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n" | |||
" \"unlocked_until\": ttt, (numeric) 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\n" | |||
" \"paytxfee\": x.xxxx, (numeric) the transaction fee set in btc/kb\n" | |||
" \"relayfee\": x.xxxx, (numeric) minimum relay fee for non-free transactions in btc/kb\n" | |||
" \"paytxfee\": x.xxxx, (numeric) the transaction fee set in ZEC/kb\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These kinds of changes are better-handled IMHO by pulling in bitcoin/bitcoin#6504
Sounds good, we can wait on bitcoin/bitcoin#6504 then. We should also fix #2109 by making sure the help text displays zcash addresses. I'll open a separate PR for that |
Any update here? Getting a message talking about bitcoin when i run two zcashd's in regtest on the same computer (also, side note, zcashd's regtest uses the same port as bitcoin core) |
☔ The latest upstream changes (presumably #2205) made this pull request unmergeable. Please resolve the merge conflicts. |
I lost track of what this was blocking on. @str4d did that PR from upstream ever get pulled in? It would be really great to get this in 1.0.9 regardless, even if it seems like a marginal improvement for now, because it's a big improvement for usability. I'm working with the RPC interface a lot and this is a constant source of annoyance and confusion, and users keep opening new issues about it as well (#2336 filed a few days ago). Can we go ahead and merge this if I rebase again? |
@arcalinea No - it's a big conflicting PR, which is why I was holding off pulling it in until others of my 0.12 PRs were merged, but I can prioritise doing so if this is being targeted for 1.0.9. |
Bumped from 1.0.9 due to Str4d's suggested PR dependency. Note: I didn't read the full backlog, but we're already over capacity for 1.0.9 and this is lower priority. |
Bumped again. I apologize for the confusion. On Friday I was hunting for 'simple PRs' to pull into 1.0.9 to test some CI changes, and I had forgotten this was blocked on an upstream PR. |
See also #2548. |
I have opened #2564 with the upstream PR; this PR should be rebased on master once that merges. |
I've rebased (but can't push to the PR to update). What's the magic git/github incantation to achieve this? |
@bitcartel |
Bitcoin Core => Zcash bitcoin address => Zcash address bitcoinaddress => zcashaddress Closes #1756
@str4d Commits tidied up as discussed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
" \"addresses\" : [ (array of string) array of bitcoin addresses\n" | ||
" \"bitcoinaddress\" (string) bitcoin address\n" | ||
" \"addresses\" : [ (array of string) array of Zcash addresses\n" | ||
" \"zcashaddress\" (string) Zcash address\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll assume that these whitespace changes actually make the output line up.
@zkbot r+ |
📌 Commit 6de8501 has been approved by |
⌛ Testing commit 6de8501 with merge ebe0cb3e05725fc891caa13a91147f8baa5c7a8e... |
@zkbot r- |
@zkbot force |
@zkbot clean |
@zkbot r+ |
📌 Commit 6de8501 has been approved by |
Replace "Bitcoin" with "Zcash" in strings Closes #1756
Closes #1756