Skip to content
Snippets Groups Projects
Commit 84cabf71 authored by Éloïs's avatar Éloïs
Browse files

[fix] blockchain: apply: allow to remove a cert already removed

parent 33e37440
No related branches found
No related tags found
1 merge request!144Elois/fix gt sync
......@@ -24,7 +24,7 @@ use durs_blockchain_dal::entities::sources::SourceAmount;
use durs_blockchain_dal::writers::requests::*;
use durs_blockchain_dal::BinDB;
use durs_common_tools::fatal_error;
use durs_wot::data::{NewLinkResult, RemLinkResult};
use durs_wot::data::NewLinkResult;
use durs_wot::{NodeId, WebOfTrust};
use std::collections::{HashMap, HashSet};
......@@ -186,16 +186,7 @@ pub fn apply_valid_block<W: WebOfTrust>(
}
wot_db
.write(|db| {
let result = db.rem_link(*source, *target);
match result {
RemLinkResult::Removed(_) => {}
_ => fatal_error!(
"Fail to rem_link {}->{} : {:?}",
source.0,
target.0,
result
),
}
let _ = db.rem_link(*source, *target);
})
.expect("Fail to write in WotDB");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment