Bitcoin Forum
April 19, 2019, 07:43:04 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [PATCH REQUEST] Variable ports (205BTC reward)  (Read 10077 times)
mizerydearia
Hero Member
*****
Offline Offline

Activity: 574
Merit: 504



View Profile
September 22, 2010, 12:11:18 AM
 #21

no reason to change that, as other clients only try to connect to 8333, afaict. IRC only advertises IP, right?

No, both IP and port are encoded in the #bitcoin IRC usernames (see the EncodeAddress/DecodeAddress routines in irc.cpp).

(so mizerydearia:  no need to do what you done did...)

Mm...  On a slightly unrelated issue.  Since it is possible to detect majority of all nodes in the p2p network by visiting the bootstrapping irc channel, it seems fairly easy to determine where exactly all the nodes are in case any attempt to disconnect Internet or seize hardwares ever occurs.  Perhaps another thread should be used to discuss this.
1555702984
Hero Member
*
Offline Offline

Posts: 1555702984

View Profile Personal Message (Offline)

Ignore
1555702984
Reply with quote  #2

1555702984
Report to moderator
1555702984
Hero Member
*
Offline Offline

Posts: 1555702984

View Profile Personal Message (Offline)

Ignore
1555702984
Reply with quote  #2

1555702984
Report to moderator
1555702984
Hero Member
*
Offline Offline

Posts: 1555702984

View Profile Personal Message (Offline)

Ignore
1555702984
Reply with quote  #2

1555702984
Report to moderator
There are several different types of Bitcoin clients. Server-assisted clients like blockchain.info rely on centralized servers to do their network verification for them. Although the server can't steal the client's bitcoins directly, it can easily execute double-spending-style attacks against the client.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1555702984
Hero Member
*
Offline Offline

Posts: 1555702984

View Profile Personal Message (Offline)

Ignore
1555702984
Reply with quote  #2

1555702984
Report to moderator
1555702984
Hero Member
*
Offline Offline

Posts: 1555702984

View Profile Personal Message (Offline)

Ignore
1555702984
Reply with quote  #2

1555702984
Report to moderator
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1554
Merit: 1005


View Profile
September 29, 2010, 05:31:55 PM
 #22

Patch updated for latest SVN.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
mizerydearia
Hero Member
*****
Offline Offline

Activity: 574
Merit: 504



View Profile
September 29, 2010, 05:35:18 PM
 #23

original post edited to include link to patch.
mizerydearia
Hero Member
*****
Offline Offline

Activity: 574
Merit: 504



View Profile
December 24, 2010, 12:11:45 PM
 #24

This patch doesn't work anymore.  Is this still necessary or has it made it into official svn?
wumpus
Hero Member
*****
qt
Offline Offline

Activity: 812
Merit: 1000

No Maps for These Territories


View Profile
December 24, 2010, 01:21:54 PM
 #25

This patch doesn't work anymore.  Is this still necessary or has it made it into official svn?
Nope, it's not in official SVN yet.

On a related note: from discussion on IRC I understood that the peer exchange protocol somehow doesn't have support for alternative ports. Does this patch work as advertised at all?

Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 3360
Merit: 5237


View Profile
December 24, 2010, 08:49:20 PM
 #26

On a related note: from discussion on IRC I understood that the peer exchange protocol somehow doesn't have support for alternative ports. Does this patch work as advertised at all?

The protocol supports alternative ports just fine, though you won't receive incoming connections because Bitcoin prefers not to connect to peers that are using non-standard ports.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
dsg
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
December 26, 2010, 12:09:36 AM
 #27

On a related note: from discussion on IRC I understood that the peer exchange protocol somehow doesn't have support for alternative ports. Does this patch work as advertised at all?

The protocol supports alternative ports just fine, though you won't receive incoming connections because Bitcoin prefers not to connect to peers that are using non-standard ports.

Interesting, is this by design or a bug?

I think it will be imperative for bitcoin to randomise port and use encryption, in order to avoid being blocked by firewalls or DPI boxes. Hopefully this will be implemented before it's needed.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 3360
Merit: 5237


View Profile
December 26, 2010, 12:17:06 AM
 #28

Interesting, is this by design or a bug?

It's by design. Here is Bitcoin choosing which peers to connect to:
Code:
// Randomize the order in a deterministic way, putting the standard port first
int64 nRandomizer = (uint64)(nStart * 4951 + addr.nLastTry * 9567851 + addr.ip * 7789) % (2 * 60 * 60);
if (addr.port != GetDefaultPort())
    nRandomizer += 2 * 60 * 60;

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!