mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 14:46:44 +00:00
Fix missing utxo notifications (#1428)
* fix missing UTXO notifications (#1426) * Remove redundant semicolon Co-authored-by: aspect <anton.yemelyanov@gmail.com>
This commit is contained in:
parent
e8dfbc8367
commit
189e3b6be9
@ -229,7 +229,8 @@ func (nl *NotificationListener) convertUTXOChangesToUTXOsChangedNotification(
|
|||||||
for _, listenerAddress := range nl.propagateUTXOsChangedNotificationAddresses {
|
for _, listenerAddress := range nl.propagateUTXOsChangedNotificationAddresses {
|
||||||
listenerScriptPublicKeyString := listenerAddress.ScriptPublicKeyString
|
listenerScriptPublicKeyString := listenerAddress.ScriptPublicKeyString
|
||||||
if addedPairs, ok := utxoChanges.Added[listenerScriptPublicKeyString]; ok {
|
if addedPairs, ok := utxoChanges.Added[listenerScriptPublicKeyString]; ok {
|
||||||
notification.Added = ConvertUTXOOutpointEntryPairsToUTXOsByAddressesEntries(listenerAddress.Address, addedPairs)
|
notification.Added = append(notification.Added,
|
||||||
|
ConvertUTXOOutpointEntryPairsToUTXOsByAddressesEntries(listenerAddress.Address, addedPairs)...)
|
||||||
}
|
}
|
||||||
if removedOutpoints, ok := utxoChanges.Removed[listenerScriptPublicKeyString]; ok {
|
if removedOutpoints, ok := utxoChanges.Removed[listenerScriptPublicKeyString]; ok {
|
||||||
for outpoint := range removedOutpoints {
|
for outpoint := range removedOutpoints {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user