Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
07cde0ca
Commit
07cde0ca
authored
Apr 30, 2019
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8ed23987
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
271 additions
and
0 deletions
+271
-0
dpos_msg.pb.go
plugin/consensus/dpos/types/dpos_msg.pb.go
+271
-0
No files found.
plugin/consensus/dpos/types/dpos_msg.pb.go
0 → 100644
View file @
07cde0ca
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: dpos_msg.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
dpos_msg.proto
It has these top-level messages:
VoteItem
DPosVote
DPosVoteReply
DPosNotify
*/
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
type
VoteItem
struct
{
VotedNodeIndex
int32
`protobuf:"varint,1,opt,name=votedNodeIndex" json:"votedNodeIndex,omitempty"`
VotedNodeAddress
[]
byte
`protobuf:"bytes,2,opt,name=votedNodeAddress,proto3" json:"votedNodeAddress,omitempty"`
CycleStart
int64
`protobuf:"varint,3,opt,name=cycleStart" json:"cycleStart,omitempty"`
CycleStop
int64
`protobuf:"varint,4,opt,name=cycleStop" json:"cycleStop,omitempty"`
PeriodStart
int64
`protobuf:"varint,5,opt,name=periodStart" json:"periodStart,omitempty"`
PeriodStop
int64
`protobuf:"varint,6,opt,name=periodStop" json:"periodStop,omitempty"`
Height
int64
`protobuf:"varint,7,opt,name=height" json:"height,omitempty"`
VoteId
[]
byte
`protobuf:"bytes,8,opt,name=voteId,proto3" json:"voteId,omitempty"`
}
func
(
m
*
VoteItem
)
Reset
()
{
*
m
=
VoteItem
{}
}
func
(
m
*
VoteItem
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VoteItem
)
ProtoMessage
()
{}
func
(
*
VoteItem
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
0
}
}
func
(
m
*
VoteItem
)
GetVotedNodeIndex
()
int32
{
if
m
!=
nil
{
return
m
.
VotedNodeIndex
}
return
0
}
func
(
m
*
VoteItem
)
GetVotedNodeAddress
()
[]
byte
{
if
m
!=
nil
{
return
m
.
VotedNodeAddress
}
return
nil
}
func
(
m
*
VoteItem
)
GetCycleStart
()
int64
{
if
m
!=
nil
{
return
m
.
CycleStart
}
return
0
}
func
(
m
*
VoteItem
)
GetCycleStop
()
int64
{
if
m
!=
nil
{
return
m
.
CycleStop
}
return
0
}
func
(
m
*
VoteItem
)
GetPeriodStart
()
int64
{
if
m
!=
nil
{
return
m
.
PeriodStart
}
return
0
}
func
(
m
*
VoteItem
)
GetPeriodStop
()
int64
{
if
m
!=
nil
{
return
m
.
PeriodStop
}
return
0
}
func
(
m
*
VoteItem
)
GetHeight
()
int64
{
if
m
!=
nil
{
return
m
.
Height
}
return
0
}
func
(
m
*
VoteItem
)
GetVoteId
()
[]
byte
{
if
m
!=
nil
{
return
m
.
VoteId
}
return
nil
}
// DPosVote Dpos共识的节点投票,为达成共识用。
type
DPosVote
struct
{
VoteItem
*
VoteItem
`protobuf:"bytes,1,opt,name=voteItem" json:"voteItem,omitempty"`
VoteTimestamp
int64
`protobuf:"varint,2,opt,name=voteTimestamp" json:"voteTimestamp,omitempty"`
VoterNodeIndex
int32
`protobuf:"varint,3,opt,name=voterNodeIndex" json:"voterNodeIndex,omitempty"`
VoterNodeAddress
[]
byte
`protobuf:"bytes,4,opt,name=voterNodeAddress,proto3" json:"voterNodeAddress,omitempty"`
Signature
[]
byte
`protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
}
func
(
m
*
DPosVote
)
Reset
()
{
*
m
=
DPosVote
{}
}
func
(
m
*
DPosVote
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DPosVote
)
ProtoMessage
()
{}
func
(
*
DPosVote
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
1
}
}
func
(
m
*
DPosVote
)
GetVoteItem
()
*
VoteItem
{
if
m
!=
nil
{
return
m
.
VoteItem
}
return
nil
}
func
(
m
*
DPosVote
)
GetVoteTimestamp
()
int64
{
if
m
!=
nil
{
return
m
.
VoteTimestamp
}
return
0
}
func
(
m
*
DPosVote
)
GetVoterNodeIndex
()
int32
{
if
m
!=
nil
{
return
m
.
VoterNodeIndex
}
return
0
}
func
(
m
*
DPosVote
)
GetVoterNodeAddress
()
[]
byte
{
if
m
!=
nil
{
return
m
.
VoterNodeAddress
}
return
nil
}
func
(
m
*
DPosVote
)
GetSignature
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Signature
}
return
nil
}
type
DPosVoteReply
struct
{
Vote
*
DPosVote
`protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"`
}
func
(
m
*
DPosVoteReply
)
Reset
()
{
*
m
=
DPosVoteReply
{}
}
func
(
m
*
DPosVoteReply
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DPosVoteReply
)
ProtoMessage
()
{}
func
(
*
DPosVoteReply
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
2
}
}
func
(
m
*
DPosVoteReply
)
GetVote
()
*
DPosVote
{
if
m
!=
nil
{
return
m
.
Vote
}
return
nil
}
// DPosNotify Dpos委托节点出块周期结束时,通知其他节点进行高度确认及新节点投票。
type
DPosNotify
struct
{
Vote
*
VoteItem
`protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"`
HeightStop
int64
`protobuf:"varint,2,opt,name=heightStop" json:"heightStop,omitempty"`
HashStop
[]
byte
`protobuf:"bytes,3,opt,name=hashStop,proto3" json:"hashStop,omitempty"`
NotifyTimestamp
int64
`protobuf:"varint,4,opt,name=notifyTimestamp" json:"notifyTimestamp,omitempty"`
NotifyNodeIndex
int32
`protobuf:"varint,5,opt,name=notifyNodeIndex" json:"notifyNodeIndex,omitempty"`
NotifyNodeAddress
[]
byte
`protobuf:"bytes,6,opt,name=notifyNodeAddress,proto3" json:"notifyNodeAddress,omitempty"`
Signature
[]
byte
`protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
}
func
(
m
*
DPosNotify
)
Reset
()
{
*
m
=
DPosNotify
{}
}
func
(
m
*
DPosNotify
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DPosNotify
)
ProtoMessage
()
{}
func
(
*
DPosNotify
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
3
}
}
func
(
m
*
DPosNotify
)
GetVote
()
*
VoteItem
{
if
m
!=
nil
{
return
m
.
Vote
}
return
nil
}
func
(
m
*
DPosNotify
)
GetHeightStop
()
int64
{
if
m
!=
nil
{
return
m
.
HeightStop
}
return
0
}
func
(
m
*
DPosNotify
)
GetHashStop
()
[]
byte
{
if
m
!=
nil
{
return
m
.
HashStop
}
return
nil
}
func
(
m
*
DPosNotify
)
GetNotifyTimestamp
()
int64
{
if
m
!=
nil
{
return
m
.
NotifyTimestamp
}
return
0
}
func
(
m
*
DPosNotify
)
GetNotifyNodeIndex
()
int32
{
if
m
!=
nil
{
return
m
.
NotifyNodeIndex
}
return
0
}
func
(
m
*
DPosNotify
)
GetNotifyNodeAddress
()
[]
byte
{
if
m
!=
nil
{
return
m
.
NotifyNodeAddress
}
return
nil
}
func
(
m
*
DPosNotify
)
GetSignature
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Signature
}
return
nil
}
func
init
()
{
proto
.
RegisterType
((
*
VoteItem
)(
nil
),
"types.VoteItem"
)
proto
.
RegisterType
((
*
DPosVote
)(
nil
),
"types.DPosVote"
)
proto
.
RegisterType
((
*
DPosVoteReply
)(
nil
),
"types.DPosVoteReply"
)
proto
.
RegisterType
((
*
DPosNotify
)(
nil
),
"types.DPosNotify"
)
}
func
init
()
{
proto
.
RegisterFile
(
"dpos_msg.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
// 386 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x93
,
0xdd
,
0x6a
,
0xdb
,
0x30
,
0x14
,
0xc7
,
0x71
,
0x1c
,
0x3b
,
0xde
,
0xc9
,
0xd7
,
0xa6
,
0x8b
,
0x61
,
0xc6
,
0x18
,
0xc6
,
0x1b
,
0xc3
,
0x6c
,
0x25
,
0x17
,
0x6d
,
0x5f
,
0xa0
,
0xd0
,
0x9b
,
0xdc
,
0x84
,
0xe2
,
0x96
,
0xde
,
0x16
,
0x37
,
0x52
,
0x63
,
0x43
,
0x1c
,
0x09
,
0x49
,
0x0d
,
0xcd
,
0x43
,
0xb4
,
0xaf
,
0xd6
,
0x57
,
0x2a
,
0x3a
,
0xfe
,
0x90
,
0xe3
,
0xd0
,
0xbb
,
0x9c
,
0xdf
,
0x5f
,
0x1f
,
0xe7
,
0xfc
,
0x14
,
0xc3
,
0x8c
,
0x0a
,
0xae
,
0x1e
,
0x4a
,
0xb5
,
0x59
,
0x08
,
0xc9
,
0x35
,
0x27
,
0x9e
,
0x3e
,
0x08
,
0xa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0xdc
,
0xf4
,
0x18
,
0x36
,
0x8e
,
0xa5
,
0x75
,
0xec
,
0x5a
,
0xc7
,
0xf2
,
0xc4
,
0xb1
,
0xec
,
0x3a
,
0x1e
,
0x5a
,
0xc7
,
0x5d
,
0x6e
,
0x1c
,
0xaa
,
0x62
,
0xb3
,
0xcb
,
0xf4
,
0xb3
,
0x64
,
0xe8
,
0x68
,
0x92
,
0x5a
,
0x10
,
0x5f
,
0xc2
,
0xb4
,
0x19
,
0x28
,
0x65
,
0x62
,
0x7b
,
0x20
,
0xbf
,
0x61
,
0x68
,
0x8e
,
0xe8
,
0x4d
,
0xd4
,
0xae
,
0xc1
,
0x30
,
0x7e
,
0x1d
,
0x00
,
0x18
,
0xb4
,
0xe2
,
0xba
,
0x78
,
0xfa
,
0x6c
,
0x4f
,
0x6b
,
0x01
,
0x43
,
0xf3
,
0x16
,
0x95
,
0x5d
,
0x7c
,
0x8b
,
0x6a
,
0xfc
,
0x0e
,
0x21
,
0x3f
,
0x20
,
0xc8
,
0x33
,
0x95
,
0x63
,
0xea
,
0x62
,
0x9b
,
0x6d
,
0x4d
,
0x12
,
0x98
,
0xef
,
0xf0
,
0x2a
,
0xeb
,
0xaf
,
0xfa
,
0x37
,
0xf4
,
0xb1
,
0x5d
,
0x69
,
0x15
,
0x7a
,
0xa8
,
0xb0
,
0x8f
,
0xc9
,
0x19
,
0x7c
,
0xb3
,
0xa8
,
0x91
,
0xe8
,
0xe3
,
0xc5
,
0xa7
,
0xc1
,
0xb1
,
0xc5
,
0x51
,
0xcf
,
0xe2
,
0xa3
,
0x8f
,
0x9f
,
0xcd
,
0xc5
,
0x47
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xc3
,
0x26
,
0x39
,
0x79
,
0x48
,
0x03
,
0x00
,
0x00
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment