Add roundInterval, network and minRelayFee to GetInfo RPC (#159)

This commit is contained in:
Louis Singer
2024-05-01 16:15:29 +02:00
committed by GitHub
parent 3c9da99516
commit 02ff7c7ed9
5 changed files with 226 additions and 162 deletions

View File

@@ -249,15 +249,18 @@ func (h *handler) ListVtxos(ctx context.Context, req *arkv1.ListVtxosRequest) (*
}
func (h *handler) GetInfo(ctx context.Context, req *arkv1.GetInfoRequest) (*arkv1.GetInfoResponse, error) {
pubkey, lifetime, delay, err := h.svc.GetInfo(ctx)
info, err := h.svc.GetInfo(ctx)
if err != nil {
return nil, err
}
return &arkv1.GetInfoResponse{
Pubkey: pubkey,
RoundLifetime: lifetime,
UnilateralExitDelay: delay,
Pubkey: info.PubKey,
RoundLifetime: info.RoundLifetime,
UnilateralExitDelay: info.UnilateralExitDelay,
RoundInterval: info.RoundInterval,
Network: info.Network,
MinRelayFee: info.MinRelayFee,
}, nil
}