-
Notifications
You must be signed in to change notification settings - Fork 1k
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 reserved attribute #2868
Add reserved attribute #2868
Conversation
@shargon, are we planning to include this PR into 3.6.0? |
tests/Neo.UnitTests/Network/P2P/Payloads/UT_HighPriorityAttribute.cs
Outdated
Show resolved
Hide resolved
I'm not in a hurry, except that @roman-khimov or @vncoelho want to |
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.
Certainly not a blocker for 3.6, but it's good you've updated it anyway.
/// Indicates that the transaction is a reserved attribute. | ||
/// </summary> | ||
[ReflectionCache(typeof(ReservedAttribute))] | ||
ReservedAttribute = 0x31 |
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.
Actually, the idea was to have a range of attributes (suppose you're creating an alternative to #1573 and defining 10 attributes instead of 3). And it's better be some upper range to reduce collisions with "regular" type.
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.
Like in #1904 (comment)
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.
What do you mean by "Range of Attributes"?
In the way it is implemented we can setup a reserved byte that have ff
possibilities as range for the dapp, right @shargon ?
Not in hurry, @shargon. But this do not have any possible problem, does it have? |
foreach (TransactionAttribute attribute in Attributes)
if (!attribute.Verify(snapshot, this))
return VerifyResult.InvalidAttribute; |
Close as inactive |
Close #1904