Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
张蕾
Geth-Modification
Commits
e389585f
Commit
e389585f
authored
May 12, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default keystore dir
parent
231fe04f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
js_test.go
cmd/geth/js_test.go
+1
-1
flags.go
cmd/utils/flags.go
+1
-1
natspec_e2e_test.go
common/natspec/natspec_e2e_test.go
+2
-2
crypto.go
crypto/crypto.go
+1
-1
block_test.go
tests/block_test.go
+1
-1
No files found.
cmd/geth/js_test.go
View file @
e389585f
...
@@ -68,7 +68,7 @@ func testJEthRE(t *testing.T) (string, *testjethre, *eth.Ethereum) {
...
@@ -68,7 +68,7 @@ func testJEthRE(t *testing.T) (string, *testjethre, *eth.Ethereum) {
// set up mock genesis with balance on the testAddress
// set up mock genesis with balance on the testAddress
core
.
GenesisData
=
[]
byte
(
testGenesis
)
core
.
GenesisData
=
[]
byte
(
testGenesis
)
ks
:=
crypto
.
NewKeyStorePassphrase
(
filepath
.
Join
(
tmp
,
"keys"
))
ks
:=
crypto
.
NewKeyStorePassphrase
(
filepath
.
Join
(
tmp
,
"keys
tore
"
))
am
:=
accounts
.
NewManager
(
ks
)
am
:=
accounts
.
NewManager
(
ks
)
ethereum
,
err
:=
eth
.
New
(
&
eth
.
Config
{
ethereum
,
err
:=
eth
.
New
(
&
eth
.
Config
{
DataDir
:
tmp
,
DataDir
:
tmp
,
...
...
cmd/utils/flags.go
View file @
e389585f
...
@@ -346,7 +346,7 @@ func GetChain(ctx *cli.Context) (*core.ChainManager, common.Database, common.Dat
...
@@ -346,7 +346,7 @@ func GetChain(ctx *cli.Context) (*core.ChainManager, common.Database, common.Dat
func
GetAccountManager
(
ctx
*
cli
.
Context
)
*
accounts
.
Manager
{
func
GetAccountManager
(
ctx
*
cli
.
Context
)
*
accounts
.
Manager
{
dataDir
:=
ctx
.
GlobalString
(
DataDirFlag
.
Name
)
dataDir
:=
ctx
.
GlobalString
(
DataDirFlag
.
Name
)
ks
:=
crypto
.
NewKeyStorePassphrase
(
filepath
.
Join
(
dataDir
,
"keys"
))
ks
:=
crypto
.
NewKeyStorePassphrase
(
filepath
.
Join
(
dataDir
,
"keys
tore
"
))
return
accounts
.
NewManager
(
ks
)
return
accounts
.
NewManager
(
ks
)
}
}
...
...
common/natspec/natspec_e2e_test.go
View file @
e389585f
...
@@ -104,13 +104,13 @@ func testEth(t *testing.T) (ethereum *eth.Ethereum, err error) {
...
@@ -104,13 +104,13 @@ func testEth(t *testing.T) (ethereum *eth.Ethereum, err error) {
os
.
RemoveAll
(
"/tmp/eth-natspec/"
)
os
.
RemoveAll
(
"/tmp/eth-natspec/"
)
err
=
os
.
MkdirAll
(
"/tmp/eth-natspec/keys"
,
os
.
ModePerm
)
err
=
os
.
MkdirAll
(
"/tmp/eth-natspec/keys
tore
"
,
os
.
ModePerm
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
err
)
}
}
// create a testAddress
// create a testAddress
ks
:=
crypto
.
NewKeyStorePassphrase
(
"/tmp/eth-natspec/keys"
)
ks
:=
crypto
.
NewKeyStorePassphrase
(
"/tmp/eth-natspec/keys
tore
"
)
am
:=
accounts
.
NewManager
(
ks
)
am
:=
accounts
.
NewManager
(
ks
)
testAccount
,
err
:=
am
.
NewAccount
(
"password"
)
testAccount
,
err
:=
am
.
NewAccount
(
"password"
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
crypto/crypto.go
View file @
e389585f
...
@@ -181,7 +181,7 @@ func Decrypt(prv *ecdsa.PrivateKey, ct []byte) ([]byte, error) {
...
@@ -181,7 +181,7 @@ func Decrypt(prv *ecdsa.PrivateKey, ct []byte) ([]byte, error) {
// Used only by block tests.
// Used only by block tests.
func
ImportBlockTestKey
(
privKeyBytes
[]
byte
)
error
{
func
ImportBlockTestKey
(
privKeyBytes
[]
byte
)
error
{
ks
:=
NewKeyStorePassphrase
(
common
.
DefaultDataDir
()
+
"/keys"
)
ks
:=
NewKeyStorePassphrase
(
common
.
DefaultDataDir
()
+
"/keys
tore
"
)
ecKey
:=
ToECDSA
(
privKeyBytes
)
ecKey
:=
ToECDSA
(
privKeyBytes
)
key
:=
&
Key
{
key
:=
&
Key
{
Id
:
uuid
.
NewRandom
(),
Id
:
uuid
.
NewRandom
(),
...
...
tests/block_test.go
View file @
e389585f
...
@@ -99,7 +99,7 @@ func runBlockTest(name string, test *BlockTest, t *testing.T) {
...
@@ -99,7 +99,7 @@ func runBlockTest(name string, test *BlockTest, t *testing.T) {
}
}
func
testEthConfig
()
*
eth
.
Config
{
func
testEthConfig
()
*
eth
.
Config
{
ks
:=
crypto
.
NewKeyStorePassphrase
(
filepath
.
Join
(
common
.
DefaultDataDir
(),
"keys"
))
ks
:=
crypto
.
NewKeyStorePassphrase
(
filepath
.
Join
(
common
.
DefaultDataDir
(),
"keys
tore
"
))
return
&
eth
.
Config
{
return
&
eth
.
Config
{
DataDir
:
common
.
DefaultDataDir
(),
DataDir
:
common
.
DefaultDataDir
(),
...
...
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