diff --git a/client/node.go b/client/node.go index ec6ff7e..36880a2 100644 --- a/client/node.go +++ b/client/node.go @@ -31,13 +31,10 @@ type Node struct { } func NewNode(config *config.Config) (*Node, error) { - consensusRPC := config.ConsensusRPC - executionRPC := config.ExecutionRPC + consensusRPC := config.ConsensusRpc + executionRPC := config.ExecutionRpc // Initialize ConsensusClient - consensus, err := consensus.ConsensusClient{}.New(consensusRPC, config) - if err != nil { - return nil, err - } + consensus := consensus.ConsensusClient{}.New(&consensusRPC, *config) // Extract block receivers blockRecv := consensus.BlockRecv if blockRecv == nil { @@ -56,7 +53,7 @@ func NewNode(config *config.Config) (*Node, error) { } // Return the constructed Node return &Node{ - Consensus: consensus, + Consensus: &consensus, Execution: execution, Config: config, HistorySize: 64, @@ -519,7 +516,7 @@ func (n *Node) Syncing() (SyncStatus, error) { }() go func() { - highestBlock := n.Consensus.ExpectedCurrentSlot() + highestBlock := n.Consensus.Expected_current_slot() highestBlockChan <- highestBlock }() headErr := <-headErrChan diff --git a/execution/execution.go b/execution/execution.go new file mode 100644 index 0000000..a02f06f --- /dev/null +++ b/execution/execution.go @@ -0,0 +1 @@ +package execution \ No newline at end of file