mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 00:23:14 +00:00
14 lines
528 B
Go
14 lines
528 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"
|
|
)
|
|
|
|
// HandleGetCurrentNetwork handles the respectively named RPC command
|
|
func HandleGetCurrentNetwork(context *rpccontext.Context, _ *router.Router, _ appmessage.Message) (appmessage.Message, error) {
|
|
response := appmessage.NewGetCurrentNetworkResponseMessage(context.Config.ActiveNetParams.Net.String())
|
|
return response, nil
|
|
}
|