Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Commit 6cc463d

Browse files
committed
Works on JDK 11
1 parent 79a0ac9 commit 6cc463d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ libraryDependencies ++= Seq(
104104

105105
libraryDependencies ++= { // Newer versions of Java have had the runtime library reduced, so include missing Java dependencies
106106
sys.props("java.version") match {
107-
case jv if jv.startsWith("11") =>
107+
case jv if jv.startsWith("11") =>
108108
javacOptions += "-J--add-modules=java.xml.bind"
109109
Seq(
110110
"javax.xml.bind" % "jaxb-api" % "2.3.1"
111111
)
112-
112+
113113
case _ => Nil
114114
}}
115115

demo/DemoObservables.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DemoObservables(demo: Demo) {
3131
// Display minimal information about old blocks, show detailed information for new blocks
3232
val now: Long = System.currentTimeMillis
3333
var count = 0
34-
web3j.catchUpToLatestAndSubscribeToNewBlocksFlowable(EARLIEST, false).subscribe { ethBlock =>
34+
web3j.replayPastAndFutureBlocksFlowable(EARLIEST, false).subscribe { ethBlock =>
3535
val block = ethBlock.getBlock
3636
if (block.getTimestamp.longValue<now) {
3737
count = count + 1

0 commit comments

Comments
 (0)