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

create light-client-updates bucket #14266

Merged
merged 31 commits into from
Aug 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2f1a029
create light-client-updates bucket
Inspector-Butters Jul 28, 2024
ce4462a
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 6, 2024
4d7d4cf
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 8, 2024
105eba4
Electra committe validation for aggregate and proof (#14317)
rkapka Aug 8, 2024
7982bbf
Refactor get local payload (#14327)
terencechain Aug 9, 2024
ce0c6fc
add lightclient db kv functions
Inspector-Butters Aug 11, 2024
73af2de
lightclient db tests
Inspector-Butters Aug 13, 2024
b9bb421
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 13, 2024
dc769b8
move blockchain/lightclient.go to core/light-client package
Inspector-Butters Aug 13, 2024
eedb802
add comparison check for start and end period
Inspector-Butters Aug 13, 2024
d2e47b1
create testing/utils/lightcilent.go
Inspector-Butters Aug 13, 2024
25a159e
lightclient db tests
Inspector-Butters Aug 13, 2024
dfcb37c
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 14, 2024
3adeb17
fix imports and usages
Inspector-Butters Aug 14, 2024
f1da604
fix imports and usages in process_block_helpers
Inspector-Butters Aug 14, 2024
eeb5a4e
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 18, 2024
4e628a5
fix bazel dependencies
Inspector-Butters Aug 18, 2024
bc11b78
remove unnecessary nil check
Inspector-Butters Aug 18, 2024
5b032db
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 19, 2024
7486d53
add more tests for lightclient kv functions
Inspector-Butters Aug 19, 2024
e4d4db9
refactor tests
Inspector-Butters Aug 19, 2024
02ca5a7
refactor kv.LightClientUpdates
Inspector-Butters Aug 19, 2024
5b1d796
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 20, 2024
49270e2
fix db to return every update that is available in the requested range
Inspector-Butters Aug 20, 2024
272682a
run gazzele fix
Inspector-Butters Aug 21, 2024
933ad22
Merge branch 'prysmaticlabs:develop' into light-client-database
Inspector-Butters Aug 22, 2024
ddf0d09
return empty map in case of empty db
Inspector-Butters Aug 22, 2024
b1d35ba
fix goimports errors
Inspector-Butters Aug 22, 2024
aa7ce6f
goimports
rkapka Aug 22, 2024
feab29a
Revert "Auxiliary commit to revert individual files from aa7ce6f37cb6…
rkapka Aug 22, 2024
9a18e58
Merge branch 'develop' into light-client-database
rkapka Aug 22, 2024
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
Prev Previous commit
Next Next commit
fix imports and usages in process_block_helpers
Inspector-Butters committed Aug 14, 2024
commit f1da604412c1dbf29c12d8c9c25b0f2a12b01054
9 changes: 5 additions & 4 deletions beacon-chain/blockchain/process_block_helpers.go
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ package blockchain
import (
"context"
"fmt"
lightclient "github.com/prysmaticlabs/prysm/v5/beacon-chain/core/light-client"
"time"

"github.com/ethereum/go-ethereum/common"
@@ -176,7 +177,7 @@ func (s *Service) sendLightClientFinalityUpdate(ctx context.Context, signed inte
}
}

update, err := NewLightClientFinalityUpdateFromBeaconState(
update, err := lightclient.NewLightClientFinalityUpdateFromBeaconState(
ctx,
postState,
signed,
@@ -191,7 +192,7 @@ func (s *Service) sendLightClientFinalityUpdate(ctx context.Context, signed inte
// Return the result
result := &ethpbv2.LightClientFinalityUpdateWithVersion{
Version: ethpbv2.Version(signed.Version()),
Data: CreateLightClientFinalityUpdate(update),
Data: lightclient.CreateLightClientFinalityUpdate(update),
}

// Send event
@@ -211,7 +212,7 @@ func (s *Service) sendLightClientOptimisticUpdate(ctx context.Context, signed in
return 0, errors.Wrap(err, "could not get attested state")
}

update, err := NewLightClientOptimisticUpdateFromBeaconState(
update, err := lightclient.NewLightClientOptimisticUpdateFromBeaconState(
ctx,
postState,
signed,
@@ -225,7 +226,7 @@ func (s *Service) sendLightClientOptimisticUpdate(ctx context.Context, signed in
// Return the result
result := &ethpbv2.LightClientOptimisticUpdateWithVersion{
Version: ethpbv2.Version(signed.Version()),
Data: CreateLightClientOptimisticUpdate(update),
Data: lightclient.CreateLightClientOptimisticUpdate(update),
}

return s.cfg.StateNotifier.StateFeed().Send(&feed.Event{