Commit Graph

5066 Commits

Author SHA1 Message Date
Jude Nelson
f0f2b82d5d clarify variable name--we don't expect json 2017-04-05 15:05:42 -04:00
Jude Nelson
e40c510693 send raw data text; don't expect json 2017-04-05 15:05:29 -04:00
Jude Nelson
45962065f5 log API server version when starting (WIP: log more things) 2017-04-05 11:24:31 -04:00
Jude Nelson
fefae026f3 add is_zonefile_data_current(), which takes a raw zone file (unlike is_zonefile_current()) 2017-04-05 11:24:14 -04:00
Jude Nelson
9097fdecf3 expose get_utxos(), broadcast_tx() 2017-04-05 11:24:04 -04:00
Jude Nelson
62ffdd5a23 add changed-fields support for migrating the config file (e.g. always migrate the version number between releases) 2017-04-05 11:23:40 -04:00
Jude Nelson
61fbd0576d expose get_mutable_data_version() and put_mutable_data_version() 2017-04-05 11:23:27 -04:00
Jude Nelson
b96af3df08 refactor zone file sanity-checking logic. Also, only take a path to a new zone file on the CLI (#375) 2017-04-05 11:22:43 -04:00
Jude Nelson
daacde86f7 for doing zone file updates and loading data for put_mutable, only take a path on the CLI 2017-04-05 11:22:13 -04:00
Jude Nelson
468cf1fd5f print test finished before loading db 2017-04-05 11:21:50 -04:00
Jude Nelson
9a7cba4497 bugfix: don't reencode pubkeys 2017-04-03 14:52:32 -04:00
Jude Nelson
0cd0a8ad3c update get_started.sh with the latest test branch 2017-04-03 14:50:54 -04:00
Jude Nelson
d6b96247ac update get_started.sh script 2017-04-03 14:50:19 -04:00
Jude Nelson
3ec52b6899 fix bug in checking API version 2017-03-31 18:09:11 -04:00
Jude Nelson
1c763224c5 Have the API server report its version on ping(), and make the API client check the version before doing anything (and aborting if the client version is different) 2017-03-30 19:55:51 -04:00
Jude Nelson
46e84402d6 use new ecdsa_private_key() wrapper to enforce our compression semantics 2017-03-30 18:26:45 -04:00
Jude Nelson
befde95a59 for now, unless the private key explicitly signals '01' for compressed, assume uncompressed 2017-03-30 18:26:29 -04:00
Jude Nelson
44dcb38580 require virtualchain 0.14.2 2017-03-30 17:32:58 -04:00
Jude Nelson
a1b6d2912c more robust for failed connections 2017-03-30 17:13:55 -04:00
Jude Nelson
34be06c4c8 log connection info 2017-03-30 17:13:50 -04:00
Jude Nelson
0314db1207 time out after 30 seconds if we can't connect to bitcoind 2017-03-30 16:29:56 -04:00
Jude Nelson
e9697de248 remove gnupg 2017-03-30 16:21:46 -04:00
Jude Nelson
d40032d0aa clean up deps 2017-03-30 16:15:42 -04:00
Jude Nelson
f777a890ac get off of virtualchain.BitcoinPublicKey wherever possible in favor of keylib 2017-03-30 14:59:14 -04:00
Jude Nelson
83871ba80b don't log a synthetic error message 2017-03-30 14:23:33 -04:00
Jude Nelson
1d49fe8cf2 don't try to push zonefiles to node.blockstack.org if we're only testing 2017-03-30 14:23:17 -04:00
Jude Nelson
51a2d281f1 rely on blockstack_client's hash functions 2017-03-30 14:06:55 -04:00
Jude Nelson
7a2e292885 move some of pybitcoin's hashing functionality into scripts 2017-03-30 14:06:39 -04:00
Jude Nelson
cf8af63c80 move off of pybitcoin for calculating change and making data outputs 2017-03-30 14:06:16 -04:00
Jude Nelson
adeda504b7 remove pybitcoin import 2017-03-30 14:06:05 -04:00
Jude Nelson
127b05b282 get off of pybitcoin; switch to virtualchain API 2017-03-30 14:05:54 -04:00
Jude Nelson
233bcafadf switch to virtualchain over pybitcoin 2017-03-30 14:05:43 -04:00
Jude Nelson
da309ad0bd add integration test to test datastore clients in blockstack.js 2017-03-30 12:00:09 -04:00
Jude Nelson
214faf40e2 add integration test to test blockstack.js authentication with Core 2017-03-30 11:59:50 -04:00
Jude Nelson
fca298d815 add methods to set up a node.js package for testing 2017-03-30 11:59:37 -04:00
Jude Nelson
c6046a07f6 need b40 2017-03-30 11:59:25 -04:00
Jude Nelson
f63510ea87 use consistent API password 2017-03-30 11:59:16 -04:00
Jude Nelson
1959bb1954 add a test script and test case that, when run, will set up a test environment suitable for testing portal 2017-03-29 01:04:18 -04:00
Jude Nelson
721cf40cb6 do not use virtualchain.analyze_private_key(), since it depends on pybitcoin.get_unspents() 2017-03-29 01:04:01 -04:00
Jude Nelson
8d5697e648 for API calls that take an address, re-encode them if need be to match the running system's version byte (so we can use the test framework alongside portal) 2017-03-29 01:03:38 -04:00
Jude Nelson
2169c376fe don't prompt for email address in non-interactive mode 2017-03-29 01:03:25 -04:00
Jude Nelson
82592b856d don't setup interactively if we request it 2017-03-29 01:03:15 -04:00
Jude Nelson
fe36d68d49 optionally don't start the API server when setting the wallet 2017-03-29 01:02:18 -04:00
Jude Nelson
ced4d4538c graceful shutdown on SIGINT 2017-03-29 01:02:07 -04:00
Jude Nelson
4f65195b6c code cleanup and refactoring---clarify why and how we wrap CLI methods to make them accessible to the API server 2017-03-28 13:24:16 -04:00
Jude Nelson
cec23a8c72 get version from blockstack_client 2017-03-28 11:13:14 -04:00
Jude Nelson
63da85d71e separate wallet-inspection logic from wallet-decryption logic 2017-03-28 11:12:59 -04:00
Jude Nelson
8124d127ea add setup_config() method 2017-03-28 11:12:49 -04:00
Jude Nelson
a8ed195723 use setup_config(); inspect wallet to force user to migrate legacy wallets over 2017-03-28 11:12:31 -04:00
Jude Nelson
998a51e870 use setup_config() in blockstack setup 2017-03-28 11:12:19 -04:00