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
f59b7b4d
Unverified
Commit
f59b7b4d
authored
Nov 22, 2018
by
vipwzw
Committed by
GitHub
Nov 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #60 from vipwzw/ignore_vet
ignore go vet package
parents
d6a01768
4c098988
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
20 deletions
+6
-20
Makefile
Makefile
+2
-2
init.go
plugin/consensus/init/init.go
+0
-4
tendermint.go
plugin/consensus/tendermint/tendermint.go
+4
-2
init.go
plugin/crypto/init/init.go
+0
-4
init.go
plugin/dapp/init/init.go
+0
-4
init.go
plugin/store/init/init.go
+0
-4
No files found.
Makefile
View file @
f59b7b4d
...
@@ -11,7 +11,7 @@ APP := build/chain33
...
@@ -11,7 +11,7 @@ APP := build/chain33
CHAIN33
=
github.com/33cn/chain33
CHAIN33
=
github.com/33cn/chain33
CHAIN33_PATH
=
vendor/
${
CHAIN33
}
CHAIN33_PATH
=
vendor/
${
CHAIN33
}
LDFLAGS
:=
-ldflags
"-w -s"
LDFLAGS
:=
-ldflags
"-w -s"
PKG_LIST_VET
:=
`
go list ./... |
grep
-v
"vendor"
`
PKG_LIST_VET
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
plugin/dapp/evm/executor/vm/common/crypto/bn256
`
PKG_LIST
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
"chain33/test"
|
grep
-v
"mocks"
|
grep
-v
"pbft"
`
PKG_LIST
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
"chain33/test"
|
grep
-v
"mocks"
|
grep
-v
"pbft"
`
PKG_LIST_Q
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
"chain33/test"
|
grep
-v
"mocks"
|
grep
-v
"blockchain"
|
grep
-v
"pbft"
`
PKG_LIST_Q
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
"chain33/test"
|
grep
-v
"mocks"
|
grep
-v
"blockchain"
|
grep
-v
"pbft"
`
BUILD_FLAGS
=
-ldflags
"-X github.com/33cn/chain33/common/version.GitCommit=
`
git rev-parse
--short
=
8 HEAD
`
"
BUILD_FLAGS
=
-ldflags
"-X github.com/33cn/chain33/common/version.GitCommit=
`
git rev-parse
--short
=
8 HEAD
`
"
...
@@ -58,7 +58,7 @@ autotest_tick: autotest ## run with ticket mining
...
@@ -58,7 +58,7 @@ autotest_tick: autotest ## run with ticket mining
update
:
update
:
rm
-rf
${
CHAIN33_PATH
}
rm
-rf
${
CHAIN33_PATH
}
git clone
--depth
1
-b
master
https://
${
CHAIN33
}
.git
${
CHAIN33_PATH
}
git clone
--depth
1
-b
${
b
}
https://
${
CHAIN33
}
.git
${
CHAIN33_PATH
}
rm
-rf
vendor/
${
CHAIN33
}
/.git
rm
-rf
vendor/
${
CHAIN33
}
/.git
rm
-rf
vendor/
${
CHAIN33
}
/vendor/github.com/apache/thrift/tutorial/erl/
rm
-rf
vendor/
${
CHAIN33
}
/vendor/github.com/apache/thrift/tutorial/erl/
cp
-Rf
vendor/
${
CHAIN33
}
/vendor/
*
vendor/
cp
-Rf
vendor/
${
CHAIN33
}
/vendor/
*
vendor/
...
...
plugin/consensus/init/init.go
View file @
f59b7b4d
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
init
package
init
import
(
import
(
...
...
plugin/consensus/tendermint/tendermint.go
View file @
f59b7b4d
...
@@ -466,7 +466,8 @@ func (client *TendermintClient) QueryValidatorsByHeight(height int64) (*tmtypes.
...
@@ -466,7 +466,8 @@ func (client *TendermintClient) QueryValidatorsByHeight(height int64) (*tmtypes.
tendermintlog
.
Error
(
"QueryValidatorsByHeight"
,
"err"
,
err
)
tendermintlog
.
Error
(
"QueryValidatorsByHeight"
,
"err"
,
err
)
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
msg
:=
client
.
GetQueueClient
()
.
NewMessage
(
"execs"
,
types
.
EventBlockChainQuery
,
&
types
.
ChainExecutor
{
"valnode"
,
"GetValNodeByHeight"
,
zeroHash
[
:
],
param
,
nil
})
msg
:=
client
.
GetQueueClient
()
.
NewMessage
(
"execs"
,
types
.
EventBlockChainQuery
,
&
types
.
ChainExecutor
{
Driver
:
"valnode"
,
FuncName
:
"GetValNodeByHeight"
,
StateHash
:
zeroHash
[
:
],
Param
:
param
})
client
.
GetQueueClient
()
.
Send
(
msg
,
true
)
client
.
GetQueueClient
()
.
Send
(
msg
,
true
)
msg
,
err
=
client
.
GetQueueClient
()
.
Wait
(
msg
)
msg
,
err
=
client
.
GetQueueClient
()
.
Wait
(
msg
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -485,7 +486,8 @@ func (client *TendermintClient) QueryBlockInfoByHeight(height int64) (*tmtypes.T
...
@@ -485,7 +486,8 @@ func (client *TendermintClient) QueryBlockInfoByHeight(height int64) (*tmtypes.T
tendermintlog
.
Error
(
"QueryBlockInfoByHeight"
,
"err"
,
err
)
tendermintlog
.
Error
(
"QueryBlockInfoByHeight"
,
"err"
,
err
)
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
msg
:=
client
.
GetQueueClient
()
.
NewMessage
(
"execs"
,
types
.
EventBlockChainQuery
,
&
types
.
ChainExecutor
{
"valnode"
,
"GetBlockInfoByHeight"
,
zeroHash
[
:
],
param
,
nil
})
msg
:=
client
.
GetQueueClient
()
.
NewMessage
(
"execs"
,
types
.
EventBlockChainQuery
,
&
types
.
ChainExecutor
{
Driver
:
"valnode"
,
FuncName
:
"GetBlockInfoByHeight"
,
StateHash
:
zeroHash
[
:
],
Param
:
param
})
client
.
GetQueueClient
()
.
Send
(
msg
,
true
)
client
.
GetQueueClient
()
.
Send
(
msg
,
true
)
msg
,
err
=
client
.
GetQueueClient
()
.
Wait
(
msg
)
msg
,
err
=
client
.
GetQueueClient
()
.
Wait
(
msg
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
plugin/crypto/init/init.go
View file @
f59b7b4d
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
init
package
init
import
(
import
(
...
...
plugin/dapp/init/init.go
View file @
f59b7b4d
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
init
package
init
import
(
import
(
...
...
plugin/store/init/init.go
View file @
f59b7b4d
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
init
package
init
import
(
import
(
...
...
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