mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-26 15:35:55 +00:00
define DefaultNotificationID as string
This commit is contained in:
parent
5c9cb39797
commit
e37419d62f
@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// DefaultNotificationID corrosponds to defualt grpc string value, and hence id value when not supplied, or as placeholder
|
// DefaultNotificationID corrosponds to defualt grpc string value, and hence id value when not supplied, or as placeholder
|
||||||
const DefaultNotificationID = ""
|
const DefaultNotificationID string = ""
|
||||||
|
|
||||||
// NotificationManager manages notifications for the RPC
|
// NotificationManager manages notifications for the RPC
|
||||||
type NotificationManager struct {
|
type NotificationManager struct {
|
||||||
@ -410,9 +410,7 @@ func (nl *NotificationListener) convertUTXOChangesToUTXOsChangedNotification(
|
|||||||
utxoChangesSize := len(utxoChanges.Added) + len(utxoChanges.Removed)
|
utxoChangesSize := len(utxoChanges.Added) + len(utxoChanges.Removed)
|
||||||
addressesSize := len(nl.propagateUTXOsChangedNotificationAddresses)
|
addressesSize := len(nl.propagateUTXOsChangedNotificationAddresses)
|
||||||
|
|
||||||
notification := &appmessage.UTXOsChangedNotificationMessage{}
|
notification := &appmessage.UTXOsChangedNotificationMessage{ID: id}
|
||||||
|
|
||||||
notification.ID = id
|
|
||||||
|
|
||||||
if utxoChangesSize < addressesSize {
|
if utxoChangesSize < addressesSize {
|
||||||
for scriptPublicKeyString, addedPairs := range utxoChanges.Added {
|
for scriptPublicKeyString, addedPairs := range utxoChanges.Added {
|
||||||
@ -484,7 +482,7 @@ func (nl *NotificationListener) scriptPubKeyStringToAddressString(scriptPublicKe
|
|||||||
// PropagateVirtualSelectedParentBlueScoreChangedNotifications instructs the listener to send
|
// PropagateVirtualSelectedParentBlueScoreChangedNotifications instructs the listener to send
|
||||||
// virtual selected parent blue score notifications to the remote listener
|
// virtual selected parent blue score notifications to the remote listener
|
||||||
func (nl *NotificationListener) PropagateVirtualSelectedParentBlueScoreChangedNotifications(id string) {
|
func (nl *NotificationListener) PropagateVirtualSelectedParentBlueScoreChangedNotifications(id string) {
|
||||||
nl.propagateVirtualSelectedParentBlueScoreChangedNotificationsID = id
|
//nl.propagateVirtualSelectedParentBlueScoreChangedNotificationsID = id
|
||||||
nl.propagateVirtualSelectedParentBlueScoreChangedNotifications = true
|
nl.propagateVirtualSelectedParentBlueScoreChangedNotifications = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user