add longestchain and notarized to lightinfod
This commit is contained in:
@@ -238,7 +238,6 @@ pub fn attempt_recover_seed() {
|
|||||||
server: "0.0.0.0:0".parse().unwrap(),
|
server: "0.0.0.0:0".parse().unwrap(),
|
||||||
chain_name: "main".to_string(),
|
chain_name: "main".to_string(),
|
||||||
sapling_activation_height: 0,
|
sapling_activation_height: 0,
|
||||||
// difficulty: 0,
|
|
||||||
consensus_branch_id: "000000".to_string(),
|
consensus_branch_id: "000000".to_string(),
|
||||||
anchor_offset: 0,
|
anchor_offset: 0,
|
||||||
no_cert_verification: false,
|
no_cert_verification: false,
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ message LightdInfo {
|
|||||||
string consensusBranchId = 6; // This should really be u32 or []byte, but string for readability
|
string consensusBranchId = 6; // This should really be u32 or []byte, but string for readability
|
||||||
uint64 blockHeight = 7;
|
uint64 blockHeight = 7;
|
||||||
uint64 difficulty = 8;
|
uint64 difficulty = 8;
|
||||||
|
uint64 longestchain = 9;
|
||||||
|
uint64 notarized = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TransparentAddress {
|
message TransparentAddress {
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ impl LightClientConfig {
|
|||||||
chain_name : info.chain_name,
|
chain_name : info.chain_name,
|
||||||
sapling_activation_height : info.sapling_activation_height,
|
sapling_activation_height : info.sapling_activation_height,
|
||||||
consensus_branch_id : info.consensus_branch_id,
|
consensus_branch_id : info.consensus_branch_id,
|
||||||
//difficulty : info.difficulty,
|
|
||||||
anchor_offset : ANCHOR_OFFSET,
|
anchor_offset : ANCHOR_OFFSET,
|
||||||
no_cert_verification : dangerous,
|
no_cert_verification : dangerous,
|
||||||
data_dir : None,
|
data_dir : None,
|
||||||
@@ -595,6 +594,8 @@ impl LightClient {
|
|||||||
"consensus_branch_id" => i.consensus_branch_id,
|
"consensus_branch_id" => i.consensus_branch_id,
|
||||||
"latest_block_height" => i.block_height,
|
"latest_block_height" => i.block_height,
|
||||||
"difficulty" => i.difficulty,
|
"difficulty" => i.difficulty,
|
||||||
|
"longestchain" => i.longestchain,
|
||||||
|
"notarized" => i.notarized,
|
||||||
};
|
};
|
||||||
o.pretty(2)
|
o.pretty(2)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user