heightOfTime calculates the heightOfTime with this sql-chain config of a given time reading.
(t time.Time)
| 981 | |
| 982 | // heightOfTime calculates the heightOfTime with this sql-chain config of a given time reading. |
| 983 | func (c *Chain) heightOfTime(t time.Time) uint32 { |
| 984 | return uint32(t.Sub(c.genesisTime) / c.period) |
| 985 | } |
| 986 | |
| 987 | func (c *Chain) getRequiredConfirms() uint32 { |
| 988 | c.RLock() |
no outgoing calls
no test coverage detected