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
GitLab 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
ab39d740
Commit
ab39d740
authored
7 years ago
by
Éloïs
Committed by
Éloïs
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[fix] passBlockDocument fields in public
parent
4bca71ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
documents/blockchain/v10/documents/block.rs
+29
-29
29 additions, 29 deletions
documents/blockchain/v10/documents/block.rs
with
29 additions
and
29 deletions
documents/blockchain/v10/documents/block.rs
+
29
−
29
View file @
ab39d740
...
@@ -81,64 +81,64 @@ pub struct BlockParameters {
...
@@ -81,64 +81,64 @@ pub struct BlockParameters {
#[derive(Debug,
Clone)]
#[derive(Debug,
Clone)]
pub
struct
BlockDocument
{
pub
struct
BlockDocument
{
/// Nonce
/// Nonce
nonce
:
u64
,
pub
nonce
:
u64
,
/// number
/// number
number
:
BlockId
,
pub
number
:
BlockId
,
/// Minimal proof of work difficulty
/// Minimal proof of work difficulty
pow_min
:
usize
,
pub
pow_min
:
usize
,
/// Local time of the block issuer
/// Local time of the block issuer
time
:
u64
,
pub
time
:
u64
,
/// Average time
/// Average time
median_time
:
u64
,
pub
median_time
:
u64
,
/// Members count
/// Members count
members_count
:
usize
,
pub
members_count
:
usize
,
/// Monetary mass
/// Monetary mass
monetary_mass
:
usize
,
pub
monetary_mass
:
usize
,
/// Unit base (power of ten)
/// Unit base (power of ten)
unit_base
:
usize
,
pub
unit_base
:
usize
,
/// Number of compute members in the current frame
/// Number of compute members in the current frame
issuers_count
:
usize
,
pub
issuers_count
:
usize
,
/// Current frame size (in blocks)
/// Current frame size (in blocks)
issuers_frame
:
isize
,
pub
issuers_frame
:
isize
,
/// Current frame variation buffer
/// Current frame variation buffer
issuers_frame_var
:
isize
,
pub
issuers_frame_var
:
isize
,
/// Currency.
/// Currency.
currency
:
String
,
pub
currency
:
String
,
/// Document issuer (there should be only one).
/// Document issuer (there should be only one).
issuers
:
Vec
<
ed25519
::
PublicKey
>
,
pub
issuers
:
Vec
<
ed25519
::
PublicKey
>
,
/// Document signature (there should be only one).
/// Document signature (there should be only one).
/// This vector is empty, when the block is generated but the proof of work has not yet started
/// This vector is empty, when the block is generated but the proof of work has not yet started
signatures
:
Vec
<
ed25519
::
Signature
>
,
pub
signatures
:
Vec
<
ed25519
::
Signature
>
,
/// The hash is None, when the block is generated but the proof of work has not yet started
/// The hash is None, when the block is generated but the proof of work has not yet started
hash
:
Option
<
BlockHash
>
,
pub
hash
:
Option
<
BlockHash
>
,
/// Currency parameters (only in genesis block)
/// Currency parameters (only in genesis block)
parameters
:
Option
<
BlockParameters
>
,
pub
parameters
:
Option
<
BlockParameters
>
,
/// Hash of the previous block
/// Hash of the previous block
previous_hash
:
Option
<
Hash
>
,
pub
previous_hash
:
Option
<
Hash
>
,
/// Issuer of the previous block
/// Issuer of the previous block
previous_issuer
:
Option
<
ed25519
::
PublicKey
>
,
pub
previous_issuer
:
Option
<
ed25519
::
PublicKey
>
,
/// Hash of the deterministic content of the block
/// Hash of the deterministic content of the block
inner_hash
:
Option
<
Hash
>
,
pub
inner_hash
:
Option
<
Hash
>
,
/// Amount of new dividend created at this block, None if no dividend is created at this block
/// Amount of new dividend created at this block, None if no dividend is created at this block
dividend
:
Option
<
usize
>
,
pub
dividend
:
Option
<
usize
>
,
/// Identities
/// Identities
identities
:
Vec
<
IdentityDocument
>
,
pub
identities
:
Vec
<
IdentityDocument
>
,
/// joiners
/// joiners
joiners
:
Vec
<
MembershipDocument
>
,
pub
joiners
:
Vec
<
MembershipDocument
>
,
/// Actives (=renewals)
/// Actives (=renewals)
actives
:
Vec
<
MembershipDocument
>
,
pub
actives
:
Vec
<
MembershipDocument
>
,
/// Leavers
/// Leavers
leavers
:
Vec
<
MembershipDocument
>
,
pub
leavers
:
Vec
<
MembershipDocument
>
,
/// Revokeds
/// Revokeds
revoked
:
Vec
<
RevocationDocument
>
,
pub
revoked
:
Vec
<
RevocationDocument
>
,
/// Excludeds
/// Excludeds
excluded
:
Vec
<
ed25519
::
PublicKey
>
,
pub
excluded
:
Vec
<
ed25519
::
PublicKey
>
,
/// Certifications
/// Certifications
certifications
:
Vec
<
CertificationDocument
>
,
pub
certifications
:
Vec
<
CertificationDocument
>
,
/// Transactions
/// Transactions
transactions
:
Vec
<
TransactionDocument
>
,
pub
transactions
:
Vec
<
TransactionDocument
>
,
/// Part to sign
/// Part to sign
inner_hash_and_nonce_str
:
String
,
pub
inner_hash_and_nonce_str
:
String
,
}
}
impl
BlockDocument
{
impl
BlockDocument
{
...
...
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