From 01e29656c9e79b4dfeb865246441fd05e3493c25 Mon Sep 17 00:00:00 2001 From: 0xluk Date: Fri, 1 Mar 2024 18:09:33 +0200 Subject: [PATCH] bug fixed --- rpc/rpc_server.go | 4 ++-- validator/validator.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rpc/rpc_server.go b/rpc/rpc_server.go index 1e94c65..adf2bcb 100644 --- a/rpc/rpc_server.go +++ b/rpc/rpc_server.go @@ -25,10 +25,10 @@ type Server struct { listenAddrGRPC string listenAddrHTTP string store *store.PebbleStore - qc *qubic.Connection + qc *qubic.Client } -func NewServer(listenAddrGRPC, listenAddrHTTP string, store *store.PebbleStore, qc *qubic.Connection) *Server { +func NewServer(listenAddrGRPC, listenAddrHTTP string, store *store.PebbleStore, qc *qubic.Client) *Server { return &Server{ listenAddrGRPC: listenAddrGRPC, listenAddrHTTP: listenAddrHTTP, diff --git a/validator/validator.go b/validator/validator.go index 692b9d8..0cb7e5a 100644 --- a/validator/validator.go +++ b/validator/validator.go @@ -15,11 +15,11 @@ import ( ) type Validator struct { - qu *qubic.Connection + qu *qubic.Client store *store.PebbleStore } -func NewValidator(qu *qubic.Connection, store *store.PebbleStore) *Validator { +func NewValidator(qu *qubic.Client, store *store.PebbleStore) *Validator { return &Validator{qu: qu, store: store} } @@ -126,7 +126,7 @@ func (v *Validator) ValidateTick(ctx context.Context, tickNumber uint64) error { return nil } -func getComputorsAndValidate(ctx context.Context, qu *qubic.Connection) (types.Computors, error) { +func getComputorsAndValidate(ctx context.Context, qu *qubic.Client) (types.Computors, error) { comps, err := qu.GetComputors(ctx) if err != nil { return types.Computors{}, errors.Wrap(err, "getting comps")