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
530bd7e3
Commit
530bd7e3
authored
6 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[fix] core: identities response must return IdentityDocument vector
parent
4e902403
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/core/message/responses.rs
+1
-1
1 addition, 1 deletion
lib/core/message/responses.rs
lib/modules/blockchain/blockchain/src/requests/received.rs
+5
-1
5 additions, 1 deletion
lib/modules/blockchain/blockchain/src/requests/received.rs
with
6 additions
and
2 deletions
lib/core/message/responses.rs
+
1
−
1
View file @
530bd7e3
...
@@ -69,7 +69,7 @@ pub enum BlockchainResponse {
...
@@ -69,7 +69,7 @@ pub enum BlockchainResponse {
/// Usernames corresponding to the public keys in parameter
/// Usernames corresponding to the public keys in parameter
UIDs
(
ModuleReqId
,
HashMap
<
PubKey
,
Option
<
String
>>
),
UIDs
(
ModuleReqId
,
HashMap
<
PubKey
,
Option
<
String
>>
),
/// Identities
/// Identities
Identities
(
ModuleReqId
,
Vec
<
DAL
Identity
>
),
Identities
(
ModuleReqId
,
Vec
<
Identity
Document
>
),
}
}
#[derive(Debug,
Clone)]
#[derive(Debug,
Clone)]
...
...
This diff is collapsed.
Click to expand it.
lib/modules/blockchain/blockchain/src/requests/received.rs
+
5
−
1
View file @
530bd7e3
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
//! Sub-module managing the inter-modules requests received.
//! Sub-module managing the inter-modules requests received.
use
crate
::
*
;
use
crate
::
*
;
use
dubp_documents
::
documents
::
identity
::
IdentityDocument
;
use
duniter_module
::
*
;
use
duniter_module
::
*
;
use
durs_message
::
requests
::
*
;
use
durs_message
::
requests
::
*
;
...
@@ -90,7 +91,10 @@ pub fn receive_req(
...
@@ -90,7 +91,10 @@ pub fn receive_req(
filters
,
filters
,
bc
.current_blockstamp.id
,
bc
.current_blockstamp.id
,
)
)
.expect
(
"Fatal error : get_identities: Fail to read IdentitiesDB !"
);
.expect
(
"Fatal error : get_identities: Fail to read IdentitiesDB !"
)
.into_iter
()
.map
(|
dal_idty
|
dal_idty
.idty_doc
)
.collect
::
<
Vec
<
IdentityDocument
>>
();
responses
::
sent
::
send_req_response
(
responses
::
sent
::
send_req_response
(
bc
,
bc
,
req_from
,
req_from
,
...
...
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