Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented May 12, 2016

Re-work of #7841 by @dragongem45.
Closes #7771.

laanwj added 2 commits May 12, 2016 14:12
Add a fRelayTxes to keep track of the relay transaction flag
we send to other peers.
@laanwj laanwj changed the title Expose information on whether transaction relayed is enabled in getnetwork Expose information on whether transaction relay is enabled in getnetwork May 12, 2016
" \"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"
Copy link
Member

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"?

Copy link
Member Author

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.

Copy link
Member

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 ;)

@maflcko
Copy link
Member

maflcko commented May 12, 2016

utACK 1ab1dc3

1 similar comment
@dcousens
Copy link
Contributor

utACK 1ab1dc3

@gmaxwell
Copy link
Contributor

utACK

@sipa
Copy link
Member

sipa commented May 26, 2016

utACK 1ab1dc3

@sipa sipa merged commit 1ab1dc3 into bitcoin:master May 26, 2016
sipa added a commit that referenced this pull request May 26, 2016
…ed in `getnetwork`

1ab1dc3 rpc: Add `relaytxes` flag to `getnetworkinfo` (Wladimir J. van der Laan)
581ddff net: Add fRelayTxes flag (Wladimir J. van der Laan)
fListen = GetBoolArg("-listen", DEFAULT_LISTEN);
fDiscover = GetBoolArg("-discover", true);
fNameLookup = GetBoolArg("-dns", DEFAULT_NAME_LOOKUP);
fRelayTxes = !GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY);
Copy link
Contributor

@rebroad rebroad Sep 23, 2016

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"?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose information on whether transaction relayed is enabled in getnetworkinfo

6 participants