Jude Nelson
3ca538136f
pass along name to zonefile storage driver whenever possible
2016-09-13 16:31:23 -04:00
Jude Nelson
06bc0bb15c
find the current epoch's namespace lifetime multiplier and use it to
...
calculate the expire block for a name
2016-09-12 17:58:38 -04:00
Jude Nelson
5f11ba1658
set default port
2016-09-09 17:11:24 -04:00
Jude Nelson
f60a9b73d4
report correct expire block
2016-09-09 16:53:27 -04:00
Jude Nelson
70b7957141
add get_namespace_cost(); pass working db path to verifydb
2016-09-09 11:15:51 -04:00
Jude Nelson
e93328c09a
refactoring: move history verification to lib/consensus; specialize
...
debug output when using the atlas network simulator; use get_records_*
instead of get_nameops_*
2016-09-02 00:12:50 -04:00
Jude Nelson
bc40d5a901
abort on fatal error; better atlas start/stop logic; report JSON
...
tracebacks as strings
2016-08-30 20:23:33 -04:00
Jude Nelson
da509dc2ba
atlas_start() and atlas_stop() as explicit methods
2016-08-30 00:37:25 -04:00
Jude Nelson
d4a7c5e772
set initial peer table
2016-08-29 17:35:17 -04:00
Jude Nelson
b0876869b5
make blockstack server amenable to being run as an atlas peer in the
...
test framework.
2016-08-26 18:46:15 -04:00
Jude Nelson
1298b543a3
conditionally enable atlas support based on config file
2016-08-23 11:39:41 -04:00
Jude Nelson
fe8741da4b
all rpc_ methods receive **con_info to contain client information
2016-08-22 18:00:05 -04:00
Jude Nelson
5e6344dc37
atlas inventory requests are in terms of byte offset and length
2016-08-18 18:33:25 -04:00
Jude Nelson
f71b91983a
plumb through atlas support to peer and zonefile queries
2016-08-17 00:36:54 -04:00
Jude Nelson
3d96a7ad55
WIP: add Atlas RPC methods
2016-08-15 18:19:26 -04:00
Jude Nelson
6263fb41a2
add tx_filter to select only 'id' op_returns
2016-08-10 19:49:18 -04:00
Jude Nelson
59930bfcbf
use blockstack_client's semvar; add expected_snapshots argument (pulled
...
from sqlite3 branch)
2016-08-10 19:30:58 -04:00
Jude Nelson
7a7692ba8e
if there's no analytics key, then log it
2016-08-10 16:07:03 -04:00
Jude Nelson
2f4c0019e8
disable mock_bitcoind support
2016-08-04 13:50:16 -04:00
Jude Nelson
225b7e1964
If there is no server_version in the config file, automatically add it
...
when generating the new config file (#229 ). However, don't add it if it
was already present in the config file, or if the config file already
exists (in which case, the appropriate action is to use the version
given, or back up the old config file).
2016-07-27 16:12:28 -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
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
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
cc886ce191
use config-file-given storage drivers to read zonefiles and profiles
2016-07-10 16:28:22 -04:00
Jude Nelson
ac017f1786
better documentation
2016-07-10 15:39:30 -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
d01777cc85
Add rudimentary type-checking on the RPC interface
2016-07-08 16:36:56 -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
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
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
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
Jude Nelson
0b79d37e5a
set config options directly; prefix bitcoind options with 'bitcoind_'
...
for virtualchain
2016-06-15 17:40:44 -04:00
Jude Nelson
bc27326a74
set working_dir early
2016-06-15 17:19:34 -04:00
Jude Nelson
3aae968e46
remove more testset/testnet (should be handled implicitly by bitcoind
...
anyway); make sure `configure` works
2016-06-15 15:19:37 -04:00
Jude Nelson
b0201b7c1c
move most configuration out of blockstack and into blockstack-client
2016-06-15 11:24:52 -04:00