Commit Graph

835 Commits

Author SHA1 Message Date
Jude Nelson
ba4aab3735 be a bit more lienient about gpg output formatting 2018-10-21 02:25:42 -04:00
Jude Nelson
9cffdb26bb add code to audit the genesis block 2018-10-21 02:18:35 -04:00
Jude Nelson
98396cf469 the genesis block will encode all stage it went through, the signing keys, and the final stage (as the actual "genesis block" to be loaded into the db) 2018-10-21 02:16:35 -04:00
Jude Nelson
75b8d60d16 update genesis block schema 2018-10-21 02:16:10 -04:00
Jude Nelson
756e71529b update genesis block doc 2018-10-21 02:16:01 -04:00
Jude Nelson
8ba60ebac6 add code to do one-time instantiation of the genesis block, and all its stages 2018-10-21 02:12:29 -04:00
Jude Nelson
caaee7ce8d restore feature/token-v1 virtualchain_hooks 2018-10-18 16:04:08 -04:00
Jude Nelson
d9c4628e96 restore nameset __init__.py from feature/token-v1 2018-10-18 15:31:57 -04:00
Jude Nelson
8cf1580e11 Merge branch 'master' into develop 2018-10-18 15:28:09 -04:00
Jude Nelson
d9c89982dd fix a few bugs in /v1/dids 2018-10-17 18:19:31 -04:00
Jude Nelson
961c68c5e9 add /v1/dids 2018-10-17 18:15:21 -04:00
Jude Nelson
6ac9fc27d3 better validation of JWTs on DID resolution 2018-10-17 18:15:08 -04:00
Jude Nelson
5aaef0ca88 snapshot the subdomain db queue as well as the subdomain. This fixes a bug whereby a fast-sync'ed node can lose subdomain records because it doesn't know to process a recently-discovered zone file. This happens when a snapshot is taken from a node that just discovered a zone file, but has not yet processed it. This patch fixes this by also including the subdomain DB queue, which incluedes the list of recently-discovered but unprocessed zone files in the snapshot. 2018-10-17 09:27:10 -04:00
Jude Nelson
9f04404eb3 add subdomain DB query for getting subdomain ops processed in a given tx 2018-10-16 11:30:15 -04:00
Jude Nelson
b158bafd98 add definitions for rows in the subdomain table so we can return and validate historic subdomain operations 2018-10-16 11:29:51 -04:00
Jude Nelson
cb2ec5407b add GET /v1/subdomains/{:txid} to get all subdomain operations processed in a given transaction 2018-10-16 11:29:33 -04:00
Jude Nelson
ad76a3d3da add client method to get all subdomain records processed at a given txid 2018-10-16 11:29:13 -04:00
Jude Nelson
30b4bd8975 log.warning 2018-10-15 18:43:42 -04:00
Jude Nelson
0ea153a198 re-add back all token opcode data 2018-10-15 18:43:33 -04:00
Jude Nelson
f9ee9d663b Merge branch 'feature/token-v1' into develop 2018-10-15 18:42:44 -04:00
Jude Nelson
6fd1da39de new fast-sync DNS name 2018-10-15 17:10:49 -04:00
Jude Nelson
ae78ad733f fast-sync key rotation 2018-10-12 16:37:13 -04:00
Jude Nelson
b6aad35347 don't even try to decode the zone file on GET /v1/names. It's not necessary. 2018-10-11 17:39:02 -04:00
Jude Nelson
3e95bf3b1b handle non-standard zonefiles 2018-10-11 17:38:56 -04:00
Jude Nelson
69e42a5699 pattern= 2018-10-11 17:38:51 -04:00
Jude Nelson
270447f0b0 de-lint 2018-10-11 17:38:46 -04:00
Jude Nelson
2ac5252be2 remove unneeded format() 2018-10-11 17:38:41 -04:00
Jude Nelson
1606a215ed fall back to 127.0.0.1 if getaddrinfo fails 2018-10-11 17:37:41 -04:00
Jude Nelson
0524a21836 allow using getaddrinfo() to get the Atlas IP address. Pass "<stun>" to request a STUN-determined IP address; pass "<host>" for getaddrinfo(); pass a normal IP address or DNS name for a pre-configured address (affects "atlas_hostname" and "BLOCKSTACK_ATLAS_HOSTNAME") 2018-10-11 17:37:24 -04:00
Jude Nelson
f5e6bd15f7 don't even try to decode the zone file on GET /v1/names. It's not necessary. 2018-10-10 13:58:45 -04:00
Jude Nelson
bfb85516bc handle non-standard zonefiles 2018-10-10 13:53:43 -04:00
Jude Nelson
9e29316970 pattern= 2018-10-10 13:46:54 -04:00
Jude Nelson
21a575e958 de-lint 2018-10-10 13:04:03 -04:00
Jude Nelson
930a73aa89 remove unneeded format() 2018-10-10 13:03:51 -04:00
Jude Nelson
4550ee3df7 fall back to 127.0.0.1 if getaddrinfo fails 2018-10-08 13:24:34 -04:00
Jude Nelson
520d3814ce allow using getaddrinfo() to get the Atlas IP address. Pass "<stun>" to request a STUN-determined IP address; pass "<host>" for getaddrinfo(); pass a normal IP address or DNS name for a pre-configured address (affects "atlas_hostname" and "BLOCKSTACK_ATLAS_HOSTNAME") 2018-10-08 11:54:31 -04:00
Jude Nelson
5aa3689121 merge /v1/prices and /v2/prices -- make the /v2 endpoint return the same information expected by the /v1 endpoint 2018-10-02 23:40:09 -04:00
Jude Nelson
84093a3224 account history no longer takes startblock or endblock 2018-10-02 23:40:00 -04:00
Jude Nelson
3768dc115b set blockstack atlas hostname (BLOCKSTACK_ATLAS_HOSTNAME) as an environ 2018-10-02 23:39:38 -04:00
Jude Nelson
8c01542272 f-day 2018 is now october 22 2018-10-02 23:39:30 -04:00
Jude Nelson
8f944ddd33 merge /v1/prices and /v2/prices -- make the /v2 endpoint return the same information expected by the /v1 endpoint 2018-10-02 23:36:46 -04:00
Jude Nelson
c059c17469 set blockstack atlas hostname (BLOCKSTACK_ATLAS_HOSTNAME) as an environ 2018-10-02 23:35:52 -04:00
Jude Nelson
ccdd7fa0d6 reword comment 2018-09-27 17:52:28 -04:00
Jude Nelson
f03d23aa95 rename *_nameops_* to *_blockstack_ops_* for code clarity 2018-09-27 17:52:20 -04:00
Jude Nelson
746a36059d rename *_nameops_* to *_blockstack_ops_* for code clarity 2018-09-27 17:42:17 -04:00
Jude Nelson
bc89efb797 get subdomain history in reverse chronological order; add method to test if a zone file hash was created by a subdomain 2018-09-20 17:27:06 -04:00
Jude Nelson
6a6e9cc1f8 have GET /v1/names/:name/zonefile/:hash use the is_name_zonefile_hash() client method, which is considerably faster (both in absolute terms and asymptotic terms) than the status quo 2018-09-20 17:27:00 -04:00
Jude Nelson
a00a1fbe36 fix bug in getting subdomain history; add method to check if a name created a zone file 2018-09-20 17:26:52 -04:00
Jude Nelson
c3b7ac84ea add method to check if a name created a zone file hash; remove dead code 2018-09-20 17:26:29 -04:00
Jude Nelson
040b2aa4e2 pass through new DB methods 2018-09-20 17:25:25 -04:00