tronprotocol / java-tron

Java implementation of the Tron whitepaper
GNU Lesser General Public License v3.0
3.74k stars 1.41k forks source link

Does Tron network save discovered nodes locally for a long time? #5972

Closed TayC710 closed 2 months ago

TayC710 commented 2 months ago

I want to know if the tron network has a mechanism for storing nodes discovered during the node discovery process for a long time, just like Bitcoin, where these discovered nodes are saved locally. Even if the Bitcoin network restarts, these discovered nodes will not disappear.

endiaoekoe commented 2 months ago

I want to know if the tron network has a mechanism for storing nodes discovered during the node discovery process for a long time, just like Bitcoin, where these discovered nodes are saved locally. Even if the Bitcoin network restarts, these discovered nodes will not disappear.

@TayC710 per my understanding to java-tron node discovery mechanism. except for the seed nodes confined in the config file . the node-find mechanism will keep trying to connect to new peers in order to maintain enough connections. The results of node discovery will be stored temporarily for establishing new connections. which means the nodes found through the node discovery mechanism will be dynamically stored tempporarily and will not be permanently stored.

11111961abc commented 2 months ago

Нет не исчезнут

пн, 26 авг. 2024 г., 08:20 TayC710 @.***>:

I want to know if the tron network has a mechanism for storing nodes discovered during the node discovery process for a long time, just like Bitcoin, where these discovered nodes are saved locally. Even if the Bitcoin network restarts, these discovered nodes will not disappear.

— Reply to this email directly, view it on GitHub https://github.com/tronprotocol/java-tron/issues/5972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYMFE6VNZ2XFXZFZQHNXBDLZTKGF7AVCNFSM6AAAAABNDDFHVOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DKNZQGEZDIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

abn2357 commented 2 months ago

I want to know if the tron network has a mechanism for storing nodes discovered during the node discovery process for a long time, just like Bitcoin, where these discovered nodes are saved locally. Even if the Bitcoin network restarts, these discovered nodes will not disappear.

@TayC710 per my understanding to java-tron node discovery mechanism. except for the seed nodes confined in the config file . the node-find mechanism will keep trying to connect to new peers in order to maintain enough connections. The results of node discovery will be stored temporarily for establishing new connections. which means the nodes found through the node discovery mechanism will be dynamically stored tempporarily and will not be permanently stored.

@endiaoekoe How many seed nodes do Java Tron have now?

endiaoekoe commented 2 months ago

How many seed nodes do Java Tron have now?

hi, @TayC710 you can find the current seeds nodes configed in java-tron in main_net_config . and for more details descriptions,check it here

abn2357 commented 2 months ago

How many seed nodes do Java Tron have now?

hi, @TayC710 you can find the current seeds nodes configed in java-tron in main_net_config . and for more details descriptions,check it here

@endiaoekoe In the ref doc, seed node means stable online mainnet full node, So what is the definition of stable?

endiaoekoe commented 2 months ago

So what is the definition of stable?

in my opinion, "stable node " means it's available 24/7 and you can rely on it and communicate with it as much as possible (synchronize blocks/transactions, etc.)

abn2357 commented 2 months ago

So what is the definition of stable?

in my opinion, "stable node " means it's available 24/7 and you can rely on it and communicate with it as much as possible (synchronize blocks/transactions, etc.)

what is the minimum number of seed modes does Tron need?

endiaoekoe commented 2 months ago

what is the minimum number of seed modes does Tron need?

I think there are no limits for seed nodes amount; but it is recommended to config multiple seed nodes to accelerate the node discovery process; on the other hand,insufficient number of seed nodes may result in slower node discovery .

vivian1912 commented 2 months ago

@TayC710 May I ask if the above answer your question? This issue will be closed as no update for a long time. Please feel free to re-open it if you still see the issue, thanks.