Skip to content

Commit

Permalink
fix(privval): jrpc server update broke build
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Aug 5, 2024
1 parent 48fa1fb commit ee0361b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions privval/dash_core_mock_signer_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/dashpay/tenderdash/crypto"
"github.com/dashpay/tenderdash/types"
"github.com/dashpay/tenderdash/version"
)

type DashCoreMockSignerServer struct {
Expand All @@ -23,13 +24,10 @@ func NewDashCoreMockSignerServer(
privVal types.PrivValidator,
) *DashCoreMockSignerServer {
// create plugin (jrpc server)
jrpcServer := jrpc.NewServer("/command", jrpc.Auth("user", "password"),
jrpc.WithSignature("dashcoremock", "dashpay", version.TMCoreSemVer))
mockServer := &DashCoreMockSignerServer{
server: &jrpc.Server{
API: "/command", // base url for rpc calls
AuthUser: "user", // basic auth user name
AuthPasswd: "password", // basic auth password
AppName: "dashcoremock", // plugin name for headers
},
server: jrpcServer,
chainID: chainID,
quorumHash: quorumHash,
privVal: privVal,
Expand Down

0 comments on commit ee0361b

Please sign in to comment.