mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Remove exception when we have zero relevant outputs (#4352)
This commit is contained in:
parent
8a01432db4
commit
bf88d0d93f
@ -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]] = {
|
||||
|
Loading…
Reference in New Issue
Block a user