mit-dci / dlcoracle

7 stars 7 forks source link

dlcoracle prepared for run within mit-dci/lit testing framework. #5

Open infografx opened 5 years ago

infografx commented 5 years ago

I have written a tests for the LIT DLC subsystem. But to make it works I had to modify the dlcoracle, a little.

Added some command line parameters to the dlcoracle: DataDir - so It could save keys in a test folder HttpPort - to create multiple instances Interval - to control the data publishing interval. To set the appropriate time when creating a r-point.

You could also run the dlcoracle as before - without arguments.

infografx commented 5 years ago

I have pushed tests to my fork: https://github.com/infografx/lit

So you could review them and test. The file is: itest_dlc.py

Settle contract is still does not works. I'm working on it.

But the dlcoracle changes it ready to merge, I think.

infografx commented 5 years ago

Also I have added arguments to set the interval of the publishing random variable.