Commit Graph

  • a3f2d20499 Moves/adds methods to deal with config to common Sergi Delgado Segura 2020-01-23 18:05:44 +01:00
  • c1ad1a4924 Updates cli to run with config file Sergi Delgado Segura 2020-01-23 16:30:09 +01:00
  • 418b7b49ab Creates main function and updates config to add data folder Sergi Delgado Segura 2020-01-23 16:27:18 +01:00
  • 245d5b49f3 Updates config files Sergi Delgado Segura 2020-01-23 16:23:07 +01:00
  • 852368a2ad Adds tests for sending two different appointments with the same locator to the tower Sergi Delgado Segura 2020-01-22 16:25:52 +01:00
  • 03f0a270d8 Modifies when the flag is cleared Sergi Delgado Segura 2020-01-22 16:24:32 +01:00
  • 272e61922d Move triggered flag clearing to the Watcher when a triggered appointment cannot make it to the mempool Sergi Delgado Segura 2020-01-22 16:19:51 +01:00
  • fd6c85ced2 Moves logs to be consistent with the rest of db logs. Adds missing docs and adds an exception if the db is alredy being used Sergi Delgado Segura 2020-01-22 15:20:50 +01:00
  • 1027f48611 Splits create_txs in two simpler functions and refactors fixtures so setup_node is not called every test Sergi Delgado Segura 2020-01-22 14:46:59 +01:00
  • 93cb003360 Setup seed for cli and common unit tests to random values are replicable Sergi Delgado Segura 2020-01-22 11:12:01 +01:00
  • 14503dcebd Adds e2e tests encrypted blobs with wrong key Sergi Delgado Segura 2020-01-21 19:12:01 +01:00
  • 0f45e8fe11 Adds methods to get seeded random values and fixes create_txs Sergi Delgado Segura 2020-01-21 19:11:50 +01:00
  • 7bf65c40f5 Updates unit tests, adds tests to cover new methods and removes unused imports Sergi Delgado Segura 2020-01-21 19:11:33 +01:00
  • 74a9dad071 Updates Watcher to use new Cleaner functions and reformats filter_valid_breaches to return a list of valid and invalid breaches. Sergi Delgado Segura 2020-01-21 19:11:15 +01:00
  • 33f2ab35d8 Updates responder to use new Cleaner functions Sergi Delgado Segura 2020-01-21 19:11:02 +01:00
  • a95e301713 Renames some DBManager methods and adds new functionality Sergi Delgado Segura 2020-01-21 19:09:39 +01:00
  • 5ead43163c Refactors Cleaner to improve its modularity and fixes some small bugs Sergi Delgado Segura 2020-01-21 19:06:51 +01:00
  • 2559d143aa Fixes logging Sergi Delgado Segura 2020-01-21 19:06:29 +01:00
  • 200304cbce Remove unnecessary tailing dots from some log messages Sergi Delgado Segura 2020-01-21 12:14:51 +01:00
  • 3605590fa4 Updates cli unit tests to match the net post_data_to_add_appointment_endpoint method Sergi Delgado Segura 2020-01-21 12:07:44 +01:00
  • 568418a18e Simplifies pisa_cli.post_data_to_add_appointment_endpoint Sergi Delgado Segura 2020-01-21 12:07:05 +01:00
  • d7e91d34e7 Updates cli test to expect an exception instead of False Sergi Delgado Segura 2020-01-20 16:40:58 +01:00
  • ff4e7f2b67 Adds pisa setup and e2e test run to circle-ci Sergi Delgado Segura 2020-01-20 16:28:20 +01:00
  • 18cd2a7499 Adds pisa conf for e2e testing and initial setup for the regtest node Sergi Delgado Segura 2020-01-20 16:24:33 +01:00
  • 396c56e5db Adds name parameter to generate_keys so the name can be chosen from terminal Sergi Delgado Segura 2020-01-20 16:21:15 +01:00
  • 4eb55eaacc Raises exception on missing cli keys Sergi Delgado Segura 2020-01-20 16:19:45 +01:00
  • 892e25e971 ocd fixes Sergi Delgado Segura 2020-01-20 15:14:04 +01:00
  • a3423a01e7 Updates Dockerfile to not build ln Sergi Delgado Segura 2020-01-20 15:07:38 +01:00
  • ed31be8a03 Updates circle-ci to cache bitcoin_sandbox requirements Sergi Delgado Segura 2020-01-20 13:18:12 +01:00
  • 77d678a4ca Updates paths for bitcoin_sandbox Sergi Delgado Segura 2020-01-20 13:01:21 +01:00
  • 5286cbf0ac Clears circle-ci caches Sergi Delgado Segura 2020-01-20 12:43:45 +01:00
  • b38ad70352 Changes circle-ci base image to Ubuntu Sergi Delgado Segura 2020-01-20 12:05:45 +01:00
  • 2c8c8c7323 Updates circle-ci with basic e2e infraestructure Sergi Delgado Segura 2020-01-20 10:48:11 +01:00
  • f91475c61b Updates life cycle tests and adds malformed tx tests Sergi Delgado Segura 2020-01-17 17:51:09 +01:00
  • 404952415d Creates conftest for e2e tests Sergi Delgado Segura 2020-01-17 17:51:01 +01:00
  • 0f887feb4d Deletes appointment from Watcher's db if a tracker cannot be added Sergi Delgado Segura 2020-01-17 17:47:45 +01:00
  • dad70eb780 Moves update_delete_locator_map functionality to its own method. Sergi Delgado Segura 2020-01-17 17:47:05 +01:00
  • 07c9b7d19e Updates error message for RPC_VERIFY_REJECTED rpc error. Sergi Delgado Segura 2020-01-17 17:46:14 +01:00
  • b32a867283 Moves db_manager instantiation before checking the connection with bitcoin Sergi Delgado Segura 2020-01-17 15:32:30 +01:00
  • 15b31105e1 Adds basic E2E testing Sergi Delgado Segura 2020-01-16 17:09:26 +01:00
  • db330ce353 Updates cli unit tests to match the bug fixes Sergi Delgado Segura 2020-01-16 17:09:13 +01:00
  • 90e1245a84 Fixes some bugs based on E2E testing Sergi Delgado Segura 2020-01-16 17:08:44 +01:00
  • d3846c1fe6 Merge pull request #84 from sr-gi/update-bitcoind-mock Sergi Delgado Segura 2020-01-15 16:45:21 +01:00
  • 5e4e773984 Adds cli requirements to circle-ci Sergi Delgado Segura 2020-01-15 16:38:56 +01:00
  • 3dc1fbcb86 Specifies minimum version for bitcoind_mock Sergi Delgado Segura 2020-01-15 16:33:04 +01:00
  • ce2cc81d8b Updates circleci Sergi Delgado Segura 2020-01-15 16:05:55 +01:00
  • 0ddace6256 Updates requirements and adds dev requirements Sergi Delgado Segura 2020-01-15 15:48:30 +01:00
  • fb8c6c80d3 Updates tests to work with new version of bitcoind_mock Sergi Delgado Segura 2020-01-15 15:43:00 +01:00
  • 3d4ed28c8b Fixes wrong log messase Sergi Delgado Segura 2020-01-15 15:41:57 +01:00
  • b0bcffd825 Update CONTRIBUTING.md Sergi Delgado Segura 2020-01-15 12:52:49 +01:00
  • fa13fb7611 Merge pull request #83 from sr-gi/64-data-to-disk Sergi Delgado Segura 2020-01-15 12:46:50 +01:00
  • a49f86dd88 Merge branch 'master' into 64-data-to-disk Sergi Delgado Segura 2020-01-15 12:44:29 +01:00
  • 72336f3309 Merge pull request #82 from sr-gi/chainmonitor Sergi Delgado Segura 2020-01-15 11:40:43 +01:00
  • 42a957f555 Merge branch 'master' into chainmonitor Sergi Delgado Segura 2020-01-15 11:38:32 +01:00
  • 0519ea9ca8 Merge pull request #79 from orbitalturtle/isolate-config Sergi Delgado Segura 2020-01-15 10:25:51 +01:00
  • 6bf2cb5379 Merge branch 'master' into isolate-config Sergi Delgado Segura 2020-01-15 10:15:48 +01:00
  • 36eaa93dc4 Merge pull request #65 from orbitalturtle/pisa-cli-modularity Sergi Delgado Segura 2020-01-15 10:14:49 +01:00
  • bd41c8b862 Add unit tests for remaining cli functions Turtle 2019-12-27 01:29:34 -05:00
  • 3775b78500 Fix filename typo in cli README Turtle 2019-12-26 21:54:55 -05:00
  • 39208e4b14 Test new functions split off in pisa_cli Turtle 2019-12-23 16:19:01 -05:00
  • 40d7ca1912 Refactor add_appointment cli code Turtle 2019-11-30 00:42:36 -05:00
  • 1188ddda17 Add load_config function Turtle 2020-01-06 01:08:23 -05:00
  • e22bd89534 Test load_config functions Turtle 2020-01-06 01:07:22 -05:00
  • ae772bf91b Adds missing tests Sergi Delgado Segura 2020-01-13 15:48:52 +01:00
  • eb71ab8fc4 Adds missing args on docs and adds polling_delta parm to monitor_chain Sergi Delgado Segura 2020-01-13 15:42:27 +01:00
  • 1a26d7d6a3 Fixes typos based on @orbitalturtle comments Sergi Delgado Segura 2020-01-13 15:31:54 +01:00
  • c22bf220f0 Move config options used by inspector to the constructor Turtle 2019-12-23 22:40:33 -05:00
  • 7aa74d5953 Move config options used by watcher and responder to the constructor Turtle 2019-12-23 21:48:45 -05:00
  • db46444348 Adapts the tests to work with data in db instead of memory Sergi Delgado Segura 2020-01-09 18:20:00 +01:00
  • 5196f5df29 Removes most appointment data from memory Sergi Delgado Segura 2020-01-09 18:18:26 +01:00
  • 34636ab8e0 Unit tests for the db_manager triggered_flag functions Sergi Delgado Segura 2020-01-09 18:18:12 +01:00
  • d9cccfb26a Refactors the API to used the new triggered functions Sergi Delgado Segura 2020-01-09 18:15:43 +01:00
  • f6af67be87 Refactors db_manager to have a new entry type for the triggered appointmnets. Adds methods to create, load a and remove this new entries Sergi Delgado Segura 2020-01-09 18:14:19 +01:00
  • 15f9a9efe1 Removes triggered from to_json Sergi Delgado Segura 2020-01-09 18:13:24 +01:00
  • 49657ccbfc Merge pull request #81 from sr-gi/chainmaester Sergi Delgado Segura 2020-01-08 09:55:39 +01:00
  • dfc90cd930 Sets ChainMonitor terminate on shutdown and removes unused imports Sergi Delgado Segura 2020-01-07 16:31:17 +01:00
  • 40e656dcd3 ChainMonitor unit tests Sergi Delgado Segura 2020-01-07 16:09:49 +01:00
  • 31b4c2e993 Bug fix and moves update condition to update_state Sergi Delgado Segura 2020-01-07 16:08:43 +01:00
  • f10c3c46eb Updates tests to use ChainMonitor as global fixture Sergi Delgado Segura 2020-01-07 16:08:10 +01:00
  • 9bb69d1f5a Uses conf parameters instead of hardcoded values for the ChainMonitor and includes docstrings Sergi Delgado Segura 2020-01-06 13:32:35 +01:00
  • b2272aa4ea Adds ChainMonitor config parameters Sergi Delgado Segura 2020-01-06 13:32:25 +01:00
  • e5514cefce Updates old docs/comments regarding zmq Sergi Delgado Segura 2020-01-06 12:27:02 +01:00
  • 069e15fdba Updates current tests to work with chain_monitor instead of zmq_sub Sergi Delgado Segura 2020-01-03 13:36:52 +01:00
  • 3889d30e31 Minor refactor Sergi Delgado Segura 2020-01-03 13:35:52 +01:00
  • c594018dce Bug fix: Properly initializes Responder Sergi Delgado Segura 2020-01-03 11:37:26 +01:00
  • 8fab59975f Adds basic ChainMonitor to the system Sergi Delgado Segura 2020-01-02 16:15:27 +01:00
  • 747f4bb888 Simplifies get_missed_blocks Sergi Delgado Segura 2020-01-02 12:05:07 +01:00
  • a5e9f1b874 Removes unused imports Sergi Delgado Segura 2020-01-02 11:23:34 +01:00
  • 3ff10ea1bf Makes all BLockProcessor methods static Sergi Delgado Segura 2020-01-02 11:21:01 +01:00
  • 5ce5936fc0 Fixes bootstrap from backed up data Sergi Delgado Segura 2019-12-27 12:22:07 +01:00
  • 57d5aa4940 Adds missing block processor tests Sergi Delgado Segura 2019-12-27 10:55:27 +01:00
  • 23078f6c6c Updates circleci with bitcoind_mock Sergi Delgado Segura 2019-12-23 06:51:41 +01:00
  • ea681850a8 Adds some ChainMaester functionallity to the BlockProcessor Sergi Delgado Segura 2019-12-23 06:45:24 +01:00
  • 2b0945f1ba Updates tests with external bitcoind mock Sergi Delgado Segura 2019-12-23 06:43:54 +01:00
  • ef92e2bf6f Removes bitcoind_mock from the codebase Sergi Delgado Segura 2019-12-22 10:29:28 +01:00
  • 1210061fb3 Merge pull request #78 from sr-gi/verbose-test Sergi Delgado Segura 2019-12-17 17:24:33 +01:00
  • fffcb39124 Enables stdout for unit tests Sergi Delgado Segura 2019-12-17 17:22:40 +01:00
  • d4e7e999e1 Sets sim verbose to False for unit tests Sergi Delgado Segura 2019-12-17 17:21:48 +01:00
  • b82065120c Adds verbose flag to show/hide block generation on stdout Sergi Delgado Segura 2019-12-17 17:21:21 +01:00
  • 31fac8de7e Merge pull request #76 from sr-gi/14-passing-params-api Sergi Delgado Segura 2019-12-17 17:10:03 +01:00