mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-28 00:03:39 +00:00
21 lines
720 B
Go
21 lines
720 B
Go
package rpchandlers
|
|
|
|
import (
|
|
"github.com/c4ei/YunSeokYeol/app/appmessage"
|
|
"github.com/c4ei/YunSeokYeol/app/rpc/rpccontext"
|
|
"github.com/c4ei/YunSeokYeol/infrastructure/network/netadapter/router"
|
|
)
|
|
|
|
// HandleNotifyFinalityConflicts handles the respectively named RPC command
|
|
func HandleNotifyFinalityConflicts(context *rpccontext.Context, router *router.Router, _ appmessage.Message) (appmessage.Message, error) {
|
|
listener, err := context.NotificationManager.Listener(router)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
listener.PropagateFinalityConflictNotifications()
|
|
listener.PropagateFinalityConflictResolvedNotifications()
|
|
|
|
response := appmessage.NewNotifyFinalityConflictsResponseMessage()
|
|
return response, nil
|
|
}
|