emarkproject / eMark

https://deutsche-emark.org
MIT License
24 stars 36 forks source link

No new connections when port 4555 is closed, only IPs from incoming connections in peers.dat [2 bugs] #82

Open Hui-DE opened 1 year ago

Hui-DE commented 1 year ago

If the port is closed, you won't get any new connections, no matter how long the wallet is running (even if you have previously established an active connection with "addnode"). Actually, IPs should be added that in turn have the port open, which allows outgoing connections.

Only incoming connections are added, which is of course only possible when the port is open. When you close the wallet and restart it, you have more outgoing connections than before, because some of the (previously) incoming connections become outgoing connections if the IPs do not block the port

Another bug is that only the IPs of the incoming connections are stored in the peers.dat and thus reused. If you have closed your port 4555, an eMark.conf with addnode commands is required, otherwise you would have to do a console command after every restart.


[GERMAN] Ist der Port geschlossen, bekommt man keine neuen Verbindungen, egal wie lange das Wallet läuft (auch dann nicht, wenn man vorher mit "addnode" eine aktive Verbindung hergestellt hat). Es müssten eigentlich IPs hinzukommen, die ihrerseits den Port offen haben, was ausgehende Verbindungen ermöglichen würde.

Es werden ausschließlich eingehende Verbindungen hinzugefügt, was natürlich nur bei offenem Port möglich ist. Erst man das Wallet schließt und neustartet, hat man mehr ausgehende Verbindungen als vorher, da einige der (vorher) eingehenden Verbindungen zu ausgehenden Verbindungen werden, wenn die betreffenden IPs den Port nicht blocken.

Ein weiterer Bug ist, dass nur die IPs der eingehenden Verbindungen in der peers.dat gespeichert werden und somit wiederverwendet werden. Hat man seinen Port 4555 geschlossen, ist eine eMark.conf mit addnode-Angaben erforderlich, sonst müsste man nach jedem Neustart einen Konsolenbefehl machen.