Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Travis fix #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
2 changes: 1 addition & 1 deletion ethash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down