Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Truite
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
EcoMobiCoin
Truite
Commits
d1811001
Commit
d1811001
authored
1 year ago
by
Jerome DESCHAMPS
Browse files
Options
Downloads
Patches
Plain Diff
Correcter VDF time for a day
parent
8353ffa2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!102
Resolve "Remove VDF circuit-breaker"
Pipeline
#6344
passed
1 year ago
Stage: lint
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/consensus/pob/vdf.rs
+1
-1
1 addition, 1 deletion
src/consensus/pob/vdf.rs
with
1 addition
and
1 deletion
src/consensus/pob/vdf.rs
+
1
−
1
View file @
d1811001
...
...
@@ -11,7 +11,7 @@ const INT_SIZE_BITS: u16 = 2048;
// vdf-0.1.0/src/proof_wesolowski.rs:271:5
// const MAXIMUM_ITERATIONS: u64 = (1u64 << 53) - 1;
const
MAXIMUM_ITERATIONS
:
u64
=
8
_0
00_000_000
;
//approximately one day
const
MAXIMUM_ITERATIONS
:
u64
=
800_000_000
;
//approximately one day
/// Compute the delay parameter in seconds of a VDF to run
pub
fn
compute_vdf_difficulty
(
network_difficulty
:
u64
,
hash
:
H256
,
quantity
:
U256
)
->
u64
{
...
...
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