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
!78
[ref] databases : use generic backend everywhere
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[ref] databases : use generic backend everywhere
dal_dbs_generic_backend
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
29
Merged
Éloïs
requested to merge
dal_dbs_generic_backend
into
dev
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
29
Expand
0
0
Merge request reports
Compare
dev
version 1
e3ee2683
6 years ago
dev (base)
and
latest version
latest version
04fc8059
1 commit,
6 years ago
version 1
e3ee2683
1 commit,
6 years ago
29 files
+
291
−
293
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
29
Search (e.g. *.vue) (Ctrl+P)
blockchain/apply_valid_block.rs
+
2
−
4
Options
@@ -24,9 +24,7 @@ use duniter_documents::blockchain::Document;
use
duniter_documents
::
BlockId
;
use
duniter_wotb
::
data
::{
NewLinkResult
,
RemLinkResult
};
use
duniter_wotb
::{
NodeId
,
WebOfTrust
};
use
rustbreak
::
backend
::
Backend
;
use
std
::
collections
::{
HashMap
,
HashSet
};
use
std
::
fmt
::
Debug
;
#[derive(Debug)]
/// Stores all queries to apply in database to "apply" the block
@@ -43,10 +41,10 @@ pub enum ApplyValidBlockError {
RevokeUnknowNodeId
(),
}
pub
fn
apply_valid_block
<
W
:
WebOfTrust
,
B
:
Backend
+
Debug
>
(
pub
fn
apply_valid_block
<
W
:
WebOfTrust
>
(
block
:
&
BlockDocument
,
wot_index
:
&
mut
HashMap
<
PubKey
,
NodeId
>
,
wot_db
:
&
BinDB
<
W
,
B
>
,
wot_db
:
&
BinDB
<
W
>
,
expire_certs
:
&
HashMap
<
(
NodeId
,
NodeId
),
BlockId
>
,
old_fork_id
:
Option
<
ForkId
>
,
)
->
Result
<
ValidBlockApplyReqs
,
ApplyValidBlockError
>
{
Loading