Skip to content
Snippets Groups Projects
Commit 09a80c3e authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Fix blockchain parameters, for Duniter v1.0

parent 460fe7e2
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,21 @@ public class BlockchainParameters implements Serializable{
*/
private Long ud0;
/**
* Time for UD(0)
*/
private Long udTime0;
/**
* First time for reveal UD
*/
private Long udReevalTime0;
/**
* Time between two reveal UD
*/
private Long dtReeval;
/**
* Minimum delay between 2 certifications of a same issuer, in seconds. Must be positive or zero.
*/
......@@ -117,10 +132,6 @@ public class BlockchainParameters implements Serializable{
*/
private Integer dtDiffEval;
/**
* The number of previous blocks to check for personalized difficulty
*/
private Integer blocksRot;
/**
* The percent of previous issuers to reach for personalized difficulty
......@@ -151,6 +162,14 @@ public class BlockchainParameters implements Serializable{
this.dt = dt;
}
public Long getUdTime0() {
return udTime0;
}
public void setUdTime0(Long udTime0) {
this.udTime0 = udTime0;
}
public Long getUd0() {
return ud0;
}
......@@ -159,6 +178,22 @@ public class BlockchainParameters implements Serializable{
this.ud0 = ud0;
}
public Long getUdReevalTime0() {
return udReevalTime0;
}
public void setUdReevalTime0(Long udReevalTime0) {
this.udReevalTime0 = udReevalTime0;
}
public Long getDtReeval() {
return dtReeval;
}
public void setDtReeval(Long dtReeval) {
this.dtReeval = dtReeval;
}
public Integer getSigValidity() {
return sigValidity;
}
......@@ -216,14 +251,6 @@ public class BlockchainParameters implements Serializable{
this.dtDiffEval = dtDiffEval;
}
public Integer getBlocksRot() {
return blocksRot;
}
public void setBlocksRot(Integer blocksRot) {
this.blocksRot = blocksRot;
}
public Double getPercentRot() {
return percentRot;
}
......@@ -300,7 +327,9 @@ public class BlockchainParameters implements Serializable{
.append("\nmedianTimeBlocks=").append(medianTimeBlocks)
.append("\navgGenTime=").append(avgGenTime)
.append("\ndtDiffEval=").append(dtDiffEval)
.append("\nblocksRot=").append(blocksRot)
.append("\nudTime0=").append(udTime0)
.append("\nudReevalTime0=").append(udReevalTime0)
.append("\ndtReeval=").append(dtReeval)
.append("\npercentRot=").append(percentRot)
.toString();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment