Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter4j
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
java
duniter4j
Commits
09a80c3e
Commit
09a80c3e
authored
8 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
Fix blockchain parameters, for Duniter v1.0
parent
460fe7e2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniter4j-core-client/src/main/java/org/duniter/core/client/model/bma/BlockchainParameters.java
+42
-13
42 additions, 13 deletions
...g/duniter/core/client/model/bma/BlockchainParameters.java
with
42 additions
and
13 deletions
duniter4j-core-client/src/main/java/org/duniter/core/client/model/bma/BlockchainParameters.java
+
42
−
13
View file @
09a80c3e
...
...
@@ -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
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment