Skip to content

Add network node whitelisting based on jgarzik's previous pull req.#3584

Closed
TheBlueMatt wants to merge 1 commit intobitcoin:masterfrom
TheBlueMatt:whitelist
Closed

Add network node whitelisting based on jgarzik's previous pull req.#3584
TheBlueMatt wants to merge 1 commit intobitcoin:masterfrom
TheBlueMatt:whitelist

Conversation

@TheBlueMatt
Copy link
Contributor

This takes jgarzik's previous pullreq (#3403) and rejiggers a few things so that you can now add IP:0 to allow any port and so that banned nodes can make incoming connections as well. Also fixes an off-by-one in the param count for the listwhite RPC.

This takes jgarzik's previous pullreq and rejiggers a few things so
that you can now add IP:0 to allow any port and so that banned nodes
can make incoming connections as well. Also fixes an off-by-one in
the param count for the listwhite RPC.
@sipa
Copy link
Member

sipa commented Jan 25, 2014

Would it make sense to add fWhiteListed to CNode, set at first connection, and then checked later when necessary?

@sipa
Copy link
Member

sipa commented Jan 25, 2014

I think we should also make transactions received on whitelisted connections always propagate, even if we already had them. This is so that rebroadcasts of wallet transactions behind "us" do not get shielded.

@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/f9463ded6872e86748819d0e4f7e8330e0257a72 for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

@TheBlueMatt
Copy link
Contributor Author

Don't CNodes get deleted after disconnection?

Yes, bitcoind could be forced to relay everything it receives from a whitelisted node, but I don't have time to implement it (I just needed this for another project) :).

@rebroad
Copy link
Contributor

rebroad commented Feb 22, 2014

Slightly OT, but what about adding a trusted nodes option so that blocks/transactions from these nodes don't need to be checked before being accepted? Or would it be better to use a node-based signature for this instead of relying on IP addresses?

@laanwj
Copy link
Member

laanwj commented Jun 21, 2014

Closing in favor of #4378

@laanwj laanwj closed this Jun 21, 2014
@rebroad
Copy link
Contributor

rebroad commented Jul 5, 2014

@laanwj I think you meant #4378

@laanwj
Copy link
Member

laanwj commented Jul 5, 2014

Yes, comment updated

@sipa
Copy link
Member

sipa commented Jul 5, 2014

I think you meant #4378.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants