From 819e777b6f242951034f555c8898bae60635d95b Mon Sep 17 00:00:00 2001 From: hackyminer Date: Sun, 25 Nov 2018 07:56:58 +0900 Subject: [PATCH 1/2] add a missing blockNum parameter --- ethash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethash.go b/ethash.go index 21c10c87..837a16c1 100644 --- a/ethash.go +++ b/ethash.go @@ -130,7 +130,7 @@ func (l *Light) Verify(block Block) bool { // to prevent DOS attacks. blockNum := block.NumberU64() if blockNum >= epochLength*2048 { - log.Debug(fmt.Sprintf("block number %d too high, limit is %d", epochLength*2048)) + log.Debug(fmt.Sprintf("block number %d too high, limit is %d", blockNum, epochLength*2048)) return false } From 5d650dd23e23b49b0cbb82b53f9952578fe78c78 Mon Sep 17 00:00:00 2001 From: hackyminer Date: Mon, 26 Nov 2018 03:41:48 +0900 Subject: [PATCH 2/2] travis fix --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index b83b02bf..fd8c5fb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: go go: - - 1.4.2 + - 1.10.x before_install: - # for g++4.8 and C++11 + # for g++5 and C++11 - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test # Set up go-ethereum @@ -15,9 +15,9 @@ before_install: - echo $GOPATH install: - # need to explicitly request version 1.48 since by default we get 1.46 which does not work with C++11 - - sudo apt-get install -qq --yes --force-yes g++-4.8 - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50 - - sudo apt-get install -qq wget cmake bash libboost-test1.48-dev libboost-system1.48-dev libboost-filesystem1.48-dev nodejs python-pip python-dev valgrind + # need to explicitly request version 1.55 since by default we get 1.46 which does not work with C++11 + - sudo apt-get install -qq --yes --force-yes g++-5 + - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 50 + - sudo apt-get install -qq wget cmake bash libboost-test1.55-dev libboost-system1.55-dev libboost-filesystem1.55-dev nodejs python-pip python-dev valgrind - sudo pip install virtualenv -q script: "./test/test.sh"