mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
Add roundInterval, network and minRelayFee to GetInfo RPC (#159)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user