diff --git a/src/main/scala/BitcoinApplication.scala b/src/main/scala/BitcoinApplication.scala index a3ffa68..3d3f574 100644 --- a/src/main/scala/BitcoinApplication.scala +++ b/src/main/scala/BitcoinApplication.scala @@ -18,7 +18,7 @@ class BitcoinApplication(configuration: ProgramConfiguration) { wallet().addKey(new ECKey()); } } - if (kit.getClass == RegTestParams.get().getClass) { + if (kit.getClass == classOf[RegTestParams]) { kit.connectToLocalHost() } kit