forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
670 additions
and
1,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...g/tron/core/db/backup/DbBackupConfig.java → ...rg/tron/common/config/DbBackupConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.tron.core.db.backup; | ||
package org.tron.common.config; | ||
|
||
import java.io.File; | ||
import lombok.Getter; | ||
|
13 changes: 13 additions & 0 deletions
13
common/src/main/java/org/tron/common/option/KademliaOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.tron.common.option; | ||
|
||
public class KademliaOptions { | ||
|
||
public static final int NODE_ID_LEN = 64; | ||
public static final int BUCKET_SIZE = 16; | ||
public static final int ALPHA = 3; | ||
public static final int BINS = 256; | ||
public static final int MAX_STEPS = 8; | ||
|
||
public static final long BUCKET_REFRESH = 7200; //bucket refreshing interval in millis | ||
public static final long DISCOVER_CYCLE = 30; //discovery cycle interval in seconds | ||
} |
Oops, something went wrong.