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
10c4747a
Commit
10c4747a
authored
6 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[ref] blockchain-dal: log dbs save
parent
f3e24ef1
No related branches found
No related tags found
1 merge request
!109
Resolve "Fork resolution algorithm"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/blockchain/blockchain-dal/src/lib.rs
+4
-0
4 additions, 0 deletions
lib/modules/blockchain/blockchain-dal/src/lib.rs
with
4 additions
and
0 deletions
lib/modules/blockchain/blockchain-dal/src/lib.rs
+
4
−
0
View file @
10c4747a
...
...
@@ -174,6 +174,7 @@ impl BlocksV10DBs {
}
/// Save blocks databases in their respective files
pub
fn
save_dbs
(
&
self
)
{
info!
(
"BLOCKCHAIN-DAL: Save LocalBlockchainV10DB."
);
self
.blockchain_db
.save
()
.expect
(
"Fatal error : fail to save LocalBlockchainV10DB !"
);
...
...
@@ -205,6 +206,7 @@ impl ForksDBs {
}
/// Save fork databases in their respective files
pub
fn
save_dbs
(
&
self
)
{
info!
(
"BLOCKCHAIN-DAL: Save ForksDBs."
);
self
.fork_tree_db
.save
()
.expect
(
"Fatal error : fail to save ForksTreeV10Datas !"
);
...
...
@@ -244,6 +246,7 @@ impl WotsV10DBs {
}
/// Save wot databases from their respective files
pub
fn
save_dbs
(
&
self
)
{
info!
(
"BLOCKCHAIN-DAL: Save WotsV10DBs."
);
self
.wot_db
.save
()
.expect
(
"Fatal error : fail to save WotDB !"
);
...
...
@@ -292,6 +295,7 @@ impl CurrencyV10DBs {
/// Save currency databases in their respective files
pub
fn
save_dbs
(
&
self
,
tx
:
bool
,
du
:
bool
)
{
if
tx
{
info!
(
"BLOCKCHAIN-DAL: Save CurrencyV10DBs."
);
self
.tx_db
.save
()
.expect
(
"Fatal error : fail to save LocalBlockchainV10DB !"
);
...
...
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