Commit Graph

909 Commits

Author SHA1 Message Date
Jude Nelson
5e9ab1ac5d be strict about allowing name renewals with token burns---there must be an 8-byte token burn field or nothing at all (assuming the epoch features permit tokens) 2018-05-30 11:59:58 -04:00
Jude Nelson
a34e000535 be strict in our namespace-preorder parser about rejecting namespace-preorders that don't have a token burn field in the token epoch (we rejected these already in the check() method, but why not reject them early if possible?) 2018-05-30 11:59:14 -04:00
Jude Nelson
68ba7fe64c stacks token fee is an int, not a float 2018-05-29 11:14:17 -04:00
Jude Nelson
ac226bda6b fields can be non-None, but evaluate to False 2018-05-29 11:14:02 -04:00
Jude Nelson
9da2642075 only log verbose HTTP output while testing 2018-05-03 18:14:11 -04:00
Jude Nelson
fdea829dd7 port subdomain lookup redirect 2018-04-30 15:55:58 -04:00
Jude Nelson
6830db642a when running as a public testnet node, require an *exact* server version match 2018-04-30 10:36:57 -04:00
Jude Nelson
fab0301701 make sure testnet nodes assume that a remote peer is mainnet if they do not reply a 'testnet' field (and ignore them if so) 2018-04-30 09:39:42 -04:00
Jude Nelson
5b9a7f5944 set bind address in test config 2018-04-30 00:43:39 -04:00
Jude Nelson
39d82c671e allow testnet to set api host to 0.0.0.0 2018-04-30 00:35:37 -04:00
Jude Nelson
a85475f140 conditional check for public testnet envar 2018-04-30 00:06:38 -04:00
Jude Nelson
6c6d3ee763 crawl at a normal rate when in the public testnet 2018-04-30 00:04:50 -04:00
Jude Nelson
ef358c891b make getinfo faster so we can use it more in atlas in order to tell if we're talking to a testnet or mainnet node. We'll make it so mainnet nodes and testnet nodes ignore each other. 2018-04-29 23:01:57 -04:00
Jude Nelson
0e97ea1f6f serialize token to string 2018-04-29 02:27:01 -04:00
Jude Nelson
febfbf73d7 fix a few regressions from the move away from blockstack_client 2018-04-27 01:11:03 -04:00
Jude Nelson
6501e17c48 return renewal_deadline 2018-04-26 00:09:45 -04:00
Jude Nelson
bfe729c6c2 proxy objects no longer contain SPV headers 2018-04-26 00:09:34 -04:00
Jude Nelson
013bb6564d version bump 2018-04-24 17:25:38 -04:00
Jude Nelson
12b7e3727f REST endpoint's zonefile hash length is 2x the length in bytes 2018-04-24 17:24:13 -04:00
Jude Nelson
8f51bcb4a0 separate out error validation 2018-04-24 10:43:00 -04:00
Jude Nelson
eb646ba665 add doctests to scripts module 2018-04-23 16:17:46 -04:00
Jude Nelson
c2a6bd5eb8 note that in the next release, we're going to have to change the subdomain regex 2018-04-23 16:17:28 -04:00
Jude Nelson
6c676a4290 include metadata with an account in the genesis block 2018-04-23 16:17:11 -04:00
Jude Nelson
9513f5d672 check that the name is valid in register/renewal (we already do this implicitly through the check() method, but we should do it explicitly for clarity) 2018-04-23 16:16:49 -04:00
Jude Nelson
ff4488eed5 add doctests to b40 module 2018-04-23 16:16:38 -04:00
Jude Nelson
3775dfac97 clean up subdomains infrastructure port from develop 2018-04-20 18:51:05 -04:00
Jude Nelson
577562afc2 port subdomains endpoints to this branch 2018-04-20 18:50:47 -04:00
Jude Nelson
e0b07f8aa8 catch socket errors for all RPC methods:
* return HTTP 502 hint for invalid data and connection errors that are not timeouts
* return HTTP 503 for timeouts
* return HTTP 500 for errors that are not any of the above
2018-04-20 18:49:49 -04:00
Jude Nelson
6f58350875 use check_*() methods from .scripts 2018-04-20 18:49:31 -04:00
Jude Nelson
4fc7c5f999 Merge branch 'develop' into feature/token-v1 2018-04-20 15:54:54 -04:00
Aaron Blankstein
51f8e61d7b add+refactor to /v1/subdomains and /v1/blockchains/bitcoin/subdomains_count 2018-04-20 12:02:08 -04:00
Aaron Blankstein
7a5bf1751c include subdomains in response to /v1/names/ pagination 2018-04-20 11:11:19 -04:00
Jude Nelson
7d4fb4f57a history can include token information, as well as name/namespace information 2018-04-19 19:07:38 -04:00
Jude Nelson
ad12302fa1 be liberal in what we accept as RESTful arguments, so we can distinguish between a 400 and a 404 (instead of universally replying 404 for invalid arguments) 2018-04-19 19:07:00 -04:00
Jude Nelson
cdf97d02ba rename some columns for tokentransfer so they're consistent with the name_records table 2018-04-19 19:06:40 -04:00
Jude Nelson
438ec5c071 note on state_create_put_preorder() 2018-04-19 19:06:31 -04:00
Jude Nelson
8698e660c6 make sure that we keep the token fee as a string when we go to store it in the name db 2018-04-19 19:06:12 -04:00
Jude Nelson
b56e5f2d7b raise validation error if the back-plane does not return an HTTP hint 2018-04-19 19:05:06 -04:00
Jude Nelson
fd20fead1d when storing a preorder on namedb_state_create(), make sure its token_fee is a string so we don't accidentally load and return big integers 2018-04-19 19:04:25 -04:00
Jude Nelson
6395be4688 forward http status on name lookup 2018-04-19 19:04:13 -04:00
Jude Nelson
d20bbe6fcc add input checkers (extracted from the back-plane RPC server) 2018-04-19 11:58:29 -04:00
Jude Nelson
727f744ad7 fix account history query to be more REST-y; also be more rigorous about checking inputs using the check_*() methods (now in blockstack.lib.scripts) 2018-04-19 11:57:57 -04:00
Jude Nelson
aea826bd80 execute account vesting commits as a single transaction (greatly improves performance), also change some method names to clarify that they concern only name operations 2018-04-19 11:56:51 -04:00
Jude Nelson
e6a84586d7 clarify names of some methods to mention that they specifically concern name operations (not token operations) 2018-04-19 11:56:31 -04:00
Jude Nelson
44e6224589 be more rigorous about checking for the presence of required consensus fields *early* 2018-04-19 11:56:10 -04:00
Jude Nelson
c1788b1974 be more rigorous about giving back http status hints on error paths 2018-04-19 11:55:54 -04:00
Jude Nelson
f912bf4179 remove check_*() code into blockstack/lib/scripts.py; be more rigorous about returning HTTP error codes; WIP add methods to query account operations and history 2018-04-19 11:35:22 -04:00
Jude Nelson
f028e108df small bugfixes 2018-04-15 22:37:20 -04:00
Jude Nelson
c0b416b09d small bugfixes 2018-04-15 22:37:11 -04:00
Jude Nelson
c6caca22eb ascending, not descending 2018-04-15 22:37:01 -04:00