Remove exception when we have zero relevant outputs (#4352)

This commit is contained in:
Chris Stewart 2022-05-26 12:39:09 -05:00 committed by GitHub
parent 8a01432db4
commit bf88d0d93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -566,9 +566,7 @@ private[bitcoins] trait TransactionProcessing extends WalletLogger {
transaction: Transaction,
blockHashOpt: Option[DoubleSha256DigestBE]): Future[
Seq[SpendingInfoDb]] = {
require(
outputsWithIndex.nonEmpty,
s"Cannot add utxos to wallet if we have none! got=${outputsWithIndex}")
val spks = outputsWithIndex.map(_.output.scriptPubKey).toVector
val addressDbsF: Future[Vector[AddressDb]] = {