-
Notifications
You must be signed in to change notification settings - Fork 80
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 etnaActivationTime #2373
add etnaActivationTime #2373
Conversation
@@ -153,7 +153,11 @@ func NewSignatureAggregator( | |||
logging.JSON.ConsoleEncoder(), | |||
), | |||
) | |||
return initSignatureAggregator(peerNetwork, logger, registerer, subnetID, quorumPercentage) | |||
etnaTime := time.Unix(0, 0) |
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 don't think we should use time.Unix(0,0) at all here
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.
Since IsZero()
returns false for that time. Instead we should just use the default time.Time
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.
agree. much better way. fixed
etnaTime := time.Unix(0, 0) | ||
if t, ok := constants.EtnaActivationTime[network.ID]; ok { | ||
etnaTime = t | ||
} |
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.
etnaTime := time.Unix(0, 0) | |
if t, ok := constants.EtnaActivationTime[network.ID]; ok { | |
etnaTime = t | |
} | |
etnaTime := constants.EtnaActivationTime[network.ID] |
This will use a default (i.e. zero) time.Time
instance if the key is not in the map
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.
totally agree. fixed
…li into etna-activation-map
Why this should be merged
provides correct etna activation time for devnet and fuji
How this works
uses map and default 0,0 value
How this was tested
e2e + regulat etna flow PoA/PoS
How is this documented
n/a