Jude Nelson
24fe97f75d
these epoch features aren't really doable, given the limited size of op_returns
2018-04-03 19:00:15 -04:00
Jude Nelson
e51b11e3ea
use the right authserviceproxy
2018-04-03 19:00:04 -04:00
Jude Nelson
52657b1a9c
fix import
2018-04-03 18:14:31 -04:00
Jude Nelson
3659bbd636
migrate SNV over to blockstack
2018-04-03 18:01:24 -04:00
Jude Nelson
b546844282
fix up imports
2018-04-03 18:01:18 -04:00
Jude Nelson
66d541041f
fix copyright statement
2018-04-03 18:01:05 -04:00
Jude Nelson
3737f2250a
add compatibility code that emulates the insight-api for use in the regtest framework (until the browser stops needing it)
2018-04-03 18:00:42 -04:00
Jude Nelson
9e1e46a366
fix decoding bug
2018-04-03 18:00:31 -04:00
Jude Nelson
3579d59274
only expect tokens to be burned in a NAME_PREORDER if the OP_RETURN provides them
2018-04-03 18:00:09 -04:00
Jude Nelson
5426171feb
typo in debug output
2018-04-03 17:59:51 -04:00
Jude Nelson
87b9f85e11
preserve the ability to decode zonefiles to JSON, and the ability to connect to bitcoind
2018-04-03 17:59:28 -04:00
Jude Nelson
2a5d7e7491
port RESTful API to blockstackd ( #774 )
2018-03-22 19:24:28 -04:00
Jude Nelson
8d426ca9b5
vest tokens at each block
2018-03-22 19:24:14 -04:00
Jude Nelson
dfe26d7a71
price names and namespace in a particular unit
2018-03-22 19:23:44 -04:00
Jude Nelson
5bb752a0d8
copyright :)
2018-03-22 19:23:35 -04:00
Jude Nelson
66764b7973
query account token types
2018-03-22 19:23:25 -04:00
Jude Nelson
7be1628903
extend the configuration section to include [blockstack-api]
2018-03-22 19:23:11 -04:00
Jude Nelson
60c24e5c04
update register to verify that the preorder burned the right token
...
update renew to require token burns if the namespace has a token
2018-03-22 19:22:30 -04:00
Jude Nelson
55d74edab9
update preorder to allow the sender to burn STACKs instead of BTC
2018-03-22 19:21:48 -04:00
Jude Nelson
867834b409
ensure that a namespace preorder paid the right amount of STACKs when it is revealed (but only if we're in the STACKs epochs)
2018-03-22 19:21:25 -04:00
Jude Nelson
584293fc8a
a namespace-preorder can include an 8-byte field of the number of STACKs it must burn. enforce STACKs burning exclusively (next epoch!)
2018-03-22 19:20:45 -04:00
Jude Nelson
7e9141bb09
remove the "typecast" semantics of op_check
2018-03-22 19:20:21 -04:00
Jude Nelson
32552487e0
add state invariant tags for account debits
2018-03-22 19:19:59 -04:00
Jude Nelson
2c15d29f03
add wrappers for querying account state; make it so committing preorders can trigger an account debit; update interfaces to pass in the token genesis block
2018-03-22 19:19:26 -04:00
Jude Nelson
66966f5011
add a multi-token accounting system:
...
* add a table for token expenditure history
* track debits and credits separately
* initialize the database with a caller-given genesis block and vesting schedule
* add operations to debit accounts
* add safety checks to ensure that accounts can never go negative
* add methods to query accounts' balances and tokens
* add methods to query account history
2018-03-22 19:17:23 -04:00
Aaron Blankstein
a1f3874cf4
fix subdomain name record schema validation
2018-02-27 16:49:10 -05:00
Jude Nelson
c02d964734
update signing key
2018-02-19 19:07:47 -05:00
Jude Nelson
f80c4ae7d4
catch general socket errors (like econnrefused) in commonly-used methods
2018-02-19 18:32:17 -05:00
Jude Nelson
3441b3ed65
catch socket.timeout in common methods
2018-02-19 14:53:14 -05:00
Jude Nelson
24309d8481
save RPC public IP once we know it
2018-02-19 14:46:17 -05:00
Jude Nelson
e426f8e779
log better
2018-02-19 14:37:22 -05:00
Jude Nelson
3c15e5c961
use STUN to discover the host's public IP
2018-02-19 14:37:09 -05:00
Jude Nelson
b151ed71e1
remove dead code
2018-02-19 14:36:57 -05:00
Jude Nelson
cebf9618c0
better zonefile accounting
2018-02-19 13:36:57 -05:00
Jude Nelson
bf9ae9cf2a
don't back up the atlas and subdomain dbs twice
2018-02-19 13:02:57 -05:00
Jude Nelson
b5adff9526
don't return expired names by default
2018-02-18 23:15:46 -05:00
Jude Nelson
8d8d2d1218
don't accidentally treat _missing (or a few other reserved RR names) as subdomain records
2018-02-18 00:33:56 -05:00
Jude Nelson
d6d3777c58
fix max RPC size to be 10x the max zonefile size (since we accept at most 5 base64-encoded zone files)
2018-02-18 00:33:32 -05:00
Jude Nelson
4bfc224af8
fix DID resolution
2018-02-18 00:32:52 -05:00
Jude Nelson
9648242d25
remove excess debugging output
2018-02-16 12:12:46 -05:00
Jude Nelson
900b4ae3af
remove print
2018-02-16 12:12:39 -05:00
Jude Nelson
975a662e6f
make sure a DID that points to an expired but reregistered name will resolve to the name as it was just before it was reregistered
2018-02-15 23:26:24 -05:00
Jude Nelson
b2bbd69a9d
make sure DIDs that point to old expired versions of a name still resolve
2018-02-15 23:25:58 -05:00
Jude Nelson
867e5a5c7f
flesh out DID resolution, as well as profile resolution (we no longer need client-side storage drivers, since the Gaia hub takes care of this)
2018-02-15 13:07:57 -05:00
Jude Nelson
0ac53c4a85
flesh out resolve_DID()
2018-02-14 18:39:34 -05:00
Jude Nelson
eb4e2ba78b
add code to get a name's DID
2018-02-14 17:42:51 -05:00
Jude Nelson
b470bdd9d7
remove unused code
2018-02-14 17:42:32 -05:00
Jude Nelson
bb4e55295b
add method to get a subdomain's DID
2018-02-14 17:42:17 -05:00
Jude Nelson
aa07488e49
whitespace in query
2018-02-12 23:54:43 -05:00
Jude Nelson
99329c1d80
return sorted names
2018-02-12 23:53:14 -05:00