increaseNextHeight prepares the chain state for the next turn.
()
| 974 | |
| 975 | // increaseNextHeight prepares the chain state for the next turn. |
| 976 | func (c *Chain) increaseNextHeight() { |
| 977 | c.Lock() |
| 978 | defer c.Unlock() |
| 979 | c.nextHeight++ |
| 980 | } |
| 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 { |
no outgoing calls
no test coverage detected