File tree 5 files changed +14
-11
lines changed
5 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ val mantisDev = sys.props.get("mantisDev").contains("true") || sys.env.get("MANT
11
11
12
12
val commonSettings = Seq (
13
13
name := " mantis" ,
14
- version := " 3.2.0 " ,
14
+ version := " 3.2.1 " ,
15
15
scalaVersion := " 2.12.12" ,
16
16
// Scalanet snapshots are published to Sonatype after each build.
17
17
resolvers += " Sonatype OSS Snapshots" at " https://oss.sonatype.org/content/repositories/snapshots" ,
Original file line number Diff line number Diff line change 141
141
142
142
# Set of initial nodes
143
143
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 "
149
149
]
150
150
151
151
# List of hex encoded public keys of Checkpoint Authorities
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object Address {
31
31
32
32
def apply (hexString : String ): Address = {
33
33
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" )
35
35
Address (bytes)
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -94,15 +94,14 @@ trait JsonMethodsImplicits {
94
94
95
95
for {
96
96
from <- input.get(" from" ) match {
97
- case Some (JString (s)) => extractAddress(s)
97
+ case Some (JString (s)) if s.nonEmpty => extractAddress(s)
98
98
case Some (_) => Left (InvalidAddress )
99
99
case _ => Left (InvalidParams (" TX 'from' is required" ))
100
100
}
101
101
102
102
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)
106
105
case Some (_) => Left (InvalidAddress )
107
106
case None => Right (None )
108
107
}
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ mantis {
7
7
8
8
network {
9
9
protocol-version = 64
10
+
11
+ discovery {
12
+ discovery-enabled = true
13
+ }
10
14
}
11
15
12
16
}
You can’t perform that action at this time.
0 commit comments