From cbf7147409eee665eb82287e135d75fb54dece81 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 09:40:25 -0400 Subject: [PATCH 01/21] update testnet block --- expanse_genesis.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expanse_genesis.json b/expanse_genesis.json index 96df5bbb5a..102238f697 100644 --- a/expanse_genesis.json +++ b/expanse_genesis.json @@ -8,6 +8,6 @@ "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x90c4384bb05d96d2f54b27e0102da5240f7833ae", "alloc": { - "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "1000000000000000000000000" } + "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "100000000000000000000000000000" } } } \ No newline at end of file From 43b929d242b405b47a0760c6d14cc866ae594424 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 12:42:15 -0400 Subject: [PATCH 02/21] update docker --- .gitignore | 1 + README.md | 2 +- docker/Dockerfile | 13 +++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 28b3dc4ff7..41ad641380 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ profile.tmp profile.cov .idea/workspace.xml +*.idea/ \ No newline at end of file diff --git a/README.md b/README.md index 7be16315d4..282a1977c2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ master | [![Build+Status](https://build.ethdev.com/buildstatusimage?builder=L The following builds are build automatically by our build servers after each push to the [develop](https://github.com/expanse-project/go-expanse/tree/develop) branch. -* [Docker](https://registry.hub.docker.com/u/expanse/client-go/) +* [Docker](https://registry.hub.docker.com/u/expanse/go-expanse/) * [OS X](http://build.ethdev.com/builds/OSX%20Go%20develop%20branch/Mist-OSX-latest.dmg) * Ubuntu [trusty](https://build.ethdev.com/builds/Linux%20Go%20develop%20deb%20i386-trusty/latest/) | diff --git a/docker/Dockerfile b/docker/Dockerfile index b31368c291..2e9865a4e2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:utopic -MAINTAINER caktux +MAINTAINER chrisfranko ENV DEBIAN_FRONTEND noninteractive @@ -12,11 +12,12 @@ RUN apt-get dist-upgrade -q -y RUN apt-get install -q -y unattended-upgrades # Install Expanse -RUN apt-get install -q -y software-properties-common -RUN add-apt-repository ppa:expanse/expanse -RUN add-apt-repository ppa:expanse/expanse-dev -RUN apt-get update -RUN apt-get install -q -y gexp +RUN apt-get install git binutils bison gcc make libgmp3-dev +RUN bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) +RUN go install go1.4 +RUN gvm use go1.4 --default +RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse +RUN make gexp # Install supervisor RUN apt-get install -q -y supervisor From f530fb815095a90bfbfbe9322af6849b7a32eb16 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 12:51:01 -0400 Subject: [PATCH 03/21] update docker file --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2e9865a4e2..cf781c87c5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,11 +12,12 @@ RUN apt-get dist-upgrade -q -y RUN apt-get install -q -y unattended-upgrades # Install Expanse -RUN apt-get install git binutils bison gcc make libgmp3-dev +RUN apt-get install -q -s git binutils bison gcc make libgmp3-dev RUN bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) RUN go install go1.4 RUN gvm use go1.4 --default RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse +RUN git checkout develop RUN make gexp # Install supervisor From 338fcf7b3da1ccf6336adffa8806ce5d11131807 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 13:14:41 -0400 Subject: [PATCH 04/21] docker update 2 --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index cf781c87c5..6ee5b71f6e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,8 +12,8 @@ RUN apt-get dist-upgrade -q -y RUN apt-get install -q -y unattended-upgrades # Install Expanse -RUN apt-get install -q -s git binutils bison gcc make libgmp3-dev -RUN bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) +RUN apt-get install -q -s curl git mercurial binutils bison gcc make libgmp3-dev build-essential +RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash RUN go install go1.4 RUN gvm use go1.4 --default RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse From 2e7a411dd0049e6d4c4d6b010ff8cdbac53e60e6 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 13:21:46 -0400 Subject: [PATCH 05/21] oi --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6ee5b71f6e..7edfcfde95 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get dist-upgrade -q -y RUN apt-get install -q -y unattended-upgrades # Install Expanse -RUN apt-get install -q -s curl git mercurial binutils bison gcc make libgmp3-dev build-essential +RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash RUN go install go1.4 RUN gvm use go1.4 --default From 82267ab8120716d36279f5b764297c143a35ed1a Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 13:31:48 -0400 Subject: [PATCH 06/21] docker again --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 7edfcfde95..b19907f347 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,6 +14,7 @@ RUN apt-get install -q -y unattended-upgrades # Install Expanse RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash +RUN source /root/.gvm/scripts/gvm RUN go install go1.4 RUN gvm use go1.4 --default RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse From 742b0e0ff7cae0d0f4f048919a9d29285a72364b Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 09:40:25 -0400 Subject: [PATCH 07/21] update testnet block update docker update docker file docker update 2 oi docker again --- .gitignore | 1 + README.md | 2 +- docker/Dockerfile | 15 +++++++++------ expanse_genesis.json | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 28b3dc4ff7..41ad641380 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ profile.tmp profile.cov .idea/workspace.xml +*.idea/ \ No newline at end of file diff --git a/README.md b/README.md index 7be16315d4..282a1977c2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ master | [![Build+Status](https://build.ethdev.com/buildstatusimage?builder=L The following builds are build automatically by our build servers after each push to the [develop](https://github.com/expanse-project/go-expanse/tree/develop) branch. -* [Docker](https://registry.hub.docker.com/u/expanse/client-go/) +* [Docker](https://registry.hub.docker.com/u/expanse/go-expanse/) * [OS X](http://build.ethdev.com/builds/OSX%20Go%20develop%20branch/Mist-OSX-latest.dmg) * Ubuntu [trusty](https://build.ethdev.com/builds/Linux%20Go%20develop%20deb%20i386-trusty/latest/) | diff --git a/docker/Dockerfile b/docker/Dockerfile index b31368c291..b19907f347 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:utopic -MAINTAINER caktux +MAINTAINER chrisfranko ENV DEBIAN_FRONTEND noninteractive @@ -12,11 +12,14 @@ RUN apt-get dist-upgrade -q -y RUN apt-get install -q -y unattended-upgrades # Install Expanse -RUN apt-get install -q -y software-properties-common -RUN add-apt-repository ppa:expanse/expanse -RUN add-apt-repository ppa:expanse/expanse-dev -RUN apt-get update -RUN apt-get install -q -y gexp +RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential +RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash +RUN source /root/.gvm/scripts/gvm +RUN go install go1.4 +RUN gvm use go1.4 --default +RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse +RUN git checkout develop +RUN make gexp # Install supervisor RUN apt-get install -q -y supervisor diff --git a/expanse_genesis.json b/expanse_genesis.json index 96df5bbb5a..102238f697 100644 --- a/expanse_genesis.json +++ b/expanse_genesis.json @@ -8,6 +8,6 @@ "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x90c4384bb05d96d2f54b27e0102da5240f7833ae", "alloc": { - "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "1000000000000000000000000" } + "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "100000000000000000000000000000" } } } \ No newline at end of file From d02ab42248273d9a33afde8252cb024e531cc636 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 15:32:29 -0400 Subject: [PATCH 08/21] docker2 --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b19907f347..30d9529aa0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,7 +14,7 @@ RUN apt-get install -q -y unattended-upgrades # Install Expanse RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash -RUN source /root/.gvm/scripts/gvm +RUN source ./root/.gvm/scripts/gvm RUN go install go1.4 RUN gvm use go1.4 --default RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse From 48ad425cb3be1239ce161a33dceb6f907c19c5f2 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 16:17:12 -0400 Subject: [PATCH 09/21] docker3 --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 30d9529aa0..0aaeca6861 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,7 +14,7 @@ RUN apt-get install -q -y unattended-upgrades # Install Expanse RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash -RUN source ./root/.gvm/scripts/gvm +RUN /bin/bash -c "source /root/.gvm/scripts/gvm" RUN go install go1.4 RUN gvm use go1.4 --default RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse From 80a7885a9e4fa63446ba74dbe3b6136e3d80657b Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 16:30:29 -0400 Subject: [PATCH 10/21] fixed gvm --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0aaeca6861..fc75216781 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get install -q -y unattended-upgrades RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash RUN /bin/bash -c "source /root/.gvm/scripts/gvm" -RUN go install go1.4 +RUN gvm install go1.4 RUN gvm use go1.4 --default RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse RUN git checkout develop From a0c09ab5ced8a0f55506b58bf7898838a564673d Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 16:48:29 -0400 Subject: [PATCH 11/21] docker change --- docker/Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index fc75216781..b650a889c0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,10 +13,17 @@ RUN apt-get install -q -y unattended-upgrades # Install Expanse RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential -RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash -RUN /bin/bash -c "source /root/.gvm/scripts/gvm" -RUN gvm install go1.4 -RUN gvm use go1.4 --default + +# Install Go +RUN \ + mkdir -p /goroot && \ + curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1 + +# Set environment variables. +ENV GOROOT /goroot +ENV GOPATH /gopath +ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH + RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse RUN git checkout develop RUN make gexp From 9964835efdb429a819ae269fe4f6420658856aee Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 16:59:59 -0400 Subject: [PATCH 12/21] docking is meh --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b650a889c0..4b3dc7e0a0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -24,7 +24,8 @@ ENV GOROOT /goroot ENV GOPATH /gopath ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH -RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse +RUN git clone http://www.github.com/expanse-project/go-expanse.git +RUN cd go-expanse RUN git checkout develop RUN make gexp From 93da39a0b970dce3fd62c7e2a55bb78839c97921 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 17:19:31 -0400 Subject: [PATCH 13/21] i hate docker --- docker/Dockerfile | 4 +--- docker/supervisord.conf | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4b3dc7e0a0..31ac2eba20 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,9 +25,7 @@ ENV GOPATH /gopath ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH RUN git clone http://www.github.com/expanse-project/go-expanse.git -RUN cd go-expanse -RUN git checkout develop -RUN make gexp +RUN cd go-expanse && git checkout develop && make develop # Install supervisor RUN apt-get install -q -y supervisor diff --git a/docker/supervisord.conf b/docker/supervisord.conf index d5d1da6fd4..0ad1d5978e 100644 --- a/docker/supervisord.conf +++ b/docker/supervisord.conf @@ -3,8 +3,8 @@ nodaemon=false [program:gexp] priority=30 -directory=/ -command=gexp --rpc +directory=~/go-expanse/ +command=build/bin/gexp --rpc user=root autostart=true autorestart=true From da507bc9dafa4f895b3fdc509e01cfe890b0a331 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 17:36:57 -0400 Subject: [PATCH 14/21] dockingsucks --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 31ac2eba20..861d82a602 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,7 +25,7 @@ ENV GOPATH /gopath ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH RUN git clone http://www.github.com/expanse-project/go-expanse.git -RUN cd go-expanse && git checkout develop && make develop +RUN cd go-expanse && git checkout develop && make gexp # Install supervisor RUN apt-get install -q -y supervisor From 3d684095f71df1ba26cae5c367647ecfa9626150 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Thu, 3 Sep 2015 09:40:25 -0400 Subject: [PATCH 15/21] update testnet block update docker update docker file docker update 2 oi docker again --- .gitignore | 1 + README.md | 2 +- docker/Dockerfile | 15 +++++++++------ expanse_genesis.json | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 28b3dc4ff7..41ad641380 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ profile.tmp profile.cov .idea/workspace.xml +*.idea/ \ No newline at end of file diff --git a/README.md b/README.md index 7be16315d4..282a1977c2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ master | [![Build+Status](https://build.ethdev.com/buildstatusimage?builder=L The following builds are build automatically by our build servers after each push to the [develop](https://github.com/expanse-project/go-expanse/tree/develop) branch. -* [Docker](https://registry.hub.docker.com/u/expanse/client-go/) +* [Docker](https://registry.hub.docker.com/u/expanse/go-expanse/) * [OS X](http://build.ethdev.com/builds/OSX%20Go%20develop%20branch/Mist-OSX-latest.dmg) * Ubuntu [trusty](https://build.ethdev.com/builds/Linux%20Go%20develop%20deb%20i386-trusty/latest/) | diff --git a/docker/Dockerfile b/docker/Dockerfile index b31368c291..b19907f347 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:utopic -MAINTAINER caktux +MAINTAINER chrisfranko ENV DEBIAN_FRONTEND noninteractive @@ -12,11 +12,14 @@ RUN apt-get dist-upgrade -q -y RUN apt-get install -q -y unattended-upgrades # Install Expanse -RUN apt-get install -q -y software-properties-common -RUN add-apt-repository ppa:expanse/expanse -RUN add-apt-repository ppa:expanse/expanse-dev -RUN apt-get update -RUN apt-get install -q -y gexp +RUN apt-get install -q -y curl git mercurial binutils bison gcc make libgmp3-dev build-essential +RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash +RUN source /root/.gvm/scripts/gvm +RUN go install go1.4 +RUN gvm use go1.4 --default +RUN git clone http://www.github.com/expanse-project/go-expanse.git && cd go-expanse +RUN git checkout develop +RUN make gexp # Install supervisor RUN apt-get install -q -y supervisor diff --git a/expanse_genesis.json b/expanse_genesis.json index 96df5bbb5a..102238f697 100644 --- a/expanse_genesis.json +++ b/expanse_genesis.json @@ -8,6 +8,6 @@ "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x90c4384bb05d96d2f54b27e0102da5240f7833ae", "alloc": { - "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "1000000000000000000000000" } + "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "100000000000000000000000000000" } } } \ No newline at end of file From 512ebd876bf90ad395784d793070ec0547676c02 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Sat, 5 Sep 2015 15:26:15 -0400 Subject: [PATCH 16/21] update blockreward to 8 because its a lucky number :dancer: --- core/fees.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fees.go b/core/fees.go index 98adc603d9..2092f145e6 100644 --- a/core/fees.go +++ b/core/fees.go @@ -20,4 +20,4 @@ import ( "math/big" ) -var BlockReward *big.Int = big.NewInt(6e+18) +var BlockReward *big.Int = big.NewInt(8e+18) From dc4dcaba48cce54b8c1d377fd7f2b499d80cf8ee Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Sat, 5 Sep 2015 15:38:49 -0400 Subject: [PATCH 17/21] update 60606 to 42786 60606 looks evil 42786 is my birthday --- cmd/utils/flags.go | 2 +- docker/Dockerfile | 2 +- exp/backend.go | 6 ++--- p2p/discover/database_test.go | 24 +++++++++---------- p2p/discover/node.go | 4 ++-- p2p/discover/udp_test.go | 8 +++---- .../test-files/docker-python/Dockerfile | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 63b97970f0..7df2d66334 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -295,7 +295,7 @@ var ( ListenPortFlag = cli.IntFlag{ Name: "port", Usage: "Network listening port", - Value: 60606, + Value: 42786, } BootnodesFlag = cli.StringFlag{ Name: "bootnodes", diff --git a/docker/Dockerfile b/docker/Dockerfile index 861d82a602..10329944d5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,7 +34,7 @@ RUN apt-get install -q -y supervisor ADD supervisord.conf supervisord.conf EXPOSE 9656 -EXPOSE 60606 +EXPOSE 42786 CMD ["-n", "-c", "/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord"] diff --git a/exp/backend.go b/exp/backend.go index b6fef908f1..503729f457 100644 --- a/exp/backend.go +++ b/exp/backend.go @@ -61,10 +61,10 @@ var ( defaultBootNodes = []*discover.Node{ // ETH/DEV Go Bootnodes - discover.MustParseNode("enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@52.16.188.185:60606"), - discover.MustParseNode("enode://de471bccee3d042261d52e9bff31458daecc406142b401d4cd848f677479f73104b9fdeb090af9583d3391b7f10cb2ba9e26865dd5fca4fcdc0fb1e3b723c786@54.94.239.50:60606"), + discover.MustParseNode("enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@52.16.188.185:42786"), + discover.MustParseNode("enode://de471bccee3d042261d52e9bff31458daecc406142b401d4cd848f677479f73104b9fdeb090af9583d3391b7f10cb2ba9e26865dd5fca4fcdc0fb1e3b723c786@54.94.239.50:42786"), // ETH/DEV cpp-expanse (poc-9.ethdev.com) - discover.MustParseNode("enode://487611428e6c99a11a9795a6abe7b529e81315ca6aad66e2a2fc76e3adf263faba0d35466c2f8f68d561dbefa8878d4df5f1f2ddb1fbeab7f42ffb8cd328bd4a@5.1.83.226:60606"), + discover.MustParseNode("enode://487611428e6c99a11a9795a6abe7b529e81315ca6aad66e2a2fc76e3adf263faba0d35466c2f8f68d561dbefa8878d4df5f1f2ddb1fbeab7f42ffb8cd328bd4a@5.1.83.226:42786"), } staticNodes = "static-nodes.json" // Path within to search for the static node list diff --git a/p2p/discover/database_test.go b/p2p/discover/database_test.go index ed1b29a591..9be85bd667 100644 --- a/p2p/discover/database_test.go +++ b/p2p/discover/database_test.go @@ -105,8 +105,8 @@ func TestNodeDBFetchStore(t *testing.T) { node := newNode( MustHexID("0x1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439"), net.IP{192, 168, 0, 1}, - 60606, - 60606, + 42786, + 42786, ) inst := time.Now() num := 314 @@ -166,8 +166,8 @@ var nodeDBSeedQueryNodes = []struct { node: newNode( MustHexID("0x01d9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439"), net.IP{127, 0, 0, 1}, - 60606, - 60606, + 42786, + 42786, ), pong: time.Now().Add(-2 * time.Second), }, @@ -175,8 +175,8 @@ var nodeDBSeedQueryNodes = []struct { node: newNode( MustHexID("0x02d9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439"), net.IP{127, 0, 0, 2}, - 60606, - 60606, + 42786, + 42786, ), pong: time.Now().Add(-3 * time.Second), }, @@ -184,8 +184,8 @@ var nodeDBSeedQueryNodes = []struct { node: newNode( MustHexID("0x03d9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439"), net.IP{127, 0, 0, 3}, - 60606, - 60606, + 42786, + 42786, ), pong: time.Now().Add(-1 * time.Second), }, @@ -335,8 +335,8 @@ var nodeDBExpirationNodes = []struct { node: newNode( MustHexID("0x01d9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439"), net.IP{127, 0, 0, 1}, - 60606, - 60606, + 42786, + 42786, ), pong: time.Now().Add(-nodeDBNodeExpiration + time.Minute), exp: false, @@ -344,8 +344,8 @@ var nodeDBExpirationNodes = []struct { node: newNode( MustHexID("0x02d9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439"), net.IP{127, 0, 0, 2}, - 60606, - 60606, + 42786, + 42786, ), pong: time.Now().Add(-nodeDBNodeExpiration - time.Minute), exp: true, diff --git a/p2p/discover/node.go b/p2p/discover/node.go index 279b48b4a2..8f93232686 100644 --- a/p2p/discover/node.go +++ b/p2p/discover/node.go @@ -98,10 +98,10 @@ func (n *Node) String() string { // parameter "discport". // // In the following example, the node URL describes -// a node with IP address 10.3.58.6, TCP listening port 60606 +// a node with IP address 10.3.58.6, TCP listening port 42786 // and UDP discovery port 30301. // -// enode://@10.3.58.6:60606?discport=30301 +// enode://@10.3.58.6:42786?discport=30301 func ParseNode(rawurl string) (*Node, error) { var ( id NodeID diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go index f9181d5b4f..1dc9d83b2c 100644 --- a/p2p/discover/udp_test.go +++ b/p2p/discover/udp_test.go @@ -67,7 +67,7 @@ func newUDPTest(t *testing.T) *udpTest { pipe: newpipe(), localkey: newkey(), remotekey: newkey(), - remoteaddr: &net.UDPAddr{IP: net.IP{1, 2, 3, 4}, Port: 60606}, + remoteaddr: &net.UDPAddr{IP: net.IP{1, 2, 3, 4}, Port: 42786}, } test.table, test.udp = newUDP(test.localkey, test.pipe, nil, "") return test @@ -296,10 +296,10 @@ func TestUDP_findnodeMultiReply(t *testing.T) { // send the reply as two packets. list := []*Node{ - MustParseNode("enode://ba85011c70bcc5c04d8607d3a0ed29aa6179c092cbdda10d5d32684fb33ed01bd94f588ca8f91ac48318087dcb02eaf36773a7a453f0eedd6742af668097b29c@10.0.1.16:60606?discport=30304"), - MustParseNode("enode://81fa361d25f157cd421c60dcc28d8dac5ef6a89476633339c5df30287474520caca09627da18543d9079b5b288698b542d56167aa5c09111e55acdbbdf2ef799@10.0.1.16:60606"), + MustParseNode("enode://ba85011c70bcc5c04d8607d3a0ed29aa6179c092cbdda10d5d32684fb33ed01bd94f588ca8f91ac48318087dcb02eaf36773a7a453f0eedd6742af668097b29c@10.0.1.16:42786?discport=30304"), + MustParseNode("enode://81fa361d25f157cd421c60dcc28d8dac5ef6a89476633339c5df30287474520caca09627da18543d9079b5b288698b542d56167aa5c09111e55acdbbdf2ef799@10.0.1.16:42786"), MustParseNode("enode://9bffefd833d53fac8e652415f4973bee289e8b1a5c6c4cbe70abf817ce8a64cee11b823b66a987f51aaa9fba0d6a91b3e6bf0d5a5d1042de8e9eeea057b217f8@10.0.1.36:30301?discport=17"), - MustParseNode("enode://1b5b4aa662d7cb44a7221bfba67302590b643028197a7d5214790f3bac7aaa4a3241be9e83c09cf1f6c69d007c634faae3dc1b1221793e8446c0b3a09de65960@10.0.1.16:60606"), + MustParseNode("enode://1b5b4aa662d7cb44a7221bfba67302590b643028197a7d5214790f3bac7aaa4a3241be9e83c09cf1f6c69d007c634faae3dc1b1221793e8446c0b3a09de65960@10.0.1.16:42786"), } rpclist := make([]rpcNode, len(list)) for i := range list { diff --git a/tests/files/ansible/test-files/docker-python/Dockerfile b/tests/files/ansible/test-files/docker-python/Dockerfile index c8e0427f63..fd3c8fe5b5 100755 --- a/tests/files/ansible/test-files/docker-python/Dockerfile +++ b/tests/files/ansible/test-files/docker-python/Dockerfile @@ -16,7 +16,7 @@ RUN cd pyethereum && curl https://bootstrap.pypa.io/bootstrap-buildout.py | pyth RUN cd pyethereum && bin/buildout #default port for incoming requests -EXPOSE 60606 +EXPOSE 42786 WORKDIR /pyethereum From 033d93b7331976962bfb253850a49c84199fa6d4 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Sun, 6 Sep 2015 12:58:10 -0400 Subject: [PATCH 18/21] update jsre --- expanse-buildbot | 1 - jsre/ethereum_js.go | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 160000 expanse-buildbot diff --git a/expanse-buildbot b/expanse-buildbot deleted file mode 160000 index bce4905f5b..0000000000 --- a/expanse-buildbot +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bce4905f5b10f3940303033747bce866f3d46057 diff --git a/jsre/ethereum_js.go b/jsre/ethereum_js.go index ddda640a58..9a6cc8716b 100644 --- a/jsre/ethereum_js.go +++ b/jsre/ethereum_js.go @@ -2424,11 +2424,11 @@ module.exports={ */ var version = require('./version.json'); -var net = require('./web3/net'); -var exp = require('./web3/exp'); -var db = require('./web3/db'); -var shh = require('./web3/shh'); -var watches = require('./web3/watches'); +var net = require('./web3/methods/net'); +var eth = require('./web3/methods/eth'); +var db = require('./web3/methods/db'); +var shh = require('./web3/methods/shh'); +var watches = require('./web3/methods/watches'); var Filter = require('./web3/filter'); var utils = require('./utils/utils'); var formatters = require('./web3/formatters'); From 361a56ce32cd23c9e7aaeaff6aa832240de4c3b5 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Sun, 6 Sep 2015 13:06:52 -0400 Subject: [PATCH 19/21] replace eth for exp --- jsre/ethereum_js.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/jsre/ethereum_js.go b/jsre/ethereum_js.go index 9a6cc8716b..98519a42e3 100644 --- a/jsre/ethereum_js.go +++ b/jsre/ethereum_js.go @@ -2425,7 +2425,7 @@ module.exports={ var version = require('./version.json'); var net = require('./web3/methods/net'); -var eth = require('./web3/methods/eth'); +var exp = require('./web3/methods/exp'); var db = require('./web3/methods/db'); var shh = require('./web3/methods/shh'); var watches = require('./web3/methods/watches'); @@ -2573,7 +2573,7 @@ setupMethods(web3.shh, shh.methods); module.exports = web3; -},{"./utils/config":18,"./utils/sha3":19,"./utils/utils":20,"./version.json":21,"./web3/batch":24,"./web3/filter":28,"./web3/formatters":29,"./web3/method":35,"./web3/methods/db":36,"./web3/methods/eth":37,"./web3/methods/net":38,"./web3/methods/shh":39,"./web3/methods/watches":40,"./web3/property":42,"./web3/requestmanager":43}],23:[function(require,module,exports){ +},{"./utils/config":18,"./utils/sha3":19,"./utils/utils":20,"./version.json":21,"./web3/batch":24,"./web3/filter":28,"./web3/formatters":29,"./web3/method":35,"./web3/methods/db":36,"./web3/methods/exp":37,"./web3/methods/net":38,"./web3/methods/shh":39,"./web3/methods/watches":40,"./web3/property":42,"./web3/requestmanager":43}],23:[function(require,module,exports){ /* This file is part of expanse.js. @@ -3237,7 +3237,7 @@ SolidityEvent.prototype.execute = function (indexed, options, callback) { var o = this.encode(indexed, options); var formatter = this.decode.bind(this); - return new Filter(o, watches.eth(), formatter, callback); + return new Filter(o, watches.exp(), formatter, callback); }; /** @@ -4963,7 +4963,7 @@ module.exports = { * ] * }, * - * @class [web3] eth + * @class [web3] exp * @constructor */ @@ -4994,7 +4994,7 @@ var uncleCountCall = function (args) { return (utils.isString(args[0]) && args[0].indexOf('0x') === 0) ? 'eth_getUncleCountByBlockHash' : 'eth_getUncleCountByBlockNumber'; }; -/// @returns an array of objects describing web3.eth api methods +/// @returns an array of objects describing web3.exp api methods var getBalance = new Method({ name: 'getBalance', @@ -5170,7 +5170,7 @@ var methods = [ getWork ]; -/// @returns an array of objects describing web3.eth api properties +/// @returns an array of objects describing web3.exp api properties @@ -5236,11 +5236,11 @@ module.exports = { var utils = require('../../utils/utils'); var Property = require('../property'); -/// @returns an array of objects describing web3.eth api methods +/// @returns an array of objects describing web3.exp api methods var methods = [ ]; -/// @returns an array of objects describing web3.eth api properties +/// @returns an array of objects describing web3.exp api properties var properties = [ new Property({ name: 'listening', @@ -5356,7 +5356,7 @@ module.exports = { var Method = require('../method'); /// @returns an array of objects describing web3.exp.filter api methods -var eth = function () { +var exp = function () { var newFilterCall = function (args) { var type = args[0]; @@ -5441,7 +5441,7 @@ var shh = function () { }; module.exports = { - eth: eth, + exp: exp, shh: shh }; From 452e263d5d0fc765db5e940e1d019301f7f4a49d Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Mon, 7 Sep 2015 19:13:38 -0400 Subject: [PATCH 20/21] update blocktime and test_genesis --- params/protocol_params.go | 2 +- expanse_genesis.json => test_genesis.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename expanse_genesis.json => test_genesis.json (74%) diff --git a/params/protocol_params.go b/params/protocol_params.go index 665c8b5d99..1721c597b9 100755 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -32,7 +32,7 @@ var ( DifficultyBoundDivisor = big.NewInt(2048) // The bound divisor of the difficulty, used in the update calculations. QuadCoeffDiv = big.NewInt(512) // Divisor for the quadratic particle of the memory cost equation. GenesisDifficulty = big.NewInt(131072) // Difficulty of the Genesis block. - DurationLimit = big.NewInt(13) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not. + DurationLimit = big.NewInt(60) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not. SstoreSetGas = big.NewInt(20000) // Once per SLOAD operation. LogDataGas = big.NewInt(8) // Per byte in a LOG* operation's data. CallStipend = big.NewInt(2300) // Free gas given at beginning of call. diff --git a/expanse_genesis.json b/test_genesis.json similarity index 74% rename from expanse_genesis.json rename to test_genesis.json index 102238f697..a44e222f2c 100644 --- a/expanse_genesis.json +++ b/test_genesis.json @@ -4,10 +4,11 @@ "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x4672616e6b6f497346726565646f6d", "gasLimit": "0x1388", - "difficulty": "0x400000000", + "difficulty": "0x4000000", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x90c4384bb05d96d2f54b27e0102da5240f7833ae", "alloc": { - "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "100000000000000000000000000000" } + "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "100000000000000000000000000000" }, + "0x4623487929ab29c6f9a8883cd83b9ddc45c2d88a": { "balance": "77777777777777777"} } } \ No newline at end of file From 3b73ce143cd68166340aebfc57dab2a706dd908d Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Mon, 7 Sep 2015 19:20:48 -0400 Subject: [PATCH 21/21] fix test genesis --- test_genesis.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_genesis.json b/test_genesis.json index a44e222f2c..20342cbfcd 100644 --- a/test_genesis.json +++ b/test_genesis.json @@ -8,7 +8,7 @@ "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x90c4384bb05d96d2f54b27e0102da5240f7833ae", "alloc": { - "0x90c4384bb05d96d2f54b27e0102da5240f7833ae": { "balance": "100000000000000000000000000000" }, - "0x4623487929ab29c6f9a8883cd83b9ddc45c2d88a": { "balance": "77777777777777777"} + "0x93decab0cd745598860f782ac1e8f046cb99e898": { "balance": "100000000000000000000000000000" }, + "0x656a2b5ed407c26e7c04d9e5449edd3109c99506": { "balance": "77777777777777777"} } } \ No newline at end of file