File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed
Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ require (
99 connectrpc.com/grpchealth v1.3.0
1010 connectrpc.com/grpcreflect v1.2.0
1111 github.com/blinklabs-io/adder v0.25.0
12- github.com/blinklabs-io/gouroboros v0.103.1
12+ github.com/blinklabs-io/gouroboros v0.103.2
1313 github.com/blinklabs-io/tx-submit-api v0.20.1
1414 github.com/gin-contrib/zap v1.1.4
1515 github.com/gin-gonic/gin v1.10.0
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5M
2020github.com/bits-and-blooms/bitset v1.8.0 /go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8 =
2121github.com/blinklabs-io/adder v0.25.0 h1:Rkfg3c3HX9bxM2+GJlkX4npGBunNUSSWUAhquVooVa8 =
2222github.com/blinklabs-io/adder v0.25.0 /go.mod h1:T8QPCxIk9WfKCwKb+wWIR25/dbXbdOrf9D/QcOcoaYk =
23- github.com/blinklabs-io/gouroboros v0.103.1 h1:D/3Hlr09kw/cYM8gt6t7jVlTfDCXjb25nHL5V2l/3kc =
24- github.com/blinklabs-io/gouroboros v0.103.1 /go.mod h1:wjiNCbZ2uQy9DGfLCgEgqagHxNBAv5UYsOdRBgoi3SU =
23+ github.com/blinklabs-io/gouroboros v0.103.2 h1:kPA4dL0Ycwkh1ZJ6tckyRpUT2XU7ghRGHeKWI4HwQV8 =
24+ github.com/blinklabs-io/gouroboros v0.103.2 /go.mod h1:wjiNCbZ2uQy9DGfLCgEgqagHxNBAv5UYsOdRBgoi3SU =
2525github.com/blinklabs-io/ouroboros-mock v0.3.5 h1:/KWbSoH8Pjrd9uxOH7mVbI7XFsDCNW/O9FtLlvJDUpQ =
2626github.com/blinklabs-io/ouroboros-mock v0.3.5 /go.mod h1:JtUQ3Luo22hCnGBxuxNp6JaUx63VxidxWwmcaVMremw =
2727github.com/blinklabs-io/tx-submit-api v0.20.1 h1:IdMqh12CSwPY44HqE9s8AbMlMZ+dhNAZSzXDReE+sSo =
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import (
2424 "github.com/blinklabs-io/gouroboros/ledger"
2525
2626 // ocommon "github.com/blinklabs-io/gouroboros/protocol/common"
27+
2728 query "github.com/utxorpc/go-codegen/utxorpc/v1alpha/query"
2829 "github.com/utxorpc/go-codegen/utxorpc/v1alpha/query/queryconnect"
2930
@@ -68,18 +69,20 @@ func (s *queryServiceServer) ReadParams(
6869 if err != nil {
6970 return nil , err
7071 }
71- var acp query.AnyChainParams
72- // var acpc query.AnyChainParams_Cardano
73- acpc := & query.AnyChainParams_Cardano {}
74- log .Printf ("protocol parameters: %v" , protoParams )
75- // acpc.Cardano = protoParams.Utxorpc()
72+
73+ // Set up response parameters
74+ acpc := & query.AnyChainParams_Cardano {
75+ Cardano : protoParams .Utxorpc (),
76+ }
77+
7678 resp .LedgerTip = & query.ChainPoint {
7779 Slot : point .Slot ,
7880 Hash : point .Hash ,
7981 }
80- // acp.Params = &acpc
81- acp .Params = acpc
82- resp .Values = & acp
82+ resp .Values = & query.AnyChainParams {
83+ Params : acpc ,
84+ }
85+
8386 return connect .NewResponse (resp ), nil
8487}
8588
You can’t perform that action at this time.
0 commit comments