diff --git a/testkit/src/main/scala/org/bitcoins/testkit/core/gen/p2p/ControlMessageGenerator.scala b/testkit/src/main/scala/org/bitcoins/testkit/core/gen/p2p/ControlMessageGenerator.scala index e4054832db..b358755928 100644 --- a/testkit/src/main/scala/org/bitcoins/testkit/core/gen/p2p/ControlMessageGenerator.scala +++ b/testkit/src/main/scala/org/bitcoins/testkit/core/gen/p2p/ControlMessageGenerator.scala @@ -7,6 +7,7 @@ import org.bitcoins.core.p2p.{ProtocolVersion, _} import org.bitcoins.core.protocol.CompactSizeUInt import org.bitcoins.core.wallet.fee.{ SatoshisPerByte, + SatoshisPerKW, SatoshisPerKiloByte, SatoshisPerVirtualByte } @@ -35,7 +36,7 @@ object ControlMessageGenerator { } yield fee match { case fee: SatoshisPerByte => FeeFilterMessage(fee) case fee: SatoshisPerKiloByte => FeeFilterMessage(fee) - case SatoshisPerVirtualByte(_) => + case SatoshisPerVirtualByte(_) | SatoshisPerKW(_) => throw new RuntimeException(s"We cannot end up here") } } diff --git a/wallet/src/main/scala/org/bitcoins/wallet/Wallet.scala b/wallet/src/main/scala/org/bitcoins/wallet/Wallet.scala index 4d130be15c..051b62e52a 100644 --- a/wallet/src/main/scala/org/bitcoins/wallet/Wallet.scala +++ b/wallet/src/main/scala/org/bitcoins/wallet/Wallet.scala @@ -9,12 +9,11 @@ import org.bitcoins.core.crypto.ExtPublicKey import org.bitcoins.core.currency._ import org.bitcoins.core.hd.{HDAccount, HDCoin, HDPurposes} import org.bitcoins.core.protocol.BitcoinAddress -import org.bitcoins.core.protocol.blockchain.BlockHeader import org.bitcoins.core.protocol.script.ScriptPubKey import org.bitcoins.core.protocol.transaction._ import org.bitcoins.core.script.constant.ScriptConstant import org.bitcoins.core.script.control.OP_RETURN -import org.bitcoins.core.util.{BitcoinScriptUtil, FutureUtil} +import org.bitcoins.core.util.BitcoinScriptUtil import org.bitcoins.core.wallet.builder.{ NonInteractiveWithChangeFinalizer, RawTxBuilderWithFinalizer, @@ -41,7 +40,7 @@ import org.bitcoins.wallet.models.{SpendingInfoDb, _} import scodec.bits.ByteVector import scala.concurrent.{ExecutionContext, Future} -import scala.util.{Failure, Success, Try} +import scala.util.{Failure, Success} abstract class Wallet extends WalletApi