Skip to content
Snippets Groups Projects
Commit 1ab6d23b authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist: Committed by Cédric Moreau
Browse files

fix(dbs): BlockDbV1.wrong default false

parent 8687791c
No related branches found
No related tags found
No related merge requests found
Pipeline #33151 waiting for manual action
......@@ -15,6 +15,11 @@
use crate::*;
// workaround https://github.com/serde-rs/serde/issues/1030
fn false_() -> bool {
false
}
#[derive(Debug)]
pub enum BlockDbEnum {
BlockDbV1(BlockDbV1),
......@@ -61,6 +66,7 @@ pub struct BlockDbV1 {
pub written_on: Option<u64>,
#[serde(rename = "written_on")]
pub written_on_str: String,
#[serde(default = "false_")]
pub wrong: bool,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment