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
24b2c046
Commit
24b2c046
authored
Jul 24, 2019
by
liuyuhang
Committed by
33cn
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add public period configurable
parent
b5995cbf
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
24 deletions
+57
-24
proposal_rule.go
plugin/dapp/autonomy/commands/proposal_rule.go
+3
-0
boardaction.go
plugin/dapp/autonomy/executor/boardaction.go
+2
-1
projectaction.go
plugin/dapp/autonomy/executor/projectaction.go
+1
-1
projectaction_test.go
plugin/dapp/autonomy/executor/projectaction_test.go
+1
-0
ruleaction.go
plugin/dapp/autonomy/executor/ruleaction.go
+6
-2
ruleaction_test.go
plugin/dapp/autonomy/executor/ruleaction_test.go
+11
-0
lcommon.proto
plugin/dapp/autonomy/proto/lcommon.proto
+3
-0
lcommon.pb.go
plugin/dapp/autonomy/types/lcommon.pb.go
+30
-20
No files found.
plugin/dapp/autonomy/commands/proposal_rule.go
View file @
24b2c046
...
@@ -38,6 +38,7 @@ func addProposalRuleFlags(cmd *cobra.Command) {
...
@@ -38,6 +38,7 @@ func addProposalRuleFlags(cmd *cobra.Command) {
cmd
.
Flags
()
.
Int32P
(
"pubOpposeRatio"
,
"o"
,
0
,
"public oppose ratio(unit is %)"
)
cmd
.
Flags
()
.
Int32P
(
"pubOpposeRatio"
,
"o"
,
0
,
"public oppose ratio(unit is %)"
)
cmd
.
Flags
()
.
Int64P
(
"proposalAmount"
,
"p"
,
0
,
"proposal cost amount"
)
cmd
.
Flags
()
.
Int64P
(
"proposalAmount"
,
"p"
,
0
,
"proposal cost amount"
)
cmd
.
Flags
()
.
Int64P
(
"largeProjectAmount"
,
"l"
,
0
,
"large project amount threshold"
)
cmd
.
Flags
()
.
Int64P
(
"largeProjectAmount"
,
"l"
,
0
,
"large project amount threshold"
)
cmd
.
Flags
()
.
Int32P
(
"publicPeriod"
,
"u"
,
0
,
"public time"
)
}
}
func
proposalRule
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
proposalRule
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
@@ -55,6 +56,7 @@ func proposalRule(cmd *cobra.Command, args []string) {
...
@@ -55,6 +56,7 @@ func proposalRule(cmd *cobra.Command, args []string) {
proposalAmount
,
_
:=
cmd
.
Flags
()
.
GetInt64
(
"proposalAmount"
)
proposalAmount
,
_
:=
cmd
.
Flags
()
.
GetInt64
(
"proposalAmount"
)
largeProjectAmount
,
_
:=
cmd
.
Flags
()
.
GetInt64
(
"largeProjectAmount"
)
largeProjectAmount
,
_
:=
cmd
.
Flags
()
.
GetInt64
(
"largeProjectAmount"
)
publicPeriod
,
_
:=
cmd
.
Flags
()
.
GetInt32
(
"publicPeriod"
)
params
:=
&
auty
.
ProposalRule
{
params
:=
&
auty
.
ProposalRule
{
Year
:
year
,
Year
:
year
,
...
@@ -66,6 +68,7 @@ func proposalRule(cmd *cobra.Command, args []string) {
...
@@ -66,6 +68,7 @@ func proposalRule(cmd *cobra.Command, args []string) {
PubOpposeRatio
:
pubOpposeRatio
,
PubOpposeRatio
:
pubOpposeRatio
,
ProposalAmount
:
proposalAmount
*
types
.
Coin
,
ProposalAmount
:
proposalAmount
*
types
.
Coin
,
LargeProjectAmount
:
largeProjectAmount
*
types
.
Coin
,
LargeProjectAmount
:
largeProjectAmount
*
types
.
Coin
,
PublicPeriod
:
publicPeriod
,
},
},
StartBlockHeight
:
startBlock
,
StartBlockHeight
:
startBlock
,
EndBlockHeight
:
endBlock
,
EndBlockHeight
:
endBlock
,
...
...
plugin/dapp/autonomy/executor/boardaction.go
View file @
24b2c046
...
@@ -18,7 +18,7 @@ import (
...
@@ -18,7 +18,7 @@ import (
const
(
const
(
minBoards
=
3
minBoards
=
3
maxBoards
=
30
maxBoards
=
30
publicPeriod
=
120960
// 公示一周时间,以区块高度计算
publicPeriod
int32
=
120960
// 公示一周时间,以区块高度计算
ticketPrice
=
types
.
Coin
*
3000
// 单张票价
ticketPrice
=
types
.
Coin
*
3000
// 单张票价
largeProjectAmount
=
types
.
Coin
*
100
*
10000
// 重大项目公示金额阈值
largeProjectAmount
=
types
.
Coin
*
100
*
10000
// 重大项目公示金额阈值
proposalAmount
=
types
.
Coin
*
1000
// 创建者消耗金额
proposalAmount
=
types
.
Coin
*
1000
// 创建者消耗金额
...
@@ -374,6 +374,7 @@ func (a *action) getActiveRule() (*auty.RuleConfig, error) {
...
@@ -374,6 +374,7 @@ func (a *action) getActiveRule() (*auty.RuleConfig, error) {
rule
.
PubOpposeRatio
=
pubOpposeRatio
rule
.
PubOpposeRatio
=
pubOpposeRatio
rule
.
ProposalAmount
=
proposalAmount
rule
.
ProposalAmount
=
proposalAmount
rule
.
LargeProjectAmount
=
largeProjectAmount
rule
.
LargeProjectAmount
=
largeProjectAmount
rule
.
PublicPeriod
=
publicPeriod
}
}
return
rule
,
nil
return
rule
,
nil
}
}
...
...
plugin/dapp/autonomy/executor/projectaction.go
View file @
24b2c046
...
@@ -343,7 +343,7 @@ func (a *action) tmintPropProject(tmintProb *auty.TerminateProposalProject) (*ty
...
@@ -343,7 +343,7 @@ func (a *action) tmintPropProject(tmintProb *auty.TerminateProposalProject) (*ty
// 公示期间不能终止
// 公示期间不能终止
if
cur
.
PubVote
.
Publicity
&&
cur
.
PubVote
.
PubPass
&&
if
cur
.
PubVote
.
Publicity
&&
cur
.
PubVote
.
PubPass
&&
a
.
height
<=
cur
.
PropProject
.
RealEndBlockHeight
+
publicPeriod
{
a
.
height
<=
cur
.
PropProject
.
RealEndBlockHeight
+
int64
(
cur
.
CurRule
.
PublicPeriod
)
{
err
:=
auty
.
ErrTerminatePeriod
err
:=
auty
.
ErrTerminatePeriod
alog
.
Error
(
"tmintPropProject "
,
"addr"
,
a
.
fromaddr
,
"status"
,
cur
.
Status
,
alog
.
Error
(
"tmintPropProject "
,
"addr"
,
a
.
fromaddr
,
"status"
,
cur
.
Status
,
"in publicity vote period can not terminate"
,
tmintProb
.
ProposalID
,
"err"
,
err
)
"in publicity vote period can not terminate"
,
tmintProb
.
ProposalID
,
"err"
,
err
)
...
...
plugin/dapp/autonomy/executor/projectaction_test.go
View file @
24b2c046
...
@@ -54,6 +54,7 @@ func InitRule(stateDB dbm.KV) {
...
@@ -54,6 +54,7 @@ func InitRule(stateDB dbm.KV) {
PubOpposeRatio
:
pubOpposeRatio
,
PubOpposeRatio
:
pubOpposeRatio
,
ProposalAmount
:
proposalAmount
,
ProposalAmount
:
proposalAmount
,
LargeProjectAmount
:
types
.
Coin
*
100
,
LargeProjectAmount
:
types
.
Coin
*
100
,
PublicPeriod
:
publicPeriod
,
}
}
stateDB
.
Set
(
activeRuleID
(),
types
.
Encode
(
rule
))
stateDB
.
Set
(
activeRuleID
(),
types
.
Encode
(
rule
))
}
}
...
...
plugin/dapp/autonomy/executor/ruleaction.go
View file @
24b2c046
...
@@ -16,7 +16,8 @@ import (
...
@@ -16,7 +16,8 @@ import (
func
(
a
*
action
)
propRule
(
prob
*
auty
.
ProposalRule
)
(
*
types
.
Receipt
,
error
)
{
func
(
a
*
action
)
propRule
(
prob
*
auty
.
ProposalRule
)
(
*
types
.
Receipt
,
error
)
{
//如果全小于等于0,则说明该提案规则参数不正确
//如果全小于等于0,则说明该提案规则参数不正确
if
prob
.
RuleCfg
==
nil
||
prob
.
RuleCfg
.
BoardAttendRatio
<=
0
&&
prob
.
RuleCfg
.
BoardApproveRatio
<=
0
&&
if
prob
.
RuleCfg
==
nil
||
prob
.
RuleCfg
.
BoardAttendRatio
<=
0
&&
prob
.
RuleCfg
.
BoardApproveRatio
<=
0
&&
prob
.
RuleCfg
.
PubOpposeRatio
<=
0
&&
prob
.
RuleCfg
.
ProposalAmount
<=
0
&&
prob
.
RuleCfg
.
LargeProjectAmount
<=
0
{
prob
.
RuleCfg
.
PubOpposeRatio
<=
0
&&
prob
.
RuleCfg
.
ProposalAmount
<=
0
&&
prob
.
RuleCfg
.
LargeProjectAmount
<=
0
&&
prob
.
RuleCfg
.
PublicPeriod
<=
0
{
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
...
@@ -242,7 +243,7 @@ func (a *action) tmintPropRule(tmintProb *auty.TerminateProposalRule) (*types.Re
...
@@ -242,7 +243,7 @@ func (a *action) tmintPropRule(tmintProb *auty.TerminateProposalRule) (*types.Re
start
:=
cur
.
GetPropRule
()
.
StartBlockHeight
start
:=
cur
.
GetPropRule
()
.
StartBlockHeight
end
:=
cur
.
GetPropRule
()
.
EndBlockHeight
end
:=
cur
.
GetPropRule
()
.
EndBlockHeight
if
a
.
height
<
=
end
&&
!
cur
.
VoteResult
.
Pass
{
if
a
.
height
<
end
&&
!
cur
.
VoteResult
.
Pass
{
err
:=
auty
.
ErrTerminatePeriod
err
:=
auty
.
ErrTerminatePeriod
alog
.
Error
(
"tmintPropRule "
,
"addr"
,
a
.
fromaddr
,
"status"
,
cur
.
Status
,
"height"
,
a
.
height
,
alog
.
Error
(
"tmintPropRule "
,
"addr"
,
a
.
fromaddr
,
"status"
,
cur
.
Status
,
"height"
,
a
.
height
,
"in vote period can not terminate"
,
tmintProb
.
ProposalID
,
"err"
,
err
)
"in vote period can not terminate"
,
tmintProb
.
ProposalID
,
"err"
,
err
)
...
@@ -363,6 +364,9 @@ func upgradeRule(cur, modify *auty.RuleConfig) *auty.RuleConfig {
...
@@ -363,6 +364,9 @@ func upgradeRule(cur, modify *auty.RuleConfig) *auty.RuleConfig {
if
modify
.
LargeProjectAmount
>
0
{
if
modify
.
LargeProjectAmount
>
0
{
new
.
LargeProjectAmount
=
modify
.
LargeProjectAmount
new
.
LargeProjectAmount
=
modify
.
LargeProjectAmount
}
}
if
modify
.
PublicPeriod
>
0
{
new
.
PublicPeriod
=
modify
.
PublicPeriod
}
return
&
new
return
&
new
}
}
...
...
plugin/dapp/autonomy/executor/ruleaction_test.go
View file @
24b2c046
...
@@ -26,6 +26,7 @@ const (
...
@@ -26,6 +26,7 @@ const (
testPubOpposeRatio
int32
=
30
testPubOpposeRatio
int32
=
30
testProposalAmount
int64
=
0
testProposalAmount
int64
=
0
testLargeProjectAmount
int64
=
1
testLargeProjectAmount
int64
=
1
testPublicPeriod
int32
=
100
)
)
func
TestRevokeProposalRule
(
t
*
testing
.
T
)
{
func
TestRevokeProposalRule
(
t
*
testing
.
T
)
{
...
@@ -63,6 +64,7 @@ func testPropRule(t *testing.T, env *execEnv, exec drivers.Driver, stateDB dbm.K
...
@@ -63,6 +64,7 @@ func testPropRule(t *testing.T, env *execEnv, exec drivers.Driver, stateDB dbm.K
PubOpposeRatio
:
testPubOpposeRatio
,
PubOpposeRatio
:
testPubOpposeRatio
,
ProposalAmount
:
testProposalAmount
,
ProposalAmount
:
testProposalAmount
,
LargeProjectAmount
:
testLargeProjectAmount
,
LargeProjectAmount
:
testLargeProjectAmount
,
PublicPeriod
:
testPublicPeriod
,
},
},
StartBlockHeight
:
env
.
blockHeight
+
5
,
StartBlockHeight
:
env
.
blockHeight
+
5
,
...
@@ -163,6 +165,7 @@ func revokeProposalRule(t *testing.T, env *execEnv, exec drivers.Driver, stateDB
...
@@ -163,6 +165,7 @@ func revokeProposalRule(t *testing.T, env *execEnv, exec drivers.Driver, stateDB
require
.
Equal
(
t
,
rule
.
PubOpposeRatio
,
pubOpposeRatio
)
require
.
Equal
(
t
,
rule
.
PubOpposeRatio
,
pubOpposeRatio
)
require
.
Equal
(
t
,
rule
.
ProposalAmount
,
proposalAmount
)
require
.
Equal
(
t
,
rule
.
ProposalAmount
,
proposalAmount
)
require
.
Equal
(
t
,
rule
.
LargeProjectAmount
,
largeProjectAmount
)
require
.
Equal
(
t
,
rule
.
LargeProjectAmount
,
largeProjectAmount
)
require
.
Equal
(
t
,
rule
.
PublicPeriod
,
publicPeriod
)
}
}
func
revokeProposalRuleTx
(
parm
*
auty
.
RevokeProposalRule
)
(
*
types
.
Transaction
,
error
)
{
func
revokeProposalRuleTx
(
parm
*
auty
.
RevokeProposalRule
)
(
*
types
.
Transaction
,
error
)
{
...
@@ -285,6 +288,7 @@ func voteProposalRule(t *testing.T, env *execEnv, exec drivers.Driver, stateDB d
...
@@ -285,6 +288,7 @@ func voteProposalRule(t *testing.T, env *execEnv, exec drivers.Driver, stateDB d
require
.
Equal
(
t
,
rule
.
PubOpposeRatio
,
testPubOpposeRatio
)
require
.
Equal
(
t
,
rule
.
PubOpposeRatio
,
testPubOpposeRatio
)
require
.
Equal
(
t
,
rule
.
ProposalAmount
,
proposalAmount
)
require
.
Equal
(
t
,
rule
.
ProposalAmount
,
proposalAmount
)
require
.
Equal
(
t
,
rule
.
LargeProjectAmount
,
testLargeProjectAmount
)
require
.
Equal
(
t
,
rule
.
LargeProjectAmount
,
testLargeProjectAmount
)
require
.
Equal
(
t
,
rule
.
PublicPeriod
,
testPublicPeriod
)
}
}
func
voteProposalRuleTx
(
parm
*
auty
.
VoteProposalRule
)
(
*
types
.
Transaction
,
error
)
{
func
voteProposalRuleTx
(
parm
*
auty
.
VoteProposalRule
)
(
*
types
.
Transaction
,
error
)
{
...
@@ -362,6 +366,7 @@ func terminateProposalRule(t *testing.T, env *execEnv, exec drivers.Driver, stat
...
@@ -362,6 +366,7 @@ func terminateProposalRule(t *testing.T, env *execEnv, exec drivers.Driver, stat
require
.
Equal
(
t
,
rule
.
PubOpposeRatio
,
pubOpposeRatio
)
require
.
Equal
(
t
,
rule
.
PubOpposeRatio
,
pubOpposeRatio
)
require
.
Equal
(
t
,
rule
.
ProposalAmount
,
proposalAmount
)
require
.
Equal
(
t
,
rule
.
ProposalAmount
,
proposalAmount
)
require
.
Equal
(
t
,
rule
.
LargeProjectAmount
,
largeProjectAmount
)
require
.
Equal
(
t
,
rule
.
LargeProjectAmount
,
largeProjectAmount
)
require
.
Equal
(
t
,
rule
.
PublicPeriod
,
publicPeriod
)
}
}
func
terminateProposalRuleTx
(
parm
*
auty
.
TerminateProposalRule
)
(
*
types
.
Transaction
,
error
)
{
func
terminateProposalRuleTx
(
parm
*
auty
.
TerminateProposalRule
)
(
*
types
.
Transaction
,
error
)
{
...
@@ -433,6 +438,7 @@ func TestUpgradeRule(t *testing.T) {
...
@@ -433,6 +438,7 @@ func TestUpgradeRule(t *testing.T) {
PubOpposeRatio
:
3
,
PubOpposeRatio
:
3
,
ProposalAmount
:
4
,
ProposalAmount
:
4
,
LargeProjectAmount
:
5
,
LargeProjectAmount
:
5
,
PublicPeriod
:
6
,
}
}
modify
:=
&
auty
.
RuleConfig
{
modify
:=
&
auty
.
RuleConfig
{
BoardAttendRatio
:
0
,
BoardAttendRatio
:
0
,
...
@@ -440,6 +446,7 @@ func TestUpgradeRule(t *testing.T) {
...
@@ -440,6 +446,7 @@ func TestUpgradeRule(t *testing.T) {
PubOpposeRatio
:
0
,
PubOpposeRatio
:
0
,
ProposalAmount
:
-
1
,
ProposalAmount
:
-
1
,
LargeProjectAmount
:
0
,
LargeProjectAmount
:
0
,
PublicPeriod
:
0
,
}
}
new
=
upgradeRule
(
cur
,
modify
)
new
=
upgradeRule
(
cur
,
modify
)
require
.
NotNil
(
t
,
new
)
require
.
NotNil
(
t
,
new
)
...
@@ -448,6 +455,7 @@ func TestUpgradeRule(t *testing.T) {
...
@@ -448,6 +455,7 @@ func TestUpgradeRule(t *testing.T) {
require
.
Equal
(
t
,
new
.
PubOpposeRatio
,
cur
.
PubOpposeRatio
)
require
.
Equal
(
t
,
new
.
PubOpposeRatio
,
cur
.
PubOpposeRatio
)
require
.
Equal
(
t
,
new
.
ProposalAmount
,
cur
.
ProposalAmount
)
require
.
Equal
(
t
,
new
.
ProposalAmount
,
cur
.
ProposalAmount
)
require
.
Equal
(
t
,
new
.
LargeProjectAmount
,
cur
.
LargeProjectAmount
)
require
.
Equal
(
t
,
new
.
LargeProjectAmount
,
cur
.
LargeProjectAmount
)
require
.
Equal
(
t
,
new
.
PublicPeriod
,
cur
.
PublicPeriod
)
modify
=
&
auty
.
RuleConfig
{
modify
=
&
auty
.
RuleConfig
{
BoardAttendRatio
:
10
,
BoardAttendRatio
:
10
,
...
@@ -455,6 +463,7 @@ func TestUpgradeRule(t *testing.T) {
...
@@ -455,6 +463,7 @@ func TestUpgradeRule(t *testing.T) {
PubOpposeRatio
:
30
,
PubOpposeRatio
:
30
,
ProposalAmount
:
40
,
ProposalAmount
:
40
,
LargeProjectAmount
:
50
,
LargeProjectAmount
:
50
,
PublicPeriod
:
60
,
}
}
new
=
upgradeRule
(
cur
,
modify
)
new
=
upgradeRule
(
cur
,
modify
)
require
.
NotNil
(
t
,
new
)
require
.
NotNil
(
t
,
new
)
...
@@ -463,4 +472,5 @@ func TestUpgradeRule(t *testing.T) {
...
@@ -463,4 +472,5 @@ func TestUpgradeRule(t *testing.T) {
require
.
Equal
(
t
,
new
.
PubOpposeRatio
,
modify
.
PubOpposeRatio
)
require
.
Equal
(
t
,
new
.
PubOpposeRatio
,
modify
.
PubOpposeRatio
)
require
.
Equal
(
t
,
new
.
ProposalAmount
,
modify
.
ProposalAmount
)
require
.
Equal
(
t
,
new
.
ProposalAmount
,
modify
.
ProposalAmount
)
require
.
Equal
(
t
,
new
.
LargeProjectAmount
,
modify
.
LargeProjectAmount
)
require
.
Equal
(
t
,
new
.
LargeProjectAmount
,
modify
.
LargeProjectAmount
)
require
.
Equal
(
t
,
new
.
PublicPeriod
,
modify
.
PublicPeriod
)
}
}
\ No newline at end of file
plugin/dapp/autonomy/proto/lcommon.proto
View file @
24b2c046
...
@@ -43,4 +43,6 @@ message RuleConfig {
...
@@ -43,4 +43,6 @@ message RuleConfig {
int64
proposalAmount
=
4
;
int64
proposalAmount
=
4
;
// 重大项目公示金额阈值
// 重大项目公示金额阈值
int64
largeProjectAmount
=
5
;
int64
largeProjectAmount
=
5
;
// 重大项目公示时间(以区块数为单位)
int32
publicPeriod
=
6
;
}
}
\ No newline at end of file
plugin/dapp/autonomy/types/lcommon.pb.go
View file @
24b2c046
...
@@ -127,6 +127,8 @@ type RuleConfig struct {
...
@@ -127,6 +127,8 @@ type RuleConfig struct {
ProposalAmount
int64
`protobuf:"varint,4,opt,name=proposalAmount" json:"proposalAmount,omitempty"`
ProposalAmount
int64
`protobuf:"varint,4,opt,name=proposalAmount" json:"proposalAmount,omitempty"`
// 重大项目公示金额阈值
// 重大项目公示金额阈值
LargeProjectAmount
int64
`protobuf:"varint,5,opt,name=largeProjectAmount" json:"largeProjectAmount,omitempty"`
LargeProjectAmount
int64
`protobuf:"varint,5,opt,name=largeProjectAmount" json:"largeProjectAmount,omitempty"`
// 重大项目公示时间(以区块数为单位)
PublicPeriod
int32
`protobuf:"varint,6,opt,name=publicPeriod" json:"publicPeriod,omitempty"`
}
}
func
(
m
*
RuleConfig
)
Reset
()
{
*
m
=
RuleConfig
{}
}
func
(
m
*
RuleConfig
)
Reset
()
{
*
m
=
RuleConfig
{}
}
...
@@ -169,6 +171,13 @@ func (m *RuleConfig) GetLargeProjectAmount() int64 {
...
@@ -169,6 +171,13 @@ func (m *RuleConfig) GetLargeProjectAmount() int64 {
return
0
return
0
}
}
func
(
m
*
RuleConfig
)
GetPublicPeriod
()
int32
{
if
m
!=
nil
{
return
m
.
PublicPeriod
}
return
0
}
func
init
()
{
func
init
()
{
proto
.
RegisterType
((
*
VoteResult
)(
nil
),
"types.VoteResult"
)
proto
.
RegisterType
((
*
VoteResult
)(
nil
),
"types.VoteResult"
)
proto
.
RegisterType
((
*
PublicVote
)(
nil
),
"types.PublicVote"
)
proto
.
RegisterType
((
*
PublicVote
)(
nil
),
"types.PublicVote"
)
...
@@ -179,24 +188,25 @@ func init() {
...
@@ -179,24 +188,25 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"lcommon.proto"
,
fileDescriptor2
)
}
func
init
()
{
proto
.
RegisterFile
(
"lcommon.proto"
,
fileDescriptor2
)
}
var
fileDescriptor2
=
[]
byte
{
var
fileDescriptor2
=
[]
byte
{
// 299 bytes of a gzipped FileDescriptorProto
// 314 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x84
,
0x92
,
0xcd
,
0x4a
,
0xc3
,
0x40
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x84
,
0x92
,
0x3d
,
0x4e
,
0xf3
,
0x40
,
0x10
,
0x80
,
0x49
,
0x7f
,
0xb4
,
0x9d
,
0xaa
,
0xe8
,
0x9c
,
0x7a
,
0x10
,
0x29
,
0x39
,
0x68
,
0x11
,
0xe9
,
0x10
,
0x86
,
0xe5
,
0xfc
,
0x7d
,
0xc9
,
0xe4
,
0x03
,
0xc1
,
0x54
,
0x2e
,
0x10
,
0x8a
,
0x5c
,
0x40
,
0x84
,
0xc5
,
0x27
,
0x28
,
0x3e
,
0x80
,
0x65
,
0x0f
,
0xde
,
0x37
,
0xc9
,
0x5a
,
0x22
,
0xdb
,
0xcc
,
0xb2
,
0x3b
,
0x50
,
0x1a
,
0x4e
,
0x10
,
0x71
,
0x00
,
0xac
,
0x2d
,
0xe8
,
0xd7
,
0xf6
,
0x12
,
0x19
,
0x6d
,
0x3c
,
0xab
,
0x2b
,
0xf4
,
0x05
,
0x7c
,
0x54
,
0x9f
,
0x43
,
0x32
,
0xdb
,
0xd2
,
0xda
,
0x08
,
0xde
,
0x32
,
0xdf
,
0x7e
,
0xdd
,
0x31
,
0x52
,
0x2e
,
0x40
,
0xc1
,
0xa9
,
0x91
,
0x67
,
0x13
,
0x25
,
0xc4
,
0x48
,
0x74
,
0x9e
,
0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x55
,
0x4f
,
0xdf
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0x26
,
0x63
,
0x46
,
0xa7
,
0x66
,
0x02
,
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