Jude Nelson
bd3edd8997
Expand namespace lifetime by 4x
2016-07-20 10:37:08 -04:00
Jude Nelson
c9f441d572
version bump
2016-07-18 16:53:16 -04:00
Jude Nelson
e0ca82f97f
remove dead code
2016-07-18 16:44:53 -04:00
Jude Nelson
bfda61280f
get public key from zonefile and then from profile once the profile has
...
been validated. Don't try to extract it from the old profile.
2016-07-18 16:40:57 -04:00
Jude Nelson
c666852baf
debug all returns in put_profiles
2016-07-18 16:26:34 -04:00
Jude Nelson
c1be35a888
no profile == empty string
2016-07-18 16:13:42 -04:00
Jude Nelson
88cb282c95
add server analytics
2016-07-18 15:59:20 -04:00
Jude Nelson
0a7c5996cc
get_name_history() should return a dict, keyed by block height
2016-07-18 15:59:00 -04:00
Jude Nelson
a59a62c27c
store server version in the config file, and use it to determine whether
...
or not the config file is obsolete and needs to be regenerated
2016-07-13 15:42:47 -04:00
Jude Nelson
a5d0c1e68f
(temporarily) remove get_zonefile_from_peers from the module
2016-07-12 16:34:56 -04:00
Jude Nelson
16e2cf9f12
store zonefiles as directory trees to avoid filling a single directory
...
with too many entries
2016-07-12 16:34:00 -04:00
Jude Nelson
d1839e40c0
zonefiles are 4K tops, in order to preserve backwards-compatibility with
...
UDP-based protocols (like the old DHT)
2016-07-12 16:33:05 -04:00
Jude Nelson
44eb556788
Only store a profile if it is accompanied by a client-given signature
...
from the data private key over the hash of the previous profile (or "") and new profile's
canonical serialization. This is meant to prevent malicious replay
attacks using stale profiles.
2016-07-12 16:31:37 -04:00
Jude Nelson
363b52de4f
serve back a *raw* profile
2016-07-10 23:40:04 -04:00
Jude Nelson
8042a14eae
don't rely on the user-supplied zonefile URLs
2016-07-10 18:09:07 -04:00
Jude Nelson
271ce3ba3d
zonefile_dict
2016-07-10 16:29:30 -04:00
Jude Nelson
cc886ce191
use config-file-given storage drivers to read zonefiles and profiles
2016-07-10 16:28:22 -04:00
Jude Nelson
8c9dcd42b8
use caller-given zonefile drivers
2016-07-10 16:28:10 -04:00
Jude Nelson
ac017f1786
better documentation
2016-07-10 15:39:30 -04:00
Jude Nelson
cdf85a8702
optional required drivers argument
2016-07-10 14:47:17 -04:00
Jude Nelson
22f015f847
'zonefile_storage_drivers' and 'profile_storage_drivers' config options
2016-07-10 14:46:56 -04:00
Jude Nelson
0d5e711b6b
use 'conf' instead of 'config' (shadows module name); use
...
zonefile-specific storage drivers
2016-07-10 14:46:26 -04:00
Jude Nelson
01e04f876c
parse the right data
2016-07-08 16:37:43 -04:00
Jude Nelson
739257e440
add is_namespace_valid()
2016-07-08 16:37:31 -04:00
Jude Nelson
bbdf3d214d
remove dead code
2016-07-08 16:37:23 -04:00
Jude Nelson
57aaf9188c
maximum zonefile/profile replication sizes
2016-07-08 16:37:09 -04:00
Jude Nelson
d01777cc85
Add rudimentary type-checking on the RPC interface
2016-07-08 16:36:56 -04:00
Jude Nelson
72265c68b3
dealing with serialized zonefiles
2016-07-08 14:59:59 -04:00
Jude Nelson
946b3a2bdd
store *serialized* zonefile
2016-07-08 12:51:40 -04:00
Jude Nelson
ad6579d634
add storage module
2016-07-08 12:51:12 -04:00
Jude Nelson
5c31c0f449
if the zonefile directory doesn't exist, create it
2016-07-08 12:31:24 -04:00
Jude Nelson
cc79ff824b
add get_consensus_hashes() to get a set of consensus hashes
2016-07-06 17:55:14 -04:00
Jude Nelson
f2cfc556c5
virtualchain compatibility
2016-07-06 16:42:35 -04:00
Jude Nelson
992bd2868a
if given an invalid bitcoind config, log the config
2016-07-06 16:34:13 -04:00
Jude Nelson
87da0001a8
bugfix: cache until invalidated, and set invalidation timers
...
appropriately
2016-07-06 15:49:05 -04:00
Jude Nelson
638a58b4db
keep server and client versions synced; update package versions
2016-07-06 13:19:47 -04:00
Jude Nelson
a79f64b5a6
corner case: in case it takes a very long time to load the DB from RAM,
...
ensure mutual exclusivity on loading it
2016-07-06 12:55:42 -04:00
Jude Nelson
3390162543
add comments on when/how to use BlockstackDB class
2016-07-06 12:55:29 -04:00
Jude Nelson
193b89afd7
return errors on failure to load profile
2016-06-29 18:01:00 -04:00
Jude Nelson
c0a764f0c4
make sure client is initialized
2016-06-29 17:52:49 -04:00
Jude Nelson
1c985e0ed5
add get zonefile by name
2016-06-29 15:44:55 -04:00
Jude Nelson
a522cc7e15
revert accidental change: reload DB only on re-index, but do so eagerly
2016-06-29 11:55:37 -04:00
Jude Nelson
15751da748
fix deadlock condition where we try to get_name_blockchain_record() on
...
ourselves in an API call
2016-06-29 00:54:33 -04:00
Jude Nelson
5dee5cc499
load analytics key from config file
2016-06-28 16:50:13 -04:00
Jude Nelson
976b80c9f8
only invalidate cached DB state on chain synchronization. Also, serve
...
analytics key
2016-06-28 16:49:50 -04:00
Jude Nelson
ca3a9a87d5
reload the db only on re-index, and do so eagerly
2016-06-27 17:53:52 -04:00
Jude Nelson
71c7b42ff8
log exceptions
2016-06-27 10:52:50 -04:00
Jude Nelson
203869b10a
rely on check time, not mtime
2016-06-21 02:42:20 -04:00
Jude Nelson
780ebb53ae
forgot timeout
2016-06-21 02:05:49 -04:00
Jude Nelson
4e3a66e2eb
Optimization: keep the database in RAM, except when indexing. Be sure to invalidate
...
when finished indexing. The only thing clients will pull from the db is
the current consensus hash.
2016-06-21 01:48:28 -04:00