Commit Graph

6 Commits

Author SHA1 Message Date
Sergi Delgado Segura
1de226374d Minot simulator updates 2019-10-09 17:34:44 +01:00
Sergi Delgado Segura
c67e41d185 Includes getbestblockhash so it can simulate db loads 2019-10-09 15:58:54 +01:00
Sergi Delgado Segura
e81ccd39a1 Adds API unit tests and modifies bitcoin_sim to be fixture compatible
- Adds unit tests for API
- Updates API to let BlockProcessor deal with block block related JSON-RPC
- Fixes BlockProcessor get_potential_matches return
- Makes bitcoin_sim runnable via function (instead of a main runnable script) to work with pytests fixture
- <3 Fixture
2019-10-08 18:55:27 +01:00
Sergi Delgado Segura
067efcca73 Clean unused imports and more cleanup 2019-10-07 11:58:28 +01:00
Sergi Delgado Segura
5ae210d893 Updates os.urandom to python3
All string generated with urandom(x) were using binascii + os.urandom + encode. In python3 os.urandom has a hex method.
2019-10-07 11:39:10 +01:00
Sergi Delgado Segura
beac88a2c5 Refactors test structure 2019-10-04 17:29:13 +01:00