-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Expose information on whether transaction relay is enabled in getnetwork
#8049
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
Conversation
Add a fRelayTxes to keep track of the relay transaction flag we send to other peers.
Re-work of PR bitcoin#7841 by dragongem45. Closes bitcoin#7771.
getnetworkgetnetwork
| " \"subversion\": \"/Satoshi:x.x.x/\", (string) the server subversion string\n" | ||
| " \"protocolversion\": xxxxx, (numeric) the protocol version\n" | ||
| " \"localservices\": \"xxxxxxxxxxxxxxxx\", (string) the services we offer to the network\n" | ||
| " \"localrelay\": true|false, (bool) true if transaction relay is requested from peers\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.
What does "transaction relay is requested from peers" mean? Shouldn't this say "true if transaction relay is enabled locally"?
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.
Possibly - What the flag is used for is to specify in the version message whether we want to receive transactions (so whether transactions should be relayed to us), as well as in the network code whether we accept transactions. That we don't relay transactions is also true, but follows from that.
Maybe the naming is confusing, but I don't know a better one either.
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.
Maybe "true if we do not want to send or receive transactions"? But consider it a nit, I am not a native speaker ;)
|
utACK 1ab1dc3 |
1 similar comment
|
utACK 1ab1dc3 |
|
utACK |
|
utACK 1ab1dc3 |
| fListen = GetBoolArg("-listen", DEFAULT_LISTEN); | ||
| fDiscover = GetBoolArg("-discover", true); | ||
| fNameLookup = GetBoolArg("-dns", DEFAULT_NAME_LOOKUP); | ||
| fRelayTxes = !GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY); |
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.
nit: why the "e" between the "x" and "s"?
Re-work of #7841 by @dragongem45.
Closes #7771.