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

Feature/rpc and serialize fixes #575

Merged
merged 2 commits into from
Dec 25, 2019
Merged

Conversation

volekerb
Copy link
Contributor

Problem

Missing unmarshal function for TXType and missing parametrization for "getblock" so it can return pure bytes
...

Solution

this patchset
...

@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #575 into master will decrease coverage by 0.22%.
The diff coverage is 5.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #575      +/-   ##
==========================================
- Coverage    62.5%   62.27%   -0.23%     
==========================================
  Files         123      123              
  Lines        9990    10028      +38     
==========================================
+ Hits         6244     6245       +1     
- Misses       3445     3481      +36     
- Partials      301      302       +1
Impacted Files Coverage Δ
pkg/core/transaction/type.go 0% <0%> (ø) ⬆️
pkg/rpc/server.go 78.66% <33.33%> (-1%) ⬇️

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 f3391f8...6066166. Read the comment docs.

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

And it would be nice to improve 4798d6c commit message, because it's adding unmarshalling for specific data type. Not critical, though.

@@ -52,3 +58,44 @@ func (t TXType) String() string {
func (t TXType) MarshalJSON() ([]byte, error) {
return []byte(`"` + t.String() + `"`), nil
}

// UnmarshalJSON implements the json.Unmarshaler interface.
func (t *TXType) UnmarshalJSON(data []byte) (err error) {
Copy link
Member

Choose a reason for hiding this comment

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

(error)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

}

*t, err = TXTypeFromString(string(data[1 : l-1]))
return
Copy link
Member

Choose a reason for hiding this comment

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

return err

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@roman-khimov roman-khimov added this to the v0.71.0 milestone Dec 24, 2019
@volekerb volekerb force-pushed the feature/rpc_and_serialize_fixes branch from ce4f399 to 6066166 Compare December 24, 2019 22:44
@volekerb
Copy link
Contributor Author

And it would be nice to improve 4798d6c commit message, because it's adding unmarshalling for specific data type. Not critical, though.

done

@roman-khimov roman-khimov merged commit ef35100 into master Dec 25, 2019
@roman-khimov roman-khimov deleted the feature/rpc_and_serialize_fixes branch December 25, 2019 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants