-
Notifications
You must be signed in to change notification settings - Fork 81
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
*: add Copy() to transaction.Transaction and payload.P2PNotaryRequest #3407
Conversation
112f9ad
to
9cdcbc0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3407 +/- ##
==========================================
+ Coverage 86.13% 86.19% +0.06%
==========================================
Files 331 331
Lines 38114 38210 +96
==========================================
+ Hits 32828 32937 +109
+ Misses 3773 3754 -19
- Partials 1513 1519 +6 ☔ View full report in Codecov by Sentry. |
9cdcbc0
to
b06d96b
Compare
b06d96b
to
2743df3
Compare
2743df3
to
6cea4e8
Compare
@AnnaShaleva Let's decide if the current copy implementation is okay before writing tests for all new copy() methods? |
6cea4e8
to
acc3ed9
Compare
5098928
to
84b50f4
Compare
1c84171
to
13ab7de
Compare
Signed-off-by: Ekaterina Pavlova <[email protected]>
13ab7de
to
077f4f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style comments, the logic LGTM.
077f4f0
to
9ac42e5
Compare
Signed-off-by: Ekaterina Pavlova <[email protected]>
9ac42e5
to
682032f
Compare
682032f
to
11772fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@roman-khimov, ready for review. |
pkg/core/transaction/witness_test.go
Outdated
InvocationScript: make([]byte, MaxInvocationScript), | ||
VerificationScript: make([]byte, MaxVerificationScript), | ||
InvocationScript: []byte{1, 2, 2}, | ||
VerificationScript: []byte{3, 2, 2}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
11772fb
to
3f5d84c
Compare
3f5d84c
to
fcd5f24
Compare
Since the AllowedGroups []*keys.PublicKey slice is used in the initialization, the test should use the same structures. Signed-off-by: Ekaterina Pavlova <[email protected]>
fcd5f24
to
c7f60e6
Compare
Add a method that makes a deep copy of all fields and resets size/hash caches. Close #3288 Signed-off-by: Ekaterina Pavlova <[email protected]>
Signed-off-by: Ekaterina Pavlova <[email protected]>
c7f60e6
to
8da7c0a
Compare
That was my concern as far, but I've checked the existing code and it seems that this type change doesn't break anything. Anyway, the current version looks better. |
Close #3288