mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
followup
This commit is contained in:
parent
12c1725260
commit
df7f40dbc9
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ public class DbPersistence implements Persistence {
|
||||||
walletNodeDao.updateNodeAddressData(addressNode.getId(), addressNode.getAddressData());
|
walletNodeDao.updateNodeAddressData(addressNode.getId(), addressNode.getAddressData());
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<BlockTransactionHashIndex> txos = addressNode.getTransactionOutputs().stream().flatMap(txo -> txo.isSpent() ? Stream.of(txo, txo.getSpentBy()) : Stream.of(txo)).collect(Collectors.toSet());
|
List<BlockTransactionHashIndex> txos = addressNode.getTransactionOutputs().stream().flatMap(txo -> txo.isSpent() ? Stream.of(txo, txo.getSpentBy()) : Stream.of(txo)).collect(Collectors.toList());
|
||||||
List<Long> existingIds = txos.stream().map(Persistable::getId).filter(Objects::nonNull).collect(Collectors.toList());
|
List<Long> existingIds = txos.stream().map(Persistable::getId).filter(Objects::nonNull).collect(Collectors.toList());
|
||||||
referencedTxIds.addAll(txos.stream().map(BlockTransactionHash::getHash).collect(Collectors.toSet()));
|
referencedTxIds.addAll(txos.stream().map(BlockTransactionHash::getHash).collect(Collectors.toSet()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue