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
4cd9d57b
Commit
4cd9d57b
authored
10 years ago
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #187 from honestmoney/develop
Fix for broken develop build and install.sh
parents
cad770c7
28b7dcc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
20 deletions
+23
-20
main.go
cmd/ethereum/main.go
+1
-1
install.sh
install.sh
+22
-19
No files found.
cmd/ethereum/main.go
View file @
4cd9d57b
...
...
@@ -93,7 +93,7 @@ func main() {
os
.
Exit
(
1
)
}
fmt
.
Printf
(
"RLP: %x
\n
state: %x
\n
hash: %x
\n
"
,
ethutil
.
Rlp
(
block
),
block
.
Get
Root
(),
block
.
Hash
())
fmt
.
Printf
(
"RLP: %x
\n
state: %x
\n
hash: %x
\n
"
,
ethutil
.
Rlp
(
block
),
block
.
Root
(),
block
.
Hash
())
// Leave the Println. This needs clean output for piping
fmt
.
Printf
(
"%s
\n
"
,
block
.
State
()
.
Dump
())
...
...
This diff is collapsed.
Click to expand it.
install.sh
View file @
4cd9d57b
#!/bin/sh
if
[
"
$1
"
==
""
]
;
then
echo
"Usage
$0
executable branch
ethereum develop
"
echo
"executable ethereum
or
mist"
echo
"branch develop
or
master"
echo
"Usage
$0
executable branch"
echo
"executable ethereum
|
mist"
echo
"branch develop
|
master"
exit
fi
exe
=
$1
path
=
$exe
branch
=
$2
if
[
"
$branch
"
==
"develop"
]
;
then
path
=
"cmd/
$exe
"
fi
# Test if go is installed
command
-v
go
>
/dev/null 2>&1
||
{
echo
>
&2
"Unable to find 'go'. This script requires go."
;
exit
1
;
}
...
...
@@ -19,20 +24,23 @@ if [ "$GOPATH" == "" ]; then
exit
fi
echo
"go get -u -d github.com/ethereum/go-ethereum/
$exe
"
go get
-v
-u
-d
github.com/ethereum/go-ethereum/
$exe
if
[
$?
!=
0
]
;
then
echo
"go get failed"
exit
fi
echo
"eth-go"
echo
"changing branch to
$branch
"
cd
$GOPATH
/src/github.com/ethereum/go-ethereum
git checkout
$branch
echo
"go-ethereum"
cd
$GOPATH
/src/github.com/ethereum/go-ethereum/
$exe
git checkout
$branch
# installing package dependencies doesn't work for develop
# branch as go get always pulls from master head
# so build will continue to fail, but this installs locally
# for people who git clone since go install will manage deps
#echo "go get -u -d github.com/ethereum/go-ethereum/$path"
#go get -v -u -d github.com/ethereum/go-ethereum/$path
#if [ $? != 0 ]; then
# echo "go get failed"
# exit
#fi
cd
$GOPATH
/src/github.com/ethereum/go-ethereum/
$path
if
[
"
$exe
"
==
"mist"
]
;
then
echo
"Building Mist GUI. Assuming Qt is installed. If this step"
...
...
@@ -42,9 +50,4 @@ else
fi
go
install
if
[
$?
==
0
]
;
then
echo
"go install failed"
exit
fi
echo
"done. Please run
$exe
:-)"
This diff is collapsed.
Click to expand it.
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