Commit Graph

113 Commits

Author SHA1 Message Date
Jude Nelson
f0d589ab29 modify the BoundedThreadingMixIn so it will eagerly close client sockets when it has too many outstanding requests. Do some housekeeping so that we can use this in both the backplane RPC server and the API server, and update the relevant integration test to test for this behavior 2018-09-18 17:48:19 -04:00
Jude Nelson
ac4ad9dba1 push back f-day 2018 2018-09-17 18:34:24 -04:00
Aaron Blankstein
65d294ef5a add environment variable for overriding atlas_seed_peers setting (BLOCKSTACK_ATLAS_SEEDS) 2018-09-13 11:09:29 -04:00
Jude Nelson
961b17cb16 Merge branch 'master' into feature/token-v1 2018-08-07 14:39:29 -04:00
Jude Nelson
2f2508bc2a need jsonschema 2018-08-07 14:20:52 -04:00
Jude Nelson
01ef6b022b de-lint; version bump 2018-07-06 14:04:09 -04:00
Jude Nelson
733e3ce9ef delinting! 2018-07-06 13:48:24 -04:00
Jude Nelson
a1709b3a2f reduce the multiplier for the maximum rpc size to 150 (really can get away with more like 133, but let's play it safe--it's only 0.6 MB) 2018-07-05 23:41:39 -04:00
Jude Nelson
800f82911d make the max RPC length equal to the expected amount of space 100 fully-loaded zone files take when encoded 2018-07-05 21:42:26 -04:00
Jude Nelson
e28314eae6 add getters/setters for global genesis block 2018-07-05 18:47:17 -04:00
Jude Nelson
16a071a62b make the default maximum number of RPC connections 1000 (we have ~6 open at any given point in time, but this expands briefly when the server processes a new block) 2018-07-05 17:42:13 -04:00
Jude Nelson
875ce2dba4 add a bounded threading mixin to the RPC server that allows it to have up to a maximum number of outstanding threads handling requests. serialize all RPC access so we don't introduce database contention or corruption. make the maximum number of RPC threads overridable in the environment. 2018-07-05 17:32:55 -04:00
Jude Nelson
b609ece33e load genesis block from a module, or from source 2018-07-05 17:28:46 -04:00
Jude Nelson
660db55060 advance block time for the next fork to "sometime in the indefinite future" 2018-06-20 19:08:23 -04:00
Jude Nelson
11530e840c technicall p2sh was allowed in epoch 1 (we just ignored it) 2018-06-16 14:48:34 -04:00
Jude Nelson
09abf6078e define for each epoch which sender scriptpubkey and output scriptpubkey script types will be acceptable 2018-06-16 11:26:39 -04:00
Jude Nelson
c8aa887c21 record microstack <--> satoshi conversion rate 2018-06-10 13:38:12 -04:00
Jude Nelson
870acf8d1f add a 'price divisor' field to the system's epochs, and make it so that in the fourth epoch we will no longer use float multiplication but instead use integer division 2018-06-06 15:20:49 -04:00
Jude Nelson
fab0301701 make sure testnet nodes assume that a remote peer is mainnet if they do not reply a 'testnet' field (and ignore them if so) 2018-04-30 09:39:42 -04:00
Jude Nelson
5b9a7f5944 set bind address in test config 2018-04-30 00:43:39 -04:00
Jude Nelson
39d82c671e allow testnet to set api host to 0.0.0.0 2018-04-30 00:35:37 -04:00
Jude Nelson
ef358c891b make getinfo faster so we can use it more in atlas in order to tell if we're talking to a testnet or mainnet node. We'll make it so mainnet nodes and testnet nodes ignore each other. 2018-04-29 23:01:57 -04:00
Jude Nelson
b9045f846d add TOKEN_TRANSFER opcode description 2018-04-13 19:15:47 -04:00
Jude Nelson
1e5d2ff2e0 add load_configuration() for non-interactive configuration loading 2018-04-05 17:30:48 -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
7be1628903 extend the configuration section to include [blockstack-api] 2018-03-22 19:23:11 -04:00
Jude Nelson
c02d964734 update signing key 2018-02-19 19:07:47 -05:00
Jude Nelson
24309d8481 save RPC public IP once we know it 2018-02-19 14:46:17 -05:00
Jude Nelson
3c15e5c961 use STUN to discover the host's public IP 2018-02-19 14:37:09 -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
79de506afa move subdomain version numbers to config for easier imports 2018-02-11 18:57:39 -05:00
Jude Nelson
bc9807e79a 10x the zone file size 2018-02-09 18:34:58 -05:00
Jude Nelson
c2fe7fec55 track first block for subdomains 2018-01-30 17:41:48 -05:00
Jude Nelson
6a135a035f add support for subdomain DB path, and for checking whether or not subdomains and atlas are enabled 2018-01-29 19:08:37 -05:00
Jude Nelson
c357b98190 no longer honor zonefile, profile, or data storage config options 2018-01-22 19:12:01 -05:00
Jude Nelson
06cfae1aaa ports 6264 and 16264 don't use ssl 2018-01-19 17:33:43 -05:00
Jude Nelson
f0e19e81ea average seconds per block 2018-01-18 19:57:13 -05:00
Jude Nelson
a3fcc925a0 list all name operations 2018-01-17 14:17:03 -05:00
Jude Nelson
e93b576512 get_version_parts missing 2018-01-16 16:35:01 -05:00
Jude Nelson
86b57aaf48 add config file parsing code from blockstack_client, so we no longer depend on it. Similar for semver parsing and environment variable munging 2018-01-12 18:24:22 -05:00
Jude Nelson
6807734dea typo 2017-10-29 22:38:18 -04:00
Jude Nelson
a4c77e3294 require 0.17 or newer 2017-10-04 17:54:43 -04:00
Jude Nelson
f13df668a5 introduce a fixed interval of time during which a v2 namespace can collect fees. 2017-10-04 00:03:19 -04:00
Jude Nelson
5aec8946d1 f-day 2014 is at 488500; renewal grace period is 5000 blocks; price multiplier for names and namespaces is 1/10 2017-09-29 00:50:02 -04:00
Jude Nelson
4620edf6e7 include epoch config for grace period 2017-09-29 00:49:36 -04:00
Jude Nelson
f6fe5bb18d comment on burn addr 2017-09-29 00:49:36 -04:00
Jude Nelson
442457ddbe rearrange a few things so test framework constants get set correctly 2017-09-29 00:49:35 -04:00
Jude Nelson
0f50609d4e define pay-to-burn versus pay-to-creator namespace version bits 2017-09-29 00:49:26 -04:00
Jude Nelson
e52071d572 add epoch 3--reduces namespace prices, enables renew/transfer/update in one tx, enabled register/update in one tx. 2017-09-29 00:49:25 -04:00
Aaron Blankstein
c6125f5efe bug needs to use a tuple, not the generator 2017-09-29 00:48:49 -04:00