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
72290f67
Commit
72290f67
authored
Dec 14, 2014
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve merge conflict hell
parent
4c89d533
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
19 deletions
+1
-19
flags.go
cmd/ethereum/flags.go
+0
-5
cmd.go
cmd/utils/cmd.go
+1
-10
chain_manager.go
core/chain_manager.go
+0
-4
ethereum
ethereum
+0
-0
No files found.
cmd/ethereum/flags.go
View file @
72290f67
...
...
@@ -85,13 +85,8 @@ func Init() {
flag
.
StringVar
(
&
KeyRing
,
"keyring"
,
""
,
"identifier for keyring to use"
)
flag
.
StringVar
(
&
KeyStore
,
"keystore"
,
"db"
,
"system to store keyrings: db|file (db)"
)
flag
.
StringVar
(
&
OutboundPort
,
"port"
,
"30303"
,
"listening port"
)
<<<<<<<
HEAD
flag
.
StringVar
(
&
NatType
,
"nat"
,
""
,
"nat support (UPNP|PMP)"
)
flag
.
StringVar
(
&
PMPGateway
,
"gateway"
,
""
,
"PMP gateway IP"
)
=======
flag
.
StringVar
(
&
NatType
,
"nat"
,
""
,
"NAT support (UPNP|PMP) (none)"
)
flag
.
StringVar
(
&
PMPGateway
,
"pmp"
,
""
,
"Gateway IP for PMP"
)
>>>>>>>
adapt
cmd
/
cli
to
new
backend
flag
.
IntVar
(
&
MaxPeer
,
"maxpeer"
,
10
,
"maximum desired peers"
)
flag
.
IntVar
(
&
RpcPort
,
"rpcport"
,
8080
,
"port to start json-rpc server on"
)
flag
.
BoolVar
(
&
StartRpc
,
"rpc"
,
false
,
"start rpc server"
)
...
...
cmd/utils/cmd.go
View file @
72290f67
...
...
@@ -154,22 +154,13 @@ func NatType(natType string, gateway string) (nat p2p.NAT) {
nat
=
p2p
.
UPNP
()
case
"PMP"
:
ip
:=
net
.
ParseIP
(
gateway
)
<<<<<<<
HEAD
if
ip
!=
nil
{
clilogger
.
Fatalf
(
"bad PMP gateway '%s'"
,
gateway
)
=======
if
ip
==
nil
{
clilogger
.
Fatalln
(
"cannot resolve PMP gateway IP %s"
,
gateway
)
>>>>>>>
adapt
cmd
/
cli
to
new
backend
clilogger
.
Fatalf
(
"cannot resolve PMP gateway IP %s"
,
gateway
)
}
nat
=
p2p
.
PMP
(
ip
)
case
""
:
default
:
<<<<<<<
HEAD
clilogger
.
Fatalf
(
"unrecognised NAT type '%s'"
,
natType
)
=======
clilogger
.
Fatalln
(
"unrecognised NAT type %s"
,
natType
)
>>>>>>>
adapt
cmd
/
cli
to
new
backend
}
return
}
...
...
core/chain_manager.go
View file @
72290f67
...
...
@@ -137,10 +137,6 @@ func (bc *ChainManager) NewBlock(coinbase []byte) *types.Block {
return
block
}
func
(
self
*
ChainManager
)
Status
()
(
td
*
big
.
Int
,
currentBlock
[]
byte
,
genesisBlock
[]
byte
)
{
return
self
.
TD
,
self
.
CurrentBlock
.
Hash
(),
self
.
Genesis
()
.
Hash
()
}
func
(
bc
*
ChainManager
)
Reset
()
{
AddTestNetFunds
(
bc
.
genesisBlock
)
...
...
ethereum
deleted
100755 → 0
View file @
4c89d533
File deleted
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