Skip to content
Snippets Groups Projects

Add wizard key

Closed inso requested to merge wizard_key into dev
Files
7
+ 4
5
@@ -124,11 +124,10 @@ pub fn sync_ts<DC: DuniterConf>(
@@ -124,11 +124,10 @@ pub fn sync_ts<DC: DuniterConf>(
.expect("Fail to get ts current block !");
.expect("Fail to get ts current block !");
let (currency, current_ts_blockstamp) =
let (currency, current_ts_blockstamp) =
if let Some(row) = cursor.next().expect("cursor error") {
if let Some(row) = cursor.next().expect("cursor error") {
let block_id = BlockId(
let block_id = BlockId(row[1]
row[1]
.as_integer()
.as_integer()
.expect("Fail to parse current ts blockstamp !")
.expect("Fail to parse current ts blockstamp !") as u32,
as u32);
);
let block_hash = BlockHash(
let block_hash = BlockHash(
Hash::from_hex(
Hash::from_hex(
row[0]
row[0]
Loading