add difficulty to lightdinfo

This commit is contained in:
Denio
2019-12-02 10:35:38 +01:00
parent a0513c48c3
commit a269cd1e6b
5 changed files with 18 additions and 8 deletions

View File

@@ -347,6 +347,7 @@ type LightdInfo struct {
SaplingActivationHeight uint64 `protobuf:"varint,5,opt,name=saplingActivationHeight,proto3" json:"saplingActivationHeight,omitempty"`
ConsensusBranchId string `protobuf:"bytes,6,opt,name=consensusBranchId,proto3" json:"consensusBranchId,omitempty"`
BlockHeight uint64 `protobuf:"varint,7,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
Difficulty uint64 `protobuf:"varint,8,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -418,6 +419,12 @@ func (m *LightdInfo) GetConsensusBranchId() string {
}
return ""
}
func (m *LightdInfo) Getdifficulty() uint64 {
if m != nil {
return m.Difficulty
}
return 0
}
func (m *LightdInfo) GetBlockHeight() uint64 {
if m != nil {

View File

@@ -52,6 +52,7 @@ message LightdInfo {
uint64 saplingActivationHeight = 5;
string consensusBranchId = 6; // This should really be u32 or []byte, but string for readability
uint64 blockHeight = 7;
string difficulty = 8;
}
message TransparentAddress {