Commit Graph

623 Commits

Author SHA1 Message Date
Sergi Delgado Segura
01ad0d4cdf Adds some ConfigLoader unit tests 2020-03-23 11:16:32 +01:00
Sergi Delgado Segura
27e249e665 Adds missing try/catch when casting data from config file in ConfigLoader 2020-03-22 19:09:48 +01:00
Sergi Delgado Segura
e9f442d419 Refactors e2e tests to match the new config approach 2020-03-21 22:52:38 +01:00
Sergi Delgado Segura
6595c2d790 Avoids global variables in teosd for better testing 2020-03-21 22:52:16 +01:00
Sergi Delgado Segura
2587e25637 Adds cli unit tests 2020-03-21 22:13:33 +01:00
Sergi Delgado Segura
3d389a92ac Refactors cli to use the new config approach. Adds template.conf 2020-03-21 22:13:22 +01:00
Sergi Delgado Segura
00a48ce6f5 Modifies ConfigParser so config file is passed as parameter (to be used by both teos and cli)
- Modifies ConfigParser
- Adapts __init__ and teosd at teos/
2020-03-21 22:02:46 +01:00
Sergi Delgado Segura
d860c9bca6 Refactor common/test_tools to remove the conf related functionality 2020-03-21 20:46:19 +01:00
Sergi Delgado Segura
cb79e51d09 Refactors the tests to match the new class definitions and config formats 2020-03-20 21:38:29 +01:00
Sergi Delgado Segura
b43731397c Updates teos to work with the new conf file format and redefines how objects are built
Configuration parameters are now load from a .conf file (see template.conf as an example).

The code has 3 config levels: default (teos/__init__.py), config file (<data_dir>/teos.conf) and command line.
Most of the config parameters are only modificable trough the config file for now.
The priority order is: command line, config file, default.

Objects that need config parameters are now built in teosd instead of inside other classes. Therefore teosd acts like a factory and config parameters don't have to be passed around between objects. This also implies that a lot of the object creation logic has been changed.

This should simplify unit testing.
2020-03-20 21:38:28 +01:00
Sergi Delgado Segura
6499820540 Adds ConfigLoader to handle loading configurations parameters. Switches from conf.py to .conf files 2020-03-20 21:38:22 +01:00
Sergi Delgado Segura
a60bab5f5a Merge pull request #106 from talaia-labs/fix-missing-sig-check
Adds missing inspector sig check from #103
2020-03-19 22:43:03 +01:00
Sergi Delgado Segura
045417aefc Adds missing inspector sig check from #103 2020-03-19 22:31:00 +01:00
Sergi Delgado Segura
cf80579381 Merge pull request #105 from sr-gi/road-to-oss
Road to OSS
2020-03-18 20:17:28 +01:00
Sergi Delgado Segura
89708e86b3 Improves docs 2020-03-18 20:13:50 +01:00
Sergi Delgado Segura
9d08c10416 Updates README to improve the conf file wording 2020-03-18 18:41:19 +01:00
Sergi Delgado Segura
6e06c87cf5 Adds some notes on running bitcoind and how to change networks 2020-03-18 18:33:39 +01:00
Sergi Delgado Segura
6f8af947ae Adds unhandled exception when not bneing able to connect to bitcoind 2020-03-18 18:33:39 +01:00
Sergi Delgado Segura
f5c7f23083 Makes sure cryptography dependency is at least 2.8 2020-03-18 18:33:39 +01:00
Sergi Delgado Segura
5ff33ad5cf Gets rid of sample_confs and add defaults confs 2020-03-18 18:33:38 +01:00
Sergi Delgado Segura
685c81fa40 Updates repo name to not match server-side name. Updates INSTALL 2020-03-18 18:33:34 +01:00
Sergi Delgado Segura
b200968da9 Removes snap catching until a way of doing it is found.
Currently it fails on restoring the cache due to trying to resto /snap
2020-03-18 16:26:52 +01:00
Sergi Delgado Segura
8f3834ad90 Caps 2020-03-18 16:26:52 +01:00
Sergi Delgado Segura
6d6fa9f728 Update missing readmes and circleci
- Some apps intances were not removed
- requeriment paths were wrong in circleci and some apps path needed to be removed
2020-03-18 16:26:48 +01:00
Sergi Delgado Segura
90ec15923e Move requeriments to root and creates readmes 2020-03-18 16:25:52 +01:00
Sergi Delgado Segura
5e5ff0278a Removes apps folder 2020-03-18 12:09:58 +01:00
Sergi Delgado Segura
3e1700f3de Merge pull request #103 from sr-gi/enable_user_sig
Enables user-side sig using the new signature algorithm
2020-03-18 00:26:11 +01:00
Sergi Delgado Segura
a9e7eeb7f5 Reenables keys in e2e and removes monkeypatching 2020-03-18 00:19:48 +01:00
Sergi Delgado Segura
d18944e2ba Add more contrains to load_keys and updates unit tests 2020-03-17 20:22:03 +01:00
Sergi Delgado Segura
568d72a1ad Reenables user side signing 2020-03-17 19:37:23 +01:00
Sergi Delgado Segura
66da6c6327 Missing files to rename 2020-03-17 19:37:05 +01:00
Sergi Delgado Segura
68b1089cd7 Merge pull request #102 from sr-gi/renaming
Renaming
2020-03-17 17:04:37 +01:00
Sergi Delgado Segura
984fd48df2 Changes save_pk to output compressed pks 2020-03-17 17:01:00 +01:00
Sergi Delgado Segura
7c7ff909d7 pisa -> teos 2020-03-17 15:47:38 +01:00
Sergi Delgado Segura
15126618d5 Merge pull request #99 from sr-gi/lightning-signmessage-recoverpk
Lightning signmessage recoverpk
2020-03-17 11:54:53 +01:00
Sergi Delgado Segura
0bc0426186 Changes ports for bitcoind e2e and runs it earlier to give it time to boostrap 2020-03-17 11:50:28 +01:00
Sergi Delgado Segura
58dd2c7fe7 Merge pull request #101 from sr-gi/small-fixes
Simplifies circle-ci + small fixes
2020-03-17 11:27:06 +01:00
Sergi Delgado Segura
8a0cb4bf2a Updates pisa.conf for e2e and circle-ci conf 2020-03-17 11:21:37 +01:00
Sergi Delgado Segura
23dea42bfc Adds daemon to e2e bitcoin.conf 2020-03-17 11:14:44 +01:00
Sergi Delgado Segura
de6fa5ce12 Further updates circle-ci 2020-03-17 11:11:24 +01:00
Sergi Delgado Segura
e3521188a7 Updates circleci
The sandbox won't be needed anymore, so the test env can be made simpler. Forks can be simulated via invalidateblock and reconsiderblock
2020-03-16 17:44:11 +01:00
Sergi Delgado Segura
67942450e6 Add some pending fixes (typos and tests) 2020-03-16 16:11:08 +01:00
Sergi Delgado Segura
b3672ec02c Updates hardcoded pisa_pk with compressed pk 2020-02-21 14:15:56 +01:00
Sergi Delgado Segura
39d7f66f77 Updates generate_key to be compatible with coincurve 2020-02-21 13:35:54 +01:00
Sergi Delgado Segura
429cb532b5 Updates e2e tests signature verification 2020-02-21 13:22:26 +01:00
Sergi Delgado Segura
06c51ce361 Fixes wrong test 2020-02-21 13:21:38 +01:00
Sergi Delgado Segura
ef4f6d1012 Updates cli to use the new key formats 2020-02-21 13:21:13 +01:00
Sergi Delgado Segura
1d6af6d193 Adds new dependencies 2020-02-21 13:19:21 +01:00
Sergi Delgado Segura
1837baed2a Updates unit tests to use the new key formats 2020-02-21 13:18:56 +01:00
Sergi Delgado Segura
3db5012145 Updates Watcher docs 2020-02-21 13:17:49 +01:00