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
3436c30f
Commit
3436c30f
authored
Jul 29, 2019
by
vipwzw
Committed by
33cn
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
2dc66974
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
autonomy.go
plugin/dapp/autonomy/executor/autonomy.go
+1
-1
boardaction.go
plugin/dapp/autonomy/executor/boardaction.go
+2
-2
boardaction_test.go
plugin/dapp/autonomy/executor/boardaction_test.go
+2
-2
projectaction_test.go
plugin/dapp/autonomy/executor/projectaction_test.go
+4
-4
ruleaction_test.go
plugin/dapp/autonomy/executor/ruleaction_test.go
+2
-2
const.go
plugin/dapp/autonomy/types/const.go
+1
-1
No files found.
plugin/dapp/autonomy/executor/autonomy.go
View file @
3436c30f
...
...
@@ -21,7 +21,7 @@ var (
alog
=
log
.
New
(
"module"
,
"execs.autonomy"
)
driverName
=
auty
.
AutonomyX
autonomyFundAddr
=
address
.
ExecAddress
(
"autonomyfund"
)
cfg
subConfig
cfg
subConfig
)
func
init
()
{
...
...
plugin/dapp/autonomy/executor/boardaction.go
View file @
3436c30f
...
...
@@ -339,7 +339,7 @@ func (a *action) getTotalVotes(height int64) (int32, error) {
if
cfg
.
Total
!=
""
{
addr
=
cfg
.
Total
}
account
,
err
:=
a
.
getStartHeightVoteAccount
(
addr
,
""
,
height
)
account
,
err
:=
a
.
getStartHeightVoteAccount
(
addr
,
""
,
height
)
if
err
!=
nil
{
return
0
,
err
}
...
...
@@ -373,7 +373,7 @@ func (a *action) getStartHeightVoteAccount(addr, execer string, height int64) (*
account
,
err
:=
a
.
coinsAccount
.
GetBalance
(
a
.
api
,
&
types
.
ReqBalance
{
Addresses
:
[]
string
{
addr
},
Execer
:
execer
,
Execer
:
execer
,
StateHash
:
stateHash
,
})
if
err
!=
nil
||
len
(
account
)
==
0
{
...
...
plugin/dapp/autonomy/executor/boardaction_test.go
View file @
3436c30f
...
...
@@ -264,7 +264,7 @@ func voteProposalBoard(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB
acc
=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val1
:=
types
.
Encode
(
acc
)
values1
:=
[][]
byte
{
val1
}
...
...
@@ -321,7 +321,7 @@ func voteProposalBoard(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB
// 每次需要重新设置
acc
:=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val
:=
types
.
Encode
(
acc
)
values
:=
[][]
byte
{
val
}
...
...
plugin/dapp/autonomy/executor/projectaction_test.go
View file @
3436c30f
...
...
@@ -307,7 +307,7 @@ func voteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, stateD
acc
=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val1
:=
types
.
Encode
(
acc
)
values1
:=
[][]
byte
{
val1
}
...
...
@@ -364,7 +364,7 @@ func voteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, stateD
// 每次需要重新设置
acc
:=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val
:=
types
.
Encode
(
acc
)
values
:=
[][]
byte
{
val
}
...
...
@@ -421,7 +421,7 @@ func pubVoteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, sta
acc
=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val1
:=
types
.
Encode
(
acc
)
values1
:=
[][]
byte
{
val1
}
...
...
@@ -478,7 +478,7 @@ func pubVoteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, sta
// 每次需要重新设置
acc
:=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val
:=
types
.
Encode
(
acc
)
values
:=
[][]
byte
{
val
}
...
...
plugin/dapp/autonomy/executor/ruleaction_test.go
View file @
3436c30f
...
...
@@ -204,7 +204,7 @@ func voteProposalRule(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB d
acc
=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val1
:=
types
.
Encode
(
acc
)
values1
:=
[][]
byte
{
val1
}
...
...
@@ -261,7 +261,7 @@ func voteProposalRule(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB d
// 每次需要重新设置
acc
:=
&
types
.
Account
{
Currency
:
0
,
Frozen
:
total
,
Frozen
:
total
,
}
val
:=
types
.
Encode
(
acc
)
values
:=
[][]
byte
{
val
}
...
...
plugin/dapp/autonomy/types/const.go
View file @
3436c30f
...
...
@@ -94,5 +94,5 @@ var (
AutonomyX
=
"autonomy"
ExecerAutonomy
=
[]
byte
(
AutonomyX
)
// TicketX 该模块需要查询ticket合约下的账户余额
TicketX
=
"ticket"
TicketX
=
"ticket"
)
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