fetchai / fetchd

Source code for Fetch.ai blockchain nodes
Other
100 stars 38 forks source link

Feature request: Set time on local fetchd node #237

Open dishmop opened 2 years ago

dishmop commented 2 years ago

Prerequisites

Problem

I need to run integration tests on a local node and cosmpy which test things over a long time frame.

E.g. take out a loan at 10% APR. Run time forward by one year. Check the debt is exactly 10% bigger.

I can't do this at the moment,

Feature / Solution

Ganache as an option to set the next block time. This combined with only mining when transactions come in give you ver fine control over such things and I can can completely deterministic time-based integration tests.

Alternatives

No response

Additional Context

No response