-
Notifications
You must be signed in to change notification settings - Fork 15
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
Store txConflicting reason correctly and rename ConflictDAG to SpendDAG #508
Conversation
64bf4f1
to
2857d11
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.
Please run a search through the whole codebase again as there seems to be a lot conflicts
left.
|
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.
Another batch of missed conflict renames.
@@ -222,10 +222,10 @@ class OutputMeta extends React.Component<omProps, any> { | |||
let pendingMana = this.props.pendingMana; | |||
return ( | |||
<ListGroup> | |||
ConflictIDs: | |||
spendIDs: |
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.
Missing capital letter in Spend
here and in other .tsx files.
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 was that resolved without a comment? Because I also don't get the change...
pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag_test.go
Outdated
Show resolved
Hide resolved
pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag_test.go
Outdated
Show resolved
Hide resolved
23fb3ff
to
aa045a2
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.
This is such a massive "renaming PR".... I don't like that it also includes logic changes at the same time.
For the next time you do such a refactor, it would be much better to split it up into several PRs.
For example, use the rename capability of the IDE only, no "find & replace" (I see that you used that because uncommented code also changed). And then create commits per single "rename". This is much easier to check, because we all can simply trust your IDE.
The logic changes should be part of another PR next time.
Regarding the new naming and the logic, I totally agree with @cyberphysic4l 's comment.
Maybe we should create another type for the tuple of (iotago.TransactionID, iotago.OutputID)
in another PR and fix the logic.
I also think the usage of "transactionID" instead of "spendID" in some places makes more sense.
Should we merge this PR or will this heavily conflict with the react branches?
@@ -222,10 +222,10 @@ class OutputMeta extends React.Component<omProps, any> { | |||
let pendingMana = this.props.pendingMana; | |||
return ( | |||
<ListGroup> | |||
ConflictIDs: | |||
spendIDs: |
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 was that resolved without a comment? Because I also don't get the change...
Remove
optForkAllTransactions
option. The default is to fork all transactions.Store conflicting transaction failure reason on TransactionMetadata
OnRejected
event.Rename
ConflictDAG
toSpendDAG
.Since we fork every transaction, not just conflicts are included.
Rename
Conflict
toSpender
andConflictID
toSpenderID
because these objects represent transactions (transactions are generically referred to as a spender, and an output is generically referred to as a resource).Close #462