Sergi Delgado Segura
0f45e8fe11
Adds methods to get seeded random values and fixes create_txs
2020-01-21 19:11:50 +01:00
Sergi Delgado Segura
7bf65c40f5
Updates unit tests, adds tests to cover new methods and removes unused imports
2020-01-21 19:11:33 +01:00
Sergi Delgado Segura
74a9dad071
Updates Watcher to use new Cleaner functions and reformats filter_valid_breaches to return a list of valid and invalid breaches.
2020-01-21 19:11:15 +01:00
Sergi Delgado Segura
33f2ab35d8
Updates responder to use new Cleaner functions
2020-01-21 19:11:02 +01:00
Sergi Delgado Segura
a95e301713
Renames some DBManager methods and adds new functionality
...
- Refactors store_update_locator_map name to create_append_locator_map, which is a better fit.
- Adds update_locator_map method to update maps by removing some uuids (store_update_locator_map was not covering this, what was misleading).
- Adds missing docs.
2020-01-21 19:09:39 +01:00
Sergi Delgado Segura
5ead43163c
Refactors Cleaner to improve its modularity and fixes some small bugs
...
- Improves code modularity.
- Separates flag_triggered from delete_appointment, which was pretty misleading (and causing some minor bugs) and make them work with lists intead of single objects.
- Removes unused import
2020-01-21 19:06:51 +01:00
Sergi Delgado Segura
2559d143aa
Fixes logging
2020-01-21 19:06:29 +01:00
Sergi Delgado Segura
200304cbce
Remove unnecessary tailing dots from some log messages
2020-01-21 12:14:51 +01:00
Sergi Delgado Segura
3605590fa4
Updates cli unit tests to match the net post_data_to_add_appointment_endpoint method
2020-01-21 12:07:44 +01:00
Sergi Delgado Segura
568418a18e
Simplifies pisa_cli.post_data_to_add_appointment_endpoint
...
The appointment endpoint was a parameter even though the method is only used to send data the a single endpoint. The json data is only used inside the method, so it can be computed there too.
2020-01-21 12:07:05 +01:00
Sergi Delgado Segura
d7e91d34e7
Updates cli test to expect an exception instead of False
2020-01-20 17:21:56 +01:00
Sergi Delgado Segura
ff4e7f2b67
Adds pisa setup and e2e test run to circle-ci
2020-01-20 17:21:50 +01:00
Sergi Delgado Segura
18cd2a7499
Adds pisa conf for e2e testing and initial setup for the regtest node
2020-01-20 17:02:38 +01:00
Sergi Delgado Segura
396c56e5db
Adds name parameter to generate_keys so the name can be chosen from terminal
2020-01-20 17:02:25 +01:00
Sergi Delgado Segura
4eb55eaacc
Raises exception on missing cli keys
...
load_key_file_data was returning False on FileNotFound but get_pk was expecting an exception
2020-01-20 16:19:45 +01:00
Sergi Delgado Segura
892e25e971
ocd fixes
2020-01-20 15:14:04 +01:00
Sergi Delgado Segura
a3423a01e7
Updates Dockerfile to not build ln
...
We cannot use docker caching with the current circleci plan, so we'll build a lighter image for now
2020-01-20 15:08:08 +01:00
Sergi Delgado Segura
ed31be8a03
Updates circle-ci to cache bitcoin_sandbox requirements
2020-01-20 13:37:41 +01:00
Sergi Delgado Segura
77d678a4ca
Updates paths for bitcoin_sandbox
2020-01-20 13:37:09 +01:00
Sergi Delgado Segura
5286cbf0ac
Clears circle-ci caches
2020-01-20 12:43:45 +01:00
Sergi Delgado Segura
b38ad70352
Changes circle-ci base image to Ubuntu
2020-01-20 12:38:43 +01:00
Sergi Delgado Segura
2c8c8c7323
Updates circle-ci with basic e2e infraestructure
2020-01-20 11:53:13 +01:00
Sergi Delgado Segura
f91475c61b
Updates life cycle tests and adds malformed tx tests
2020-01-17 17:51:09 +01:00
Sergi Delgado Segura
404952415d
Creates conftest for e2e tests
2020-01-17 17:51:01 +01:00
Sergi Delgado Segura
0f887feb4d
Deletes appointment from Watcher's db if a tracker cannot be added
...
There was a bug in the Responder where, if a tracker could not be added (e.g. malformed tx) the data was dropped but never removed from the Watcher's db. This is due to flagging appointments as triggered instead of deleting them from the Watcher's db straight away (in order to deal with reorgs in the future).
If that approach is not followed, and appointments are removed from the Watcher's db once they are passed to the Responder, this should be removed since it would be redundant.
2020-01-17 17:47:45 +01:00
Sergi Delgado Segura
dad70eb780
Moves update_delete_locator_map functionality to its own method.
2020-01-17 17:47:05 +01:00
Sergi Delgado Segura
07c9b7d19e
Updates error message for RPC_VERIFY_REJECTED rpc error.
2020-01-17 17:46:14 +01:00
Sergi Delgado Segura
b32a867283
Moves db_manager instantiation before checking the connection with bitcoin
...
As it was until now, if the connection with bitcoind failed, the command would have also failed, since the db_manager was not yet defined.
2020-01-17 15:32:30 +01:00
Sergi Delgado Segura
15b31105e1
Adds basic E2E testing
2020-01-16 17:09:26 +01:00
Sergi Delgado Segura
db330ce353
Updates cli unit tests to match the bug fixes
2020-01-16 17:09:13 +01:00
Sergi Delgado Segura
90e1245a84
Fixes some bugs based on E2E testing
2020-01-16 17:08:44 +01:00
Sergi Delgado Segura
d3846c1fe6
Merge pull request #84 from sr-gi/update-bitcoind-mock
...
Update bitcoind mock and circle-cli
2020-01-15 16:45:21 +01:00
Sergi Delgado Segura
5e4e773984
Adds cli requirements to circle-ci
2020-01-15 16:42:07 +01:00
Sergi Delgado Segura
3dc1fbcb86
Specifies minimum version for bitcoind_mock
2020-01-15 16:34:17 +01:00
Sergi Delgado Segura
ce2cc81d8b
Updates circleci
...
Dependencies now also include dev-requirements and cli tests are now also enabled.
bitcoind_mock is got from PyPi now instead of github.
2020-01-15 16:06:50 +01:00
Sergi Delgado Segura
0ddace6256
Updates requirements and adds dev requirements
2020-01-15 15:48:30 +01:00
Sergi Delgado Segura
fb8c6c80d3
Updates tests to work with new version of bitcoind_mock
2020-01-15 15:43:00 +01:00
Sergi Delgado Segura
3d4ed28c8b
Fixes wrong log messase
2020-01-15 15:41:57 +01:00
Sergi Delgado Segura
b0bcffd825
Update CONTRIBUTING.md
2020-01-15 12:52:49 +01:00
Sergi Delgado Segura
fa13fb7611
Merge pull request #83 from sr-gi/64-data-to-disk
...
Removes unnecessary data from memory
2020-01-15 12:46:50 +01:00
Sergi Delgado Segura
a49f86dd88
Merge branch 'master' into 64-data-to-disk
2020-01-15 12:44:29 +01:00
Sergi Delgado Segura
72336f3309
Merge pull request #82 from sr-gi/chainmonitor
...
Implements the ChainMonitor
2020-01-15 11:40:43 +01:00
Sergi Delgado Segura
42a957f555
Merge branch 'master' into chainmonitor
2020-01-15 11:38:32 +01:00
Sergi Delgado Segura
0519ea9ca8
Merge pull request #79 from orbitalturtle/isolate-config
...
Isolate pisa config options
2020-01-15 10:25:51 +01:00
Sergi Delgado Segura
6bf2cb5379
Merge branch 'master' into isolate-config
2020-01-15 10:15:48 +01:00
Sergi Delgado Segura
36eaa93dc4
Merge pull request #65 from orbitalturtle/pisa-cli-modularity
...
Refactor add_appointment cli code
2020-01-15 10:14:49 +01:00
Turtle
bd41c8b862
Add unit tests for remaining cli functions
2020-01-15 03:35:34 -05:00
Turtle
3775b78500
Fix filename typo in cli README
2020-01-15 03:35:34 -05:00
Turtle
39208e4b14
Test new functions split off in pisa_cli
2020-01-15 03:35:34 -05:00
Turtle
40d7ca1912
Refactor add_appointment cli code
2020-01-15 03:35:31 -05:00