Handle all breaking changes for the patch #222
No reviewers
Labels
No Label
bug
critical
duplicate
enhancement
epic
help wanted
in progress
invalid
low priority
question
rebase
v1
v5
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/go-ethereum#222
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "v1.10.17-statediff-v3.2.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The major change to integrate the patch has been:
rlp.EncodeToBytes
. This function accepts interfaces, but since the last update, it is better to pass in a pointer to the function.core/types
: For optimization purposes,types.Header
and other types in this package now implement therlp.Encoder
interface. This change can cause incompatibilities because the new method is implemented with pointer receiver. Attempting to RLP-encode unadressable (i.e. non-pointer) values of typeHeader
does not work anymore and will result in an error."rlp.EncodeToBytes
to be pointers instead of values.Please take a close look at the updates. The functions won't fail if a non-pointer is passed (in most cases), but we could be unexpected behaviors.
LGTM, nothing critical just identified places where it is already the pointer.
Thanks!