Skip to content

Commit cc5b72e

Browse files
author
Nicolás Tallar
authored
Merge branch 'develop' into fix/fix-block-fetcher-bug
2 parents c6c439c + dcc5b77 commit cc5b72e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1008
-357
lines changed

.circleci/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,3 @@ RUN useradd --create-home -s /bin/bash circleci
2626
WORKDIR /home/circleci
2727

2828
USER circleci
29-
30-
RUN \
31-
git clone --branch v0.4.1 --depth=1 https://github.com/input-output-hk/sbt-verify.git &&\
32-
cd sbt-verify &&\
33-
sbt publishLocal

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
environment:
5-
- SBT: "sbt -v -mem 1024"
5+
- SBT: "sbt -v -mem 2048"
66
docker:
77
- image: rtkaczyk/mantis-circleci:v6
88
steps:
@@ -27,7 +27,6 @@ jobs:
2727

2828
- run:
2929
name: EVM tests
30-
# coverage ???
3130
command: $SBT coverage evm:test
3231

3332
- run:
@@ -36,7 +35,7 @@ jobs:
3635

3736
- run:
3837
name: coverage report
39-
command: $SBT coverageReport coverageAggregate coveralls
38+
command: $SBT coverageReport coverageAggregate
4039

4140
- store_artifacts:
4241
path: target/scala-2.12/coverage-report

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
1-
# Mantis - Scala Client for Ethereum Classic and Ethereum, The 2.0 Release
1+
# Mantis
22

3-
This release of *Mantis*, the new Ethereum Classic and Ethereum client produced by the [Grothendieck Team](https://iohk.io/projects/ethereum-classic/),
4-
has been focused on improving general performance and introducing full Ethereum network support.
3+
Ethereum-like Blockchain Scala client built by IOHK's Team Grothendieck.
54

6-
This version has been tested on recent versions of Windows and macOS
5+
### Status
76

8-
### Status - CLI 2.0 Release
7+
Continuous Integration Build Status [FIXME]
98

10-
Continuous Integration Build Status [![CircleCI](https://circleci.com/gh/input-output-hk/mantis/tree/phase%2Frelease2_0.svg?style=svg)](https://circleci.com/gh/input-output-hk/mantis/tree/phase%2Frelease2_0)
11-
12-
Unit Test Code Coverage Status [![Coverage Status](https://coveralls.io/repos/github/input-output-hk/mantis/badge.svg?branch=phase%2Frelease2_0)](https://coveralls.io/github/input-output-hk/mantis?branch=phase%2Frelease2_0)
13-
14-
This version of the code supports
15-
16-
- CPU mining
17-
- peer discovery
18-
- fast sync (download a recent state trie snapshot and all blocks, this is the default behaviour)
19-
- regular sync (download and execute every transaction in every block in the chain)
20-
- JSON RPC API (useful for console and Mist integration)
21-
- Morden and Ropsten testnets and private network
22-
- Ethereum classic and Ethereum networks
23-
- `ethminer` miner integration (allows *mantis* to mine blocks with [ethminer](https://github.com/Genoil/cpp-ethereum))
9+
Unit Test Code Coverage Status [FIXME]
2410

11+
// FIXME: Should we continue using this? or should we migrate to atlassian wiki?
2512
For more details on configuration and functionality check out our [wiki](http://mantis.readthedocs.io) (also at [wiki](https://github.com/input-output-hk/mantis/wiki))
2613

2714
### Download the client
@@ -46,24 +33,6 @@ Depending on network you want to join you can use appropriate launcher, all can
4633

4734
As an alternative to downloading the client build the client from source.
4835

49-
First of all `sbt-verify` is used in order to check the validity of the downloaded libraries checksums.
50-
51-
`sbt-verify` can be downloaded from our read only repository by typing
52-
53-
```
54-
git clone https://github.com/input-output-hk/sbt-verify
55-
```
56-
57-
Then in order to make `sbt-verify` available to our build type
58-
59-
```
60-
cd sbt-verify
61-
sbt publishLocal
62-
```
63-
64-
This installs the `sbt-verify` library to your local repository.
65-
66-
After installing the `sbt-verify` library to your local repository checkout this repository from github and then type
6736

6837
```
6938
git submodule update --recursive --init

build.sbt

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,29 @@ enablePlugins(JDKPackagerPlugin, JavaAppPackaging, SolidityPlugin)
22

33
val commonSettings = Seq(
44
name := "mantis",
5-
version := "2.0",
6-
scalaVersion := "2.12.5",
5+
version := "3.0",
6+
scalaVersion := "2.12.12",
77
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-l", "EthashMinerSpec") // miner tests disabled by default
88
)
99

1010
// Resolver for rocksDb
1111
resolvers += "rocksDb" at "https://dl.bintray.com/ethereum/maven/"
1212

1313
val dep = {
14-
val akkaVersion = "2.5.12"
15-
val akkaHttpVersion = "10.1.1"
14+
val akkaVersion = "2.6.9"
15+
val akkaHttpVersion = "10.2.0"
1616
val circeVersion = "0.9.3"
1717
val rocksDb = "5.9.2"
1818

1919
Seq(
2020
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
2121
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
2222
"com.typesafe.akka" %% "akka-testkit" % akkaVersion,
23+
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
2324
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
24-
"ch.megard" %% "akka-http-cors" % "0.3.0",
25+
"ch.megard" %% "akka-http-cors" % "1.1.0",
2526
"org.json4s" %% "json4s-native" % "3.5.4",
26-
"de.heikoseeberger" %% "akka-http-json4s" % "1.21.0",
27+
"de.heikoseeberger" %% "akka-http-json4s" % "1.34.0",
2728
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "it,test",
2829
"io.suzaku" %% "boopickle" % "1.3.0",
2930
"org.ethereum" % "rocksdbjni" % rocksDb,
@@ -37,9 +38,8 @@ val dep = {
3738
"io.circe" %% "circe-generic" % circeVersion,
3839
"io.circe" %% "circe-parser" % circeVersion,
3940
"io.circe" %% "circe-generic-extras" % circeVersion,
40-
"com.miguno.akka" %% "akka-mock-scheduler" % "0.5.1" % "it,test",
41+
"com.miguno.akka" %% "akka-mock-scheduler" % "0.5.5" % "it,test",
4142
"commons-io" % "commons-io" % "2.6",
42-
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
4343
"org.scala-sbt.ipcsocket" % "ipcsocket" % "1.0.0",
4444
"org.bouncycastle" % "bcprov-jdk15on" % "1.59",
4545
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
@@ -50,7 +50,6 @@ val dep = {
5050
// mallet deps
5151
"org.jline" % "jline" % "3.1.2",
5252
"net.java.dev.jna" % "jna" % "4.5.1",
53-
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.5",
5453
"com.github.scopt" %% "scopt" % "3.7.0",
5554

5655
// Metrics (https://github.com/DataDog/java-dogstatsd-client)
@@ -77,17 +76,7 @@ val root = project.in(file("."))
7776
.settings(commonSettings: _*)
7877
.settings(
7978
libraryDependencies ++= dep,
80-
verifyOutputFile in verifyGenerate := baseDirectory.value / "verify.sbt",
81-
verifyOptions in verify := VerifyOptions(
82-
includeBin = true,
83-
includeScala = true,
84-
includeDependency = true,
85-
excludedJars = Nil,
86-
warnOnUnverifiedFiles = false,
87-
warnOnUnusedVerifications = false
88-
),
89-
executableScriptName := name.value,
90-
dist in Universal := ((dist in Universal) dependsOn verify).value
79+
executableScriptName := name.value
9180
)
9281
.settings(inConfig(Integration)(Defaults.testSettings) : _*)
9382
.settings(inConfig(Benchmark)(Defaults.testSettings) : _*)
@@ -114,7 +103,7 @@ scalacOptions in (Compile, console) ~= (_.filterNot(Set(
114103

115104
parallelExecution in Test := false
116105

117-
testOptions in Test += Tests.Argument("-oDT")
106+
testOptions in Test += Tests.Argument("-oDG")
118107

119108
// protobuf compilation
120109
PB.targets in Compile := Seq(

docker/scripts/install-mantis-dev.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ HERE=$(readlink -m $(dirname ${BASH_SOURCE[0]}))
1010

1111
mkdir ~/repos
1212

13-
cd ~/repos
14-
git clone https://github.com/input-output-hk/sbt-verify.git
15-
cd sbt-verify
16-
git checkout $SBT_VERIFY_TAG
17-
# This is needed, since the library is not published in binary form.
18-
sbt publishLocal
19-
2013
cd ~/repos
2114
git clone https://github.com/input-output-hk/mantis.git
2215
cd mantis

0 commit comments

Comments
 (0)