Skip to content

Commit a34af78

Browse files
authored
Merge pull request #847 from input-output-hk/release/3.2.1
Release 3.2.1
2 parents 65ae75d + 2773213 commit a34af78

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ val mantisDev = sys.props.get("mantisDev").contains("true") || sys.env.get("MANT
1111

1212
val commonSettings = Seq(
1313
name := "mantis",
14-
version := "3.2.0",
14+
version := "3.2.1",
1515
scalaVersion := "2.12.12",
1616
// Scalanet snapshots are published to Sonatype after each build.
1717
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",

src/main/resources/chains/testnet-internal-nomad-chain.conf

+5-5
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@
141141

142142
# Set of initial nodes
143143
bootstrap-nodes = [
144-
"enode://ff86741b7b35087b2b53f44a612b233336490d5fae10b1434619b7714fe2d5346c71427a5e126cd27b9422a4d4376c1534ef66e88c5e62d6441d2541f63de0cf@mantis-4.mantis.ws:9004",
145-
"enode://f92aa66337ab1993cc7269d4295d296aefe6199b34e900eac08c514c947ec7340d46a5648ffc2da10325dbaba16bdf92aa9c0b5e51d97a7818c3f495d478ddad@mantis-1.mantis.ws:9001",
146-
"enode://442e2bd50eece65f90dee0d5c6075da4e1b4bc62e36b261a52e7f393dae6a68241e4dbad868c7ecc14fed277ed72e99a289a811b6172f35fb18bdca0b7a5602c@mantis-3.mantis.ws:9003",
147-
"enode://af97643f364b805d5b0e32b5356578a16afcc4fb9d1b6622998e9441eeb7795e8daf8e6b0ff3330da9879034112be56954f9269164513ece0f7394b805be3633@mantis-5.mantis.ws:9005",
148-
"enode://d8a010f019db37dcaf2e1fb98d4fcbf1f57dbd7e2a7f065e92fbe77dca8b9120d6e79f1617e98fa6134e6af8858ac8f3735b1e70a5708eb14f228080356eb0a7@mantis-2.mantis.ws:9002"
144+
"enode://ff86741b7b35087b2b53f44a612b233336490d5fae10b1434619b7714fe2d5346c71427a5e126cd27b9422a4d4376c1534ef66e88c5e62d6441d2541f63de0cf@mantis-4.mantis.ws:9004?discport=9504",
145+
"enode://f92aa66337ab1993cc7269d4295d296aefe6199b34e900eac08c514c947ec7340d46a5648ffc2da10325dbaba16bdf92aa9c0b5e51d97a7818c3f495d478ddad@mantis-1.mantis.ws:9001?discport=9501",
146+
"enode://442e2bd50eece65f90dee0d5c6075da4e1b4bc62e36b261a52e7f393dae6a68241e4dbad868c7ecc14fed277ed72e99a289a811b6172f35fb18bdca0b7a5602c@mantis-3.mantis.ws:9003?discport=9503",
147+
"enode://af97643f364b805d5b0e32b5356578a16afcc4fb9d1b6622998e9441eeb7795e8daf8e6b0ff3330da9879034112be56954f9269164513ece0f7394b805be3633@mantis-5.mantis.ws:9005?discport=9505",
148+
"enode://d8a010f019db37dcaf2e1fb98d4fcbf1f57dbd7e2a7f065e92fbe77dca8b9120d6e79f1617e98fa6134e6af8858ac8f3735b1e70a5708eb14f228080356eb0a7@mantis-2.mantis.ws:9002?discport=9502"
149149
]
150150

151151
# List of hex encoded public keys of Checkpoint Authorities

src/main/scala/io/iohk/ethereum/domain/Address.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object Address {
3131

3232
def apply(hexString: String): Address = {
3333
val bytes = Hex.decode(hexString.replaceFirst("^0x", ""))
34-
require(bytes.length <= Length, s"Invalid address: $hexString")
34+
require(bytes.nonEmpty && bytes.length <= Length, s"Invalid address: $hexString")
3535
Address(bytes)
3636
}
3737

src/main/scala/io/iohk/ethereum/jsonrpc/JsonMethodsImplicits.scala

+3-4
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,14 @@ trait JsonMethodsImplicits {
9494

9595
for {
9696
from <- input.get("from") match {
97-
case Some(JString(s)) => extractAddress(s)
97+
case Some(JString(s)) if s.nonEmpty => extractAddress(s)
9898
case Some(_) => Left(InvalidAddress)
9999
case _ => Left(InvalidParams("TX 'from' is required"))
100100
}
101101

102102
to <- input.get("to") match {
103-
case Some(JString(s)) =>
104-
extractAddress(s).map(Some(_))
105-
103+
case Some(JString(s)) if s.nonEmpty => extractAddress(s).map(Option.apply)
104+
case Some(JString(_)) => extractAddress("0x0").map(Option.apply)
106105
case Some(_) => Left(InvalidAddress)
107106
case None => Right(None)
108107
}

src/universal/conf/testnet-internal-nomad.conf

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ mantis {
77

88
network {
99
protocol-version = 64
10+
11+
discovery {
12+
discovery-enabled = true
13+
}
1014
}
1115

1216
}

0 commit comments

Comments
 (0)