Skip to content

Commit

Permalink
Fixed some more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
18aaddy committed Sep 21, 2024
1 parent 5eac557 commit 8de915d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions client/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions execution/execution.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package execution

0 comments on commit 8de915d

Please sign in to comment.