Commit Graph

4564 Commits

Author SHA1 Message Date
Jude Nelson
5a7ae8a228 fix bugs in the CLI interface discovered by @larry 2017-02-07 15:45:35 -05:00
Jude Nelson
4f8e14a841 retry getting the consensus hash with exponential backoff 2017-02-07 15:45:23 -05:00
Jude Nelson
384cd6dcf9 separate out account-making information from account-generating logic 2017-02-07 15:38:36 -05:00
Jude Nelson
bd0e41f78d clarify comments 2017-02-07 00:22:55 -05:00
Jude Nelson
a7df44cc4f test /node/wallet/public endpoint 2017-02-07 00:22:38 -05:00
Jude Nelson
760fe002f6 add /node/wallet/public endpoint 2017-02-07 00:22:15 -05:00
Jude Nelson
ebd0751b9f fix bugs found intesting 2017-02-06 19:41:58 -05:00
Jude Nelson
ae1823e612 initialize and migrate wallet and storage 2017-02-06 19:41:46 -05:00
Jude Nelson
37ee80fab6 extend RESTful name registration tests to check the /blockchains/bitcoin/pending endpoint 2017-02-06 19:41:13 -05:00
Jude Nelson
1ee61c6dd3 make sure the public key is a string 2017-02-06 19:40:53 -05:00
Jude Nelson
bcc421c06e add handler for GET /blockchains/bitcoin/pending 2017-02-06 19:40:39 -05:00
Jude Nelson
dda481dfe4 explicit config_path 2017-02-06 19:40:25 -05:00
Jude Nelson
25fca97eed be more rigorous about authenticating the rpc token 2017-02-06 19:40:10 -05:00
Jude Nelson
383e3728d8 fix up get_registrar_info; formatting 2017-02-06 19:39:52 -05:00
Jude Nelson
8b85d63660 require fastecdsa 2017-02-06 15:18:42 -05:00
Jude Nelson
b70c044c09 use later versions 2017-02-06 15:18:31 -05:00
Jude Nelson
d667e3301c version bump 2017-02-06 15:18:22 -05:00
Jude Nelson
9e06ec4d3d always take a config path as an argument. WIP prepare for multi-device tests 2017-02-06 15:18:05 -05:00
Jude Nelson
ab504cb8cb proper search through the API log for errors 2017-02-06 15:17:40 -05:00
Jude Nelson
f4f2f50452 update put_immutable test with no data key to use the latest CLI API 2017-02-06 15:17:21 -05:00
Jude Nelson
3af6a07d7b update nonstandard zonefile tests to use the latest CLI API 2017-02-06 15:17:06 -05:00
Jude Nelson
9be7ce660e port datakey migration test to use newer CLI test API 2017-02-06 15:16:39 -05:00
Jude Nelson
56293867a9 generate subordinate private keys, fund them, and use them to import multiple names in the same block. 2017-02-06 15:16:12 -05:00
Jude Nelson
bc564e14e6 failure to replicate a zonefile will not always have an error message 2017-02-06 15:15:51 -05:00
Jude Nelson
b0d891ee52 fix typo 2017-02-06 15:15:39 -05:00
Jude Nelson
a58418646a need sys.exit 2017-02-06 15:15:28 -05:00
Jude Nelson
9d8cfce7ef it's okay if we don't have a user zone file when searching through it; just return None in these cases. 2017-02-06 15:15:10 -05:00
Jude Nelson
92df065112 small bugfixes 2017-02-06 15:14:59 -05:00
Jude Nelson
983f40ebfe use is_singlesig_hex() for storage keys 2017-02-06 15:14:39 -05:00
Jude Nelson
bea2eac5a2 break apart subsidization logic so we can query the necessary subsidization information without touching the transaction. Will be used to generate externally-signed transactions 2017-02-06 15:14:08 -05:00
Jude Nelson
ee2dab42e2 a single-signature private key bundle can be WIF-encoded or hex-encoded 2017-02-06 15:13:51 -05:00
Jude Nelson
344af97e17 whitespacing 2017-02-06 15:13:43 -05:00
Jude Nelson
10683f6c53 is_singlesig_hex(): is a key a single private key, and hex-encoded 2017-02-06 15:13:27 -05:00
Jude Nelson
7b17a5cdcb rework a few things about inodes and inode data in a data store:
* make sure we check all inode headers before getting an inode, so we know the latest version
* have get_mutable, put_mutable, and delete_mutable update data consistency information across all write-devices
* have get_mutable remember which driver(s) succeeded, so subsequent calls on e.g. inode resolution don't needlessly query stale data
* remember data consistency information by device ID, as well as data ID.
2017-02-06 15:11:30 -05:00
Jude Nelson
bad676e0e2 pass through interactive 2017-02-06 15:05:26 -05:00
Jude Nelson
3682071f2a accept all config defaults if -y is passed and there is no config file 2017-02-06 15:05:00 -05:00
Jude Nelson
d51042066e specifically verify that the data private key is hex-encoded 2017-02-06 15:04:44 -05:00
Jude Nelson
80782f09dd WIP: refactoring and cleaning up transaction-creation logic in preparation for outsourcing tx-signing to external programs via the REST interface 2017-02-06 15:04:17 -05:00
Jude Nelson
ae70608d27 blockstack_server storage driver will *not* replicate zonefiles, since blockstack servers already do so via Atlas protocol 2017-02-06 15:03:51 -05:00
Jude Nelson
dcc5bb4c18 methods for getting, adding, listing, and removing device IDs for multi-device data stores 2017-02-06 15:03:27 -05:00
Jude Nelson
1d49201f6e make sure mutable data in the storage gateway doesn't collide (do so by prefixing by blockchain ID) 2017-02-06 15:01:57 -05:00
Jude Nelson
c4e618c8cf fix counting zonefiles as we compress them 2017-02-06 15:01:25 -05:00
Jude Nelson
bdd0484f10 if the zonefile has already hit our cache, we can mark it as present in the atlas db vector 2017-02-06 15:00:56 -05:00
Jude Nelson
2229f00eb6 check that we actually enqueue the zonefile 2017-02-06 15:00:35 -05:00
Jude Nelson
659b243f6e WIP: test for upgrading storage 2017-01-30 01:48:37 -05:00
Jude Nelson
08b491fd01 test put_mutable with zone files without data keys 2017-01-30 01:48:21 -05:00
Jude Nelson
dd5c79f72a verify that migrating a profile to a zone file without a data key still allows us to use mutable data 2017-01-30 01:47:59 -05:00
Jude Nelson
419c2b363e test blockstack URLs when the zone file does not have a data key but we have a single-sig owner key 2017-01-30 01:47:41 -05:00
Jude Nelson
8d04d626df WIP: fix integration tests to initialize the wallet(s) at the right times (now that we may have to migrate them); add code to upgrade storage where appropriate; un-deprecate no-data-key tests 2017-01-30 01:46:49 -05:00
Jude Nelson
980cc45838 clean up symbols 2017-01-30 01:46:25 -05:00