Jude Nelson
0aefefb901
remove reliance on utilitybelt
2018-04-05 17:30:00 -04:00
Jude Nelson
6f75f4747e
support starting blocktackd in "api-only" mode
2018-04-05 17:29:44 -04:00
Jude Nelson
cee004d970
fix bitcoind connection bug that restores SNV
2018-04-03 19:02:10 -04:00
Jude Nelson
9deaa8d0de
remove misleading comment
2018-04-03 19:01:59 -04:00
Jude Nelson
e73d9c1012
remove unused route
2018-04-03 19:01:15 -04:00
Jude Nelson
1f93bd3c72
for name_import, set the op_fee field to the price of the name *only* if the name's namespace is priced in BTC. Otherwise, set it to 0, and set the token_fee field to the price of the name
2018-04-03 19:00:44 -04:00
Jude Nelson
8f4f2f6653
typo in comment
2018-04-03 19:00:37 -04:00
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
f8ce72ce90
version bump!
2018-03-22 19:26:04 -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
30bf4ceb06
patch through account methods, and start/stop the RESTful API within blockstackd
2018-03-22 19:24:00 -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
53cab2ed74
version bump
2018-02-27 16:50:16 -05:00
Aaron Blankstein
a1f3874cf4
fix subdomain name record schema validation
2018-02-27 16:49:10 -05:00
Jude Nelson
e466809eff
check that DIDs are strings
2018-02-26 16:58:02 -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
ca55b3ce79
return expired names by default. let the client figure out that they are expired
2018-02-18 23:15:22 -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