Radosław Kapka
7ac3c01b5b
Refactor light client functions ( #14434 )
...
* Use correct types in light client functions
* conversions
* more refactoring
* test fixes
* changelog
* error fix
* revert test changes
* revert test skip
* Update api/server/structs/conversions_lightclient.go
Co-authored-by: Rupam Dey <117000803+rupam-04@users.noreply.github.com >
* use BlockToLightClientHeader
* reviewer suggestion
* Revert "use BlockToLightClientHeader"
This reverts commit f3df56ded5 .
---------
Co-authored-by: Rupam Dey <117000803+rupam-04@users.noreply.github.com >
2024-09-13 22:08:28 +00:00
Rupam Dey
eec3b0b7fe
feat: introduce Capella and Deneb full-node.md lc changes ( #14376 )
...
* feat: introduce Capella and Deneb `full-node.md` lc changes
* add switch-case and replace `[][]byte` with `[][]string`
* return version name in http header
* populate header and use `interfaces.ReadOnlyBeaconBlock`
* fix lint
* merge cases in switch case and replace `interfaces.ExecutionData` with `*ExecutionPayloadHeader`
* minor fixes
* refactor `createLightClientBootstrapCapella` and `createLightClientBootstrapDeneb`
* use lightclientheader instead of different versions
* fix failing `TestLightClientHandler_GetLightClientBootstrap` tests
* fix lint
* refactor handlers
* refactor handlers more
* refactor handlers even more
* create conversions_lightclient
* fix lint errors
* add deneb and capella proto headers
* update lightclientbootstrap proto struct to capella&deneb
* update usecases
* update usecases
* resolve panic in header.GetBeacon
* fix spacings
* refactor core/lightclient.go
* fix isBetterUpdate
* use errors.wrap instead of fmt.errorf
* changelog entry
* fix lint errors
* fix api structs to use json rawMessage
* inline unmarshal
* remove redundant nil check
* revert remove redundant nil check
* return error in newLightClientUpdateToJSON
* inline getExecutionData
* better error handling
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Inspector-Butters <mohamadbastin@gmail.com >
Co-authored-by: Bastin <43618253+Inspector-Butters@users.noreply.github.com >
2024-09-06 17:06:31 +00:00
Bastin
3015eea4e3
Fix lightclient header ( #14389 )
...
* change LCUpdate to use LCHeader
* fix api struct usages
* fix api struct finalized_header
* add lightclientheader to proto structs
* fix proto usages
* fix proto usages in events
* fix uppercase field in protobuf defenition
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-29 15:57:21 +00:00
Rupam Dey
dd3c9652c3
fix: replace BeaconBlockHeader in createLightClientBootstrap with LightClientHeader ( #14374 )
...
* fix: replace `BeaconBlockHeader` in `createLightClientBootstrap` with `LightClientHeader`
* minor fix in `handlers_test.go`
* check if `beacon` is `nil` instead of `header`
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-22 17:13:10 +00:00
Radosław Kapka
e3ce1bde45
Move API structs to api module ( #13577 )
2024-02-03 11:57:01 +00:00