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
Jude Nelson
b0eae9b03b
force lowercase RR name
2018-02-12 19:47:41 -05:00
Jude Nelson
c37843aae1
print bad subdomain on error
2018-02-12 19:42:50 -05:00
Jude Nelson
6455ae2dd9
fix import
2018-02-12 19:35:42 -05:00
Jude Nelson
c6c75e0646
typo
2018-02-12 19:34:18 -05:00
Jude Nelson
803630f02f
use atlas_get_peers() as a fallback
2018-02-12 19:25:09 -05:00
Jude Nelson
2e79429468
wait at most 5 minutes on child fork
2018-02-12 19:12:18 -05:00
Jude Nelson
45b5dcc5c8
early abort on subdomain name match test
2018-02-12 19:11:00 -05:00
Jude Nelson
0904e6f89c
don't log invalid zone files' stack traces when parsing
2018-02-12 19:02:14 -05:00
Jude Nelson
c079b35234
a name can have 1 character excluding its tld
2018-02-12 19:02:00 -05:00
Jude Nelson
c55379df6d
less verbose debug output
2018-02-12 19:01:48 -05:00
Jude Nelson
d9aa6c90e0
atlas.db and subdomain.db are now considered state paths
2018-02-12 18:39:06 -05:00
Jude Nelson
38d8ff4046
guard db_restore exception
2018-02-12 18:38:54 -05:00
Jude Nelson
0e708b391e
typo
2018-02-12 16:58:34 -05:00
Jude Nelson
ae562068e6
method to get the subdomain db handle
2018-02-12 16:18:43 -05:00
Jude Nelson
24d5533949
document semantics on history queries
2018-02-12 11:00:32 -05:00
Jude Nelson
fcc05db338
move over the remaining blockstackd client methods to blockstackd
2018-02-12 11:00:13 -05:00
Jude Nelson
127fd48270
methods for making and parsing DIDs
2018-02-11 18:58:51 -05:00
Jude Nelson
05e96f6213
add method for getting a subdomain from a DID, and DID info from a subdomain
2018-02-11 18:58:34 -05:00
Jude Nelson
53e9b00e3a
history may include a did
2018-02-11 18:58:23 -05:00
Jude Nelson
d1eec47ac8
add method for resolving DIDs to names, and getting DID info for a given name
2018-02-11 18:58:07 -05:00
Jude Nelson
378c4cbe98
add method to get the DID info for a name
2018-02-11 18:57:52 -05:00