Convex-Dev / convex

Convex Main Repository - Decentralised platform for the Internet of Value
https://convex.world
Other
95 stars 30 forks source link

Public API for advancing the CVM timestamp #484

Closed helins closed 1 year ago

helins commented 1 year ago

I've been using a hacky way for advancing the CVM timestamp (and executing scheduled transactions) that broke recently. Important for testing scheduling deterministically.

Note: not a priority for cloud testing per se but avoids breaking the current tooling (i.e. Shell)

mikera commented 1 year ago

A couple of potentially useful functions have been made public in State so you should be able to do this.

Note however this is internal stuff and not likely to be part of any official public API, so caveat emptor as usual.....

mikera commented 1 year ago

Please confirm if the above solves your problem and close if so, thanks @helins

helins commented 1 year ago

Does the job, thanks. I would keep it more official since it is the only way of reliably testing scheduling (which is a key feature of Convex).