-
Notifications
You must be signed in to change notification settings - Fork 105
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
[chain] Refactor Base
into Transaction
#1054
Conversation
func (*Base) Size() int { | ||
return BaseSize | ||
} |
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.
I noticed that Size()
, even if defined, didn't seemed to be used. So I just deleted the whole file because all of the other methods have been inlined into Transaction
.
cli/spam.go
Outdated
func (t *timeModifier) Base(b *chain.Transaction) { | ||
b.Timestamp = t.Timestamp | ||
} |
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.
Do we really want the modifier to have access to the full Transaction
?
b949d93
to
423c401
Compare
92b1b77
to
68b525a
Compare
5166693
to
064b705
Compare
I don't think we want to use the modifier as it's used in this PR long term. Closing in favor of a different tx/action refactor later. |
Closes #685
Making the
Base
part of theTransaction
so that their relationship is clearer.