Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix prysm rpc url in make devnet-run #216

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .hack/devnet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ beaconapi:
$(for node in $BEACON_NODES; do
name=$(docker inspect -f "{{ with index .Config.Labels \"com.kurtosistech.id\"}}{{.}}{{end}}" $node)
ip=$(echo '127.0.0.1')
port=$(docker inspect --format='{{ (index (index .NetworkSettings.Ports "4000/tcp") 0).HostPort }}' $node)
port=$(docker inspect --format='{{ (index (index .NetworkSettings.Ports "3500/tcp") 0).HostPort }}' $node 2>/dev/null)
if [ -z "$port" ]; then
port=$(docker inspect --format='{{ (index (index .NetworkSettings.Ports "4000/tcp") 0).HostPort }}' $node)
fi
if [ -z "$port" ]; then
port="65535"
fi
Expand Down
2 changes: 1 addition & 1 deletion indexer/beacon/block_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func getStateDepositIndex(state *spec.VersionedBeaconState) uint64 {
return 0
}

// getStateRandaoMixes returns the current sync committee from a versioned beacon state.
// getStateCurrentSyncCommittee returns the current sync committee from a versioned beacon state.
func getStateCurrentSyncCommittee(v *spec.VersionedBeaconState) ([]phase0.BLSPubKey, error) {
switch v.Version {
case spec.DataVersionPhase0:
Expand Down
2 changes: 1 addition & 1 deletion indexer/beacon/blockcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (cache *blockCache) getBlockByRoot(root phase0.Root) *Block {
return cache.rootMap[root]
}

// getBlockBySlot returns the cached blocks with the given slot.
// getBlocksBySlot returns the cached blocks with the given slot.
func (cache *blockCache) getBlocksBySlot(slot phase0.Slot) []*Block {
cache.cacheMutex.RLock()
defer cache.cacheMutex.RUnlock()
Expand Down
Loading