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

core: refactor UnsignedData to interface #708

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

corverroos
Copy link
Contributor

Refactors core.UnsignedData into an interface. Follow pattern established via SignedData.

category: refactor
ticket: #698

@@ -287,7 +292,12 @@ func (a Attestation) Clone() (SignedData, error) {
//nolint:revive // similar method names.
func (a Attestation) clone() (Attestation, error) {
var resp Attestation
return resp, cloneSignedData(a, &resp)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this super succinct way didn't work, trying to be too smart 😉

@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #708 (18816cd) into main (4e0689b) will decrease coverage by 0.25%.
The diff coverage is 44.06%.

@@            Coverage Diff             @@
##             main     #708      +/-   ##
==========================================
- Coverage   54.39%   54.13%   -0.26%     
==========================================
  Files         103      104       +1     
  Lines        9971    10146     +175     
==========================================
+ Hits         5424     5493      +69     
- Misses       3761     3845      +84     
- Partials      786      808      +22     
Impacted Files Coverage Δ
core/encode.go 53.84% <ø> (ø)
core/types.go 22.47% <0.00%> (-2.53%) ⬇️
core/consensus/component.go 59.11% <22.22%> (-2.73%) ⬇️
core/unsigneddata.go 38.13% <38.13%> (ø)
core/signeddata.go 40.54% <45.00%> (-0.89%) ⬇️
core/dutydb/memory.go 73.80% <47.36%> (-3.76%) ⬇️
core/fetcher/fetcher.go 64.83% <55.55%> (-0.39%) ⬇️
core/proto.go 69.47% <57.14%> (+11.04%) ⬆️
core/leadercast/transport.go 75.14% <68.42%> (-1.96%) ⬇️
app/app.go 58.00% <0.00%> (-1.75%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e0689b...18816cd. Read the comment docs.

Copy link
Contributor

@dB2510 dB2510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jun 15, 2022
@obol-bulldozer obol-bulldozer bot merged commit bbd156f into main Jun 15, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/unsignedinterface branch June 15, 2022 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants