Skip to content

Commit

Permalink
Change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Dec 19, 2023
1 parent 002a152 commit 7ef3770
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class BitcoinCore(
}

fun usedAddresses(): List<UsedAddress> {
return publicKeyManager.usedPublicKeys().map {
return publicKeyManager.usedExternalPublicKeys().map {
UsedAddress(
index = it.index,
address = addressConverter.convert(it, purpose.scriptType).stringValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class WatchAddressPublicKeyManager(

override fun receivePublicKey() = publicKey

override fun usedPublicKeys(): List<PublicKey> = listOf(publicKey)
override fun usedExternalPublicKeys(): List<PublicKey> = listOf(publicKey)

override fun fillGap() {
bloomFilterManager?.regenerateBloomFilter()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ interface IAccountWallet {
interface IPublicKeyManager {
fun changePublicKey(): PublicKey
fun receivePublicKey(): PublicKey
fun usedPublicKeys(): List<PublicKey>
fun usedExternalPublicKeys(): List<PublicKey>
fun fillGap()
fun addKeys(keys: List<PublicKey>)
fun gapShifts(): Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AccountPublicKeyManager(
return getPublicKey(external = true)
}

override fun usedPublicKeys(): List<PublicKey> {
override fun usedExternalPublicKeys(): List<PublicKey> {
return storage.getPublicKeysWithUsedState().filter { it.publicKey.external && it.used }.map { it.publicKey }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PublicKeyManager(
return getPublicKey(external = false)
}

override fun usedPublicKeys(): List<PublicKey> {
override fun usedExternalPublicKeys(): List<PublicKey> {
return storage.getPublicKeysWithUsedState().filter { it.publicKey.external && it.used }.map { it.publicKey }
}

Expand Down

0 comments on commit 7ef3770

Please sign in to comment.