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
81a5219c
Commit
81a5219c
authored
Oct 10, 2019
by
张振华
Committed by
vipwzw
Oct 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
04a57e12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
24 deletions
+11
-24
priv_validator_test.go
plugin/consensus/dpos/types/priv_validator_test.go
+3
-7
guess_test.go
plugin/dapp/guess/rpc/guess_test.go
+8
-17
No files found.
plugin/consensus/dpos/types/priv_validator_test.go
View file @
81a5219c
...
...
@@ -5,8 +5,6 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/33cn/chain33/common/address"
"github.com/stretchr/testify/assert"
"io"
"os"
"sort"
...
...
@@ -14,9 +12,10 @@ import (
"testing"
"time"
"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/common/crypto"
"github.com/33cn/chain33/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
...
...
@@ -305,8 +304,6 @@ func TestSignTx(t *testing.T) {
remove
(
filename
)
}
func
TestPubkeyAndAddress
(
t
*
testing
.
T
)
{
priv
:=
"880D055D311827AB427031959F43238500D08F3EDF443EB903EC6D1A16A5783A"
pub
:=
"026BD23C69F9A1D7A50F185514EDCA25AFD00DD2A92485CC1E8CDA3EDD284CA838"
...
...
@@ -348,4 +345,4 @@ func testOneKey(priv, pub, addr string, t *testing.T) {
fmt
.
Println
(
"addr:"
,
addr
)
fmt
.
Println
(
fmt
.
Sprintf
(
"%x"
,
bAddr
))
assert
.
True
(
t
,
addr
==
fmt
.
Sprintf
(
"%X"
,
bAddr
))
}
\ No newline at end of file
}
plugin/dapp/guess/rpc/guess_test.go
View file @
81a5219c
package
rpc
import
(
cty
"github.com/33cn/chain33/system/dapp/coins/types"
"context"
"encoding/binary"
"encoding/hex"
"errors"
"flag"
"fmt"
gty
"github.com/33cn/plugin/plugin/dapp/guess/types"
"io/ioutil"
"math/rand"
"os"
...
...
@@ -19,8 +14,6 @@ import (
"testing"
"time"
"github.com/33cn/chain33/util"
"github.com/33cn/chain33/blockchain"
"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/common/crypto"
...
...
@@ -32,24 +25,22 @@ import (
"github.com/33cn/chain33/queue"
"github.com/33cn/chain33/rpc"
"github.com/33cn/chain33/store"
"github.com/33cn/chain33/system/consensus/solo"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/util"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
_
"github.com/33cn/chain33/system"
_
"github.com/33cn/chain33/system/consensus/solo"
_
"github.com/33cn/plugin/plugin/dapp/init"
_
"github.com/33cn/plugin/plugin/store/init"
jsonrpc
"github.com/33cn/chain33/rpc/jsonclient"
rpctypes
"github.com/33cn/chain33/rpc/types"
"github.com/33cn/chain33/system/consensus/solo"
_
"github.com/33cn/plugin/plugin/dapp/init"
cty
"github.com/33cn/chain33/system/dapp/coins/types"
gty
"github.com/33cn/plugin/plugin/dapp/guess/types"
pty
"github.com/33cn/plugin/plugin/dapp/norm/types"
_
"github.com/33cn/plugin/plugin/store/init"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
)
var
(
...
...
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