Skip to content

Commit

Permalink
added client field to the node
Browse files Browse the repository at this point in the history
  • Loading branch information
chandiniv1 committed Nov 21, 2023
1 parent 5736029 commit d2001ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions node/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import (
"errors"
"fmt"

ds "github.com/ipfs/go-datastore"
ktds "github.com/ipfs/go-datastore/keytransform"
"github.com/libp2p/go-libp2p/core/crypto"
"go.uber.org/multierr"

abci "github.com/cometbft/cometbft/abci/types"
llcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/log"
"github.com/cometbft/cometbft/libs/service"
corep2p "github.com/cometbft/cometbft/p2p"
proxy "github.com/cometbft/cometbft/proxy"
rpcclient "github.com/cometbft/cometbft/rpc/client"
cmtypes "github.com/cometbft/cometbft/types"
ds "github.com/ipfs/go-datastore"
ktds "github.com/ipfs/go-datastore/keytransform"
"github.com/libp2p/go-libp2p/core/crypto"
"go.uber.org/multierr"

"github.com/rollkit/rollkit/block"
"github.com/rollkit/rollkit/config"
Expand Down Expand Up @@ -59,6 +59,7 @@ type FullNode struct {
genChunks []string

nodeConfig config.NodeConfig
client rpcclient.Client

proxyApp proxy.AppConns
eventBus *cmtypes.EventBus
Expand Down Expand Up @@ -87,6 +88,7 @@ type FullNode struct {
func newFullNode(
ctx context.Context,
nodeConfig config.NodeConfig,
client rpcclient.Client,
p2pKey crypto.PrivKey,
signingKey crypto.PrivKey,
clientCreator proxy.ClientCreator,
Expand Down
2 changes: 1 addition & 1 deletion node/full_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewFullClient(node *FullNode) *FullClient {
}

func (n *FullNode) GetClient() rpcclient.Client {
return NewFullClient(n)
return n.client
}

// ABCIInfo returns basic information about application state.
Expand Down

0 comments on commit d2001ba

Please sign in to comment.