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
Merge requests
!183
Resolve "Documents: add versioning"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Documents: add versioning"
elois/158-documents-add-versioning
into
dev
Overview
0
Commits
7
Pipelines
0
Changes
68
Merged
Éloïs
requested to merge
elois/158-documents-add-versioning
into
dev
5 years ago
Overview
0
Commits
7
Pipelines
0
Changes
68
Expand
Closes
#158 (closed)
Edited
5 years ago
by
Éloïs
0
0
Merge request reports
Compare
dev
version 4
0de967a4
5 years ago
version 3
b01c37d8
5 years ago
version 2
3df4bef8
5 years ago
version 1
71d397cf
5 years ago
dev (base)
and
latest version
latest version
6fa2b11d
7 commits,
5 years ago
version 4
0de967a4
3 commits,
5 years ago
version 3
b01c37d8
2 commits,
5 years ago
version 2
3df4bef8
2 commits,
5 years ago
version 1
71d397cf
1 commit,
5 years ago
68 files
+
3637
−
2679
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
68
Search (e.g. *.vue) (Ctrl+P)
lib/core/message/src/events.rs
+
5
−
5
Options
@@ -15,7 +15,7 @@
use
crate
::
*
;
use
dubp_documents
::
documents
::
block
::
BlockDocument
;
use
dubp_documents
::
documents
::
DUBP
Document
;
use
dubp_documents
::
documents
::
User
Document
DUBP
;
use
dubp_documents
::
Blockstamp
;
use
durs_network
::
events
::
NetworkEvent
;
@@ -31,7 +31,7 @@ pub enum DursEvent {
/// Network event
NetworkEvent
(
NetworkEvent
),
/// Client API event
ReceiveValidDocsFromClient
(
Vec
<
DUBP
Document
>
),
ReceiveValidDocsFromClient
(
Vec
<
User
Document
DUBP
>
),
}
#[derive(Debug,
Clone)]
@@ -40,7 +40,7 @@ pub enum MemPoolEvent {
/// FindNextBlock (local node find next block)
FindNextBlock
(
Box
<
BlockDocument
>
),
/// Store new Blockhain Document in Pool
StoreNewDocInPool
(
Box
<
DUBP
Document
>
),
StoreNewDocInPool
(
Box
<
User
Document
DUBP
>
),
}
#[derive(Debug,
Clone)]
@@ -53,9 +53,9 @@ pub enum BlockchainEvent {
/// Revert blocks in local blockchain
RevertBlocks
(
Vec
<
BlockDocument
>
),
/// Receive new valid pending document
NewValidPendingDoc
(
DUBP
Document
),
NewValidPendingDoc
(
User
Document
DUBP
),
/// Receive new refused pending document
RefusedPendingDoc
(
DUBP
Document
),
RefusedPendingDoc
(
User
Document
DUBP
),
/// Receive new refused pending block
RefusedBlock
(
Blockstamp
),
}
Loading