Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
239d958b
Commit
239d958b
authored
5 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[fix] currency-params: use same FORK_WINDOW_SIZE value as duniter
parent
fb1bf8d1
No related branches found
No related tags found
1 merge request
!166
Resolve "WS2Pv1: Intelligent request of previous blocks to fill fork tree holes"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/tools/currency-params/src/constants.rs
+1
-1
1 addition, 1 deletion
lib/tools/currency-params/src/constants.rs
lib/tools/currency-params/src/lib.rs
+2
-2
2 additions, 2 deletions
lib/tools/currency-params/src/lib.rs
with
3 additions
and
3 deletions
lib/tools/currency-params/src/constants.rs
+
1
−
1
View file @
239d958b
...
...
@@ -27,4 +27,4 @@ pub static DEFAULT_MS_PERIOD: &'static u64 = &5_259_600;
/// Default value for tx_window parameter
pub
static
DEFAULT_TX_WINDOW
:
&
'static
u64
=
&
604_800
;
/// Default maximum roolback length
pub
static
DEFAULT_FORK_WINDOW_SIZE
:
&
'static
usize
=
&
2
00
;
pub
static
DEFAULT_FORK_WINDOW_SIZE
:
&
'static
usize
=
&
1
00
;
This diff is collapsed.
Click to expand it.
lib/tools/currency-params/src/lib.rs
+
2
−
2
View file @
239d958b
...
...
@@ -132,8 +132,8 @@ impl From<(&CurrencyName, BlockV10Parameters)> for CurrencyParameters {
};
let
fork_window_size
=
match
currency_name
.0
.as_str
()
{
DEFAULT_CURRENCY
=>
*
DEFAULT_FORK_WINDOW_SIZE
,
"g1"
=>
2
00
,
"g1-test"
=>
2
00
,
"g1"
=>
1
00
,
"g1-test"
=>
1
00
,
_
=>
*
DEFAULT_FORK_WINDOW_SIZE
,
};
CurrencyParameters
{
...
...
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