Commit Graph

85 Commits

Author SHA1 Message Date
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
Sergi Delgado Segura
9588951182 Fixes typo and link 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
32bece41b2 Improves documentation 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
d1c5b3dd6a Moves cli conf options to __init__.py so it can be run standalone 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
88ae640417 Add dependencies 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
718fb391a8 Adds example appointment file and impreves readme 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
1b2581be65 Adds README to cli 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
00a2137d5b Improves pisa-cli
Big refactor of the cli, includes proper help messages and get_appointment command. Also creates a separate folder for the cli (apps can be separated by folders).
2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
2d77919af4 Updates get_appointment status messages and small changes 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
74ecf0ab54 Add temporary monitoring tools for pisa
Add endpoint and logic so appointment can be queried to pisa. A better implementation based on persistent storage (i.e. DB) should replace it in the future
2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
44d1647b06 Adds JSONRPC exceptions to can_connect 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
b29d417a62 Improves cli commands and usage message 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
c1b2dee1e1 Changes default port
Current default port is 9814, which represents the white chess tower in ASCII
2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
1028a94f64 Updates inspector checks related to dispute_delta.
dispute_delta and start_time/end_time are two different kind of time constrains, they were mixed up.
2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
5a1d7911f3 Adds support for command line api host and port.
Defaults to __init__ parameters if missing
2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
0c1ce056eb Adds sanity checks to make sure pisad and bitcoind are configured in the same way 2019-08-09 15:00:02 +01:00
Sergi Delgado Segura
13f21d64e8 fixes log record + todos 2019-08-09 15:00:02 +01:00