Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
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
Monitor
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
nodes
rust
Duniter v2S
Merge requests
!43
Params
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Params
params
into
master
Overview
0
Commits
5
Pipelines
0
Changes
5
Merged
Éloïs
requested to merge
params
into
master
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Viewing commit
575a28d1
Prev
Next
Show latest version
5 files
+
9
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
575a28d1
fix: ensure storage deposits are consistent
· 575a28d1
Éloïs
authored
2 years ago
runtime/common/src/constants.rs
+
5
−
2
Options
@@ -57,7 +57,10 @@ pub const BABE_GENESIS_EPOCH_CONFIG: sp_consensus_babe::BabeEpochConfiguration =
allowed_slots
:
sp_consensus_babe
::
AllowedSlots
::
PrimaryAndSecondaryVRFSlots
,
};
// 1 unit per item + 1 cent per byte
pub
const
DEPOSIT_PER_BYTE
:
Balance
=
1
;
pub
const
DEPOSIT_PER_ITEM
:
Balance
=
100
;
// Compute storage deposit per items and bytes
pub
const
fn
deposit
(
items
:
u32
,
bytes
:
u32
)
->
Balance
{
items
as
Balance
*
100
+
(
bytes
as
Balance
)
items
as
Balance
*
DEPOSIT_PER_ITEM
+
(
bytes
as
Balance
*
DEPOSIT_PER_BYTE
)
}
Loading