Sergi Delgado Segura
beac88a2c5
Refactors test structure
2019-10-04 17:29:13 +01:00
Sergi Delgado Segura
1e18630ce2
Adds Cleaner tests. Fixes Cleaner, Watcher and Responder
...
There is no need to return the dictionaries modified by the client since they are "passed-by-reference" in Python.
2019-10-04 17:23:45 +01:00
Sergi Delgado Segura
37c24dfb37
Merge branch 'cleanup' into testing
2019-10-04 15:38:28 +01:00
Sergi Delgado Segura
4704462502
Increases responder modularity
...
The responder had way too complex functions. Separate them into smaller / more specific ones to increse modularity and code reuse.
2019-10-04 13:52:51 +01:00
Sergi Delgado Segura
3ed9ccd466
Adds additional functionality that will be needed when deploying data persistence
2019-10-04 13:50:43 +01:00
Sergi Delgado Segura
9a37b211a0
Adds Carrier to take care of sending/getting transactions
2019-10-04 13:49:48 +01:00
Sergi Delgado Segura
3e0cca14d7
Clean up + higher modular design
2019-10-03 11:49:49 +01:00
Sergi Delgado Segura
5ba6fcb9ef
Improves modularity of the code
...
Adds cleaner and block processor to increase the modularity and reuse of the code
2019-10-03 11:49:24 +01:00
Sergi Delgado Segura
e9832e4408
More clean up
2019-10-03 11:47:07 +01:00
Sergi Delgado Segura
93e23e769f
Code clean up
...
Deletes debug/logging pair. Defines logging and bitcoin_cli as system-wide variables
2019-10-02 17:03:43 +01:00
Sergi Delgado Segura
9bb3b38b3f
Clears old commented code
2019-08-27 11:21:08 +02:00
Sergi Delgado Segura
8bd7ff8fcc
Merge pull request #29 from sr-gi/25-change-appointment-structure
...
Improves internal data structures
2019-08-27 10:43:45 +02:00
Sergi Delgado Segura
1c9e6d474d
Improves tests
2019-08-26 16:28:49 +02:00
Sergi Delgado Segura
ea037da530
small fixes
2019-08-26 16:28:05 +02:00
Sergi Delgado Segura
ebac9b003e
Updates api to match the net internal data structures
2019-08-26 16:26:53 +02:00
Sergi Delgado Segura
ae2cf26195
Improves internal data structures and reorgs the code for readability
2019-08-26 16:26:29 +02:00
Sergi Delgado Segura
fbedc6d635
Merge branch '25-change-appointment-structure' of github.com:sr-gi/pisa_btc into 25-change-appointment-structure
2019-08-20 11:54:18 +01:00
Sergi Delgado Segura
400e524c36
Changes appointment structure
...
Updates the former appointment structure from `dicts` containing `lists` accessed by `index` to `dicts` containing `dicts` identified by `uuid4`. Needs testing.
2019-08-20 11:54:04 +01:00
Sergi Delgado Segura
0f214a30c9
Merge pull request #28 from sr-gi/27-zmq-bitcoinrpc-simulators
...
Created a tinny bitcoind simulator with zmq pub capabilities
2019-08-20 11:50:39 +01:00
Sergi Delgado Segura
157456f164
Improves simulator and adds basic appointment test
...
The getblock rpc call was missing the block and previousblock hashes.
2019-08-19 18:18:10 +01:00
Sergi Delgado Segura
51bafa323a
Improves the simulator and adds some tests
...
The simulator now return the proper error messages when incorrect data is pased on RPC calls. Functionality for forks is missing.
2019-08-16 17:01:16 +01:00
Sergi Delgado Segura
3ac2d446a3
Defines a better bitcoind_simulator. Basic functionallity is already implemented
2019-08-15 19:13:55 +01:00
Sergi Delgado Segura
314e271754
Adds basic functionality for both zmq_pub and bitcoin_rpc simulators
2019-08-14 13:51:48 +01:00
Sergi Delgado Segura
3dfa7e2978
Changes appointment structure
...
Updates the former appointment structure from `dicts` containing `lists` accessed by `index` to `dicts` containing `dicts` identified by `uuid4`. Needs testing.
2019-08-13 17:40:45 +01:00
Sergi Delgado Segura
4e07344652
Updates gitignore
2019-08-13 14:50:09 +01:00
Sergi Delgado Segura
d34ccc46a1
Adds/Updates further comments and fixes small issues
2019-08-13 12:03:36 +01:00
Sergi Delgado Segura
a4350f0c35
Creates a speciall error code for unexpected error
...
The rationale behind this is being able to identify exceptions that we may not be taking into account
2019-08-12 14:05:04 +01:00
Sergi Delgado Segura
69e361f46e
Updates response code when appointment is valid but rejected
2019-08-12 14:03:58 +01:00
Sergi Delgado Segura
0978d0bf9e
Adds a bunch of comments related to the open issues. Clear old comments.
2019-08-12 14:02:41 +01:00
Sergi Delgado Segura
1cde4a2a11
refactors project structure
2019-08-12 13:24:04 +01:00
Sergi Delgado Segura
1019b207ff
Add comments for multiple issues
2019-08-09 17:28:58 +01:00
Sergi Delgado Segura
d5899f8909
Updates gitignore
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
b81bfdbb1d
Updates gitignore
2019-08-09 15:00:03 +01:00
Chris Buckland
85299e8641
Fixed typo
2019-08-09 15:00:03 +01:00
Chris Buckland
b16fd1f68e
Had accidentally removed get appointment heading
2019-08-09 15:00:03 +01:00
Chris Buckland
f5979afc5f
Increased some of the heading sizes
2019-08-09 15:00:03 +01:00
Chris Buckland
da5e0d37af
Reverted heading formats
2019-08-09 15:00:03 +01:00
Chris Buckland
ec07434863
Moved examples to their own section
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
a82c74b7c6
Minor changes
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
421c1b4973
Updates README and fixes typos
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
da806f5fbf
Adds HTTPException to reasons why pisad cannot connect to bitcoind
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
bed25c03e3
Adds stdout display when creating dummy appointments
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
81ebc161c9
Fixs typos
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
9cf0c9786d
Adds get_block_count endpoint and generate_dummy_block. Updates README accordingly
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
d24368e505
Modifies server default to btc.pisa.watch
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
86aa517059
Improves documentation
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
00d077e475
standardizes prints/log prints and fixes log file being created even if debug was not set
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
5fe9fbf096
Pretty-JSON the get_appointment call
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
75545566fe
Changes the default pisa-server IP address to the elastic aws ip address
2019-08-09 15:00:03 +01:00
Sergi Delgado Segura
297d94bfb5
Adds missing requirement and update pip command
2019-08-09 15:00:03 +01:00