GO-2023-1865: Vega's validators able to submit duplicate transactions in code.vegaprotocol.io/vega
package
Version:
v0.60.0
Opens a new window with list of versions in this module.
Published: Oct 25, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Format format the time using the time.RFC3339Nano formatting.
Now return the current time in UTC timezone.
Parse parse a string expected to be a time in the time.RFC3339Nano format.
RoundToNearest round an actual time to the nearest interval.
SetNowFunc exists for testing purpose
e.g: set the vegatime.Now function to return a specific time
vegatime.SetNowFunc(func() time.T { vegatime.Unix(123423, 0) })
reset the vegatime.Now function
vegatime.SetNowFunc(nil)
this will reset the vegatime.Now function to use time.Now() again.
Unix create a new time from sec and nsec in UTC timezone.
UnixNano equivalent to time.Unix(sec, nsec) but to be used with the
result of time.Time{}.UnixNano() in UTC timezone.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.