Commit Graph

5113 Commits

Author SHA1 Message Date
Jude Nelson
69727df7fe test name imports (including bad input) via CLI 2017-04-13 10:58:51 -04:00
Jude Nelson
c2d336a43d rename test to be consistent with our test naming scheme 2017-04-13 10:58:18 -04:00
Jude Nelson
1698e04537 Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-04-12 17:16:59 -04:00
Jude Nelson
928a509520 test CLI namespace reveal for bad inputs 2017-04-12 17:16:46 -04:00
Jude Nelson
a50392a23f add CLI test for namespace preorder, namespace reveal, and namespace ready 2017-04-12 17:16:32 -04:00
Jude Nelson
30af1eb633 add CLI namespace preorder + namespace reveal test 2017-04-12 17:16:20 -04:00
Jude Nelson
493b88b77f add namespace_preorder CLI test 2017-04-12 17:16:10 -04:00
Jude Nelson
a6c07f0974 add CLI wrappers for the CLI commands for namespace_preorder, namespace_reveal, and namespace_ready 2017-04-12 17:15:49 -04:00
Jude Nelson
5cddfe5aa4 don't forget return True 2017-04-12 17:15:39 -04:00
Jude Nelson
c67cddbb4d blockstack-storage is going to be separate from blockstack.js 2017-04-12 17:15:25 -04:00
Jude Nelson
cd110dd59c remove namespace API endpoints (these should only be accessed through the CLI) 2017-04-12 17:15:08 -04:00
Jude Nelson
c2509b9568 add is_namespace_revealed() and is_namespace_ready(); extend get_name_blockchain_record() to optionally NOT return expired names 2017-04-12 17:14:40 -04:00
Jude Nelson
7097850b1e document why we add +1 or +2 to the number of inputs in the fee estimation (answer: to account for extra inputs when the transaction gets subsidized) 2017-04-12 17:13:52 -04:00
Jude Nelson
fde745a0f7 implement get_fees(), clean up change amount calculation 2017-04-12 17:13:23 -04:00
Jude Nelson
b4b89615cb fill in get_fees(), clean up change address calculation 2017-04-12 17:13:05 -04:00
Jude Nelson
69bc93c29a fill in get_fees() 2017-04-12 17:12:55 -04:00
Jude Nelson
a49dfba9b6 fill in get_fees() 2017-04-12 17:12:45 -04:00
Jude Nelson
5b0d506a2a include estimated sizes for namespace_preorder, namespace_reveal, namespace_ready, and name_import transactions 2017-04-12 17:12:24 -04:00
Jude Nelson
b7bdb1aa97 expand the safety checker to include namespace_preorder, namespace_reveal, namespace_ready, and name_import. Also, expand the fee calculations to include fee estimates for these operations. 2017-04-12 17:11:54 -04:00
Jude Nelson
ef07e594dd have do_namespace_preorder, do_namespace_reveal, and do_namespace_ready use the safety module to verify safety properties prior to executing the transaction. Also, extend the fee estimators to include dust fees. 2017-04-12 17:11:07 -04:00
Jude Nelson
a106aeeff8 implement CLI commands for namespace_preorder, namespace_reveal, and namespace_ready. Include interactive wizards for configuring namespaces and acknowledging fees at each step. 2017-04-12 17:10:27 -04:00
Jude Nelson
62965d4f00 remove dead code 2017-04-12 17:10:15 -04:00
Jude Nelson
c66b44ac7e when building an import keychain, optionally take a directory in which to store it (so clients can do this) 2017-04-12 17:09:53 -04:00
Jude Nelson
fec388aadc return an integer for expired block 2017-04-12 17:09:40 -04:00
Aaron Blankstein
d9404b5693 quick typo fixes in rpc and proxy 2017-04-12 14:14:16 -04:00
Jude Nelson
6fed4a3f48 Merge pull request #381 from kantai/rc-0.14.2-aaron
Wallet initialization and secrets passing fixes
2017-04-10 18:09:50 -05:00
Jude Nelson
0a6436e40f make our Insight API endpoint the default UTXO provider 2017-04-10 11:51:16 -04:00
Jude Nelson
7edeb76bff update config and symbols for UTXO clients 2017-04-10 11:49:29 -04:00
Jude Nelson
a4f64bd1bf renamed old blockstack_utxo to blockstack_core as UTXO endpoint 2017-04-10 11:49:13 -04:00
Jude Nelson
580b5cbb11 Renamed blockstack_utxo to refer to the Insight API endpoint we'll be running; consolidated code for the explorer UTXO endpoint and the dedicated UTXO endpoint we maintain (both use insight API) 2017-04-10 11:48:44 -04:00
Jude Nelson
311687d322 consolidated insight API code 2017-04-10 11:48:32 -04:00
Aaron Blankstein
e53ba6d790 fixes to get the new secrets passing through stdin to work in my environment 2017-04-07 12:24:49 -04:00
Aaron Blankstein
b832720277 added default to ecdsa_private_key which fixes wallet initialization, and set privkey format to hex as expected by schema 2017-04-07 12:03:00 -04:00
Jude Nelson
5eb0b227f7 Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-04-06 18:03:33 -04:00
Jude Nelson
a4503cecad verify_profile should work with a p2pkh owner address as well as the data public key (thanks @rawkode.id!) 2017-04-06 18:02:51 -04:00
Jude Nelson
6206aaf681 add OS X blockstack .spec file for pyinstaller 2017-04-05 18:37:31 -04:00
Jude Nelson
e0dc00cddd only encode secrets if we need to 2017-04-05 17:49:07 -04:00
Jude Nelson
59803e4ff7 if we can't parse secrets, then use an empty dict 2017-04-05 17:45:49 -04:00
Jude Nelson
45369420e1 Add endpoints for getting the Core node logfile, and for appending to the logfile 2017-04-05 16:25:53 -04:00
Jude Nelson
425b982225 log system information on API startup 2017-04-05 15:45:38 -04:00
Jude Nelson
5707298c73 sync with new immutable data api 2017-04-05 15:08:13 -04:00
Jude Nelson
f91a67f28b sync with new storage API for immutable data 2017-04-05 15:08:02 -04:00
Jude Nelson
87532e67a1 store and load secrets across execv() without using envars 2017-04-05 15:07:44 -04:00
Jude Nelson
b13075d275 new secrets API, for passing secrets to child processes across execv(2) without using environment variables. The jist is pretty simple: write them to an unlinked file and have the execv'ed process read them back. Also, take care that no other process has the unlinked file open (e.g. via lsof), in order to ensure that not even another one of the user's processes is trying to race blockstack to get the secrets. 2017-04-05 15:06:40 -04:00
Jude Nelson
7d320668e7 get secrets with new secrets API, not envars 2017-04-05 15:06:25 -04:00
Jude Nelson
01094b56e9 pass secrets to API runner with new secrets API 2017-04-05 15:06:13 -04:00
Jude Nelson
ef525e27af pass file path to put_immutable; use new get_secret() API 2017-04-05 15:05:57 -04:00
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