Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geb789 committed Nov 14, 2019
1 parent 299dede commit fbdc5de
Show file tree
Hide file tree
Showing 13 changed files with 670 additions and 1,024 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.rocksdb.Statistics;
import org.rocksdb.WriteBatch;
import org.rocksdb.WriteOptions;
import org.tron.common.setting.RocksDbSettings;
import org.tron.common.storage.WriteOptionsWrapper;
import org.tron.common.utils.FileUtil;
import org.tron.common.utils.PropUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.apache.commons.lang3.StringUtils;
import org.iq80.leveldb.CompressionType;
import org.iq80.leveldb.Options;
import org.tron.common.storage.rocksdb.RocksDbSettings;
import org.tron.common.setting.RocksDbSettings;
import org.tron.core.config.args.GenesisBlock;

public class DBConfig {
Expand Down
2 changes: 2 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ dependencies {
compile "com.cedarsoftware:java-util:1.8.0"
compile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.1.1'
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
compile group: 'com.beust', name: 'jcommander', version: '1.72'
compile group: 'com.typesafe', name: 'config', version: '1.3.2'
compile project(":protocol")
}
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;
Expand Down
13 changes: 13 additions & 0 deletions common/src/main/java/org/tron/common/option/KademliaOptions.java
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
}
Loading

0 comments on commit fbdc5de

Please sign in to comment.