Commit Graph

26 Commits

Author SHA1 Message Date
Jude Nelson
ac74c68889 if we're testing, we're always running 2016-10-28 13:54:18 -04:00
Jude Nelson
dc58363948 also gc before/after atlasdb sync 2016-10-27 16:24:33 -04:00
Jude Nelson
a82cd3cb1e strategic garbage collection 2016-10-27 15:47:49 -04:00
Jude Nelson
08fac559d6 synchronize atlasdb state on each block, and check for shutdown requests
using the new db_continue() interface
2016-10-27 00:03:52 -04:00
Jude Nelson
7929d100d9 calculate the SNV block operations hash at each block 2016-10-24 03:21:26 -04:00
Jude Nelson
e7b7ad8fa0 justify why we check lastblock when we open the db 2016-10-03 00:47:35 -04:00
Jude Nelson
9cd931dcfa print CHECK statements for the time being 2016-09-07 11:10:26 -04:00
Jude Nelson
45194de4bf Merge sqlite3's database to develop. Use a sqlite3 database instead of
a flat file.  Preserve the BlockstackDB API, but be a lot more rigorous
about checking invariants that must hold across state-preordering,
state-creating, and state-transitioning.
2016-09-02 00:19:06 -04:00
Jude Nelson
4b5b72fa77 enforce op_fee formatting quirk; check for absurdly high-value transactions
while testing
2016-08-10 16:07:21 -04:00
Jude Nelson
4656fe951a CONSENSUS-BREAKING CHANGE: if we can't find the pubkey hex in the script
sig, then set it to "", not None.  This hadn't been a problem before,
because all keys were p2pkh and always had public keys.  With multisig
support, this will no longer be the case.
2016-08-06 00:14:42 -04:00
Jude Nelson
d86cbee2de use virtualchain's key logic 2016-08-04 15:42:51 -04:00
Jude Nelson
87da0001a8 bugfix: cache until invalidated, and set invalidation timers
appropriately
2016-07-06 15:49:05 -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
203869b10a rely on check time, not mtime 2016-06-21 02:42:20 -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
33329b373d remove testset 2016-06-14 11:30:53 -04:00
Jude Nelson
daac6d43fa BLOCKSTORE --> BLOCKSTACK 2016-06-06 17:44:33 -04:00
Jude Nelson
a62535e500 use new virtualchain log facility 2016-05-11 18:03:02 -04:00
Jude Nelson
bfffc61511 always ensure database is fresh 2016-04-26 03:36:48 -04:00
Jude Nelson
b575980ba8 Remove now-dead code; compat with virtualchain 0.0.9.0 2016-04-22 17:59:21 -04:00
Ubuntu
e27b9d636f always reload the db if it doesn't exist 2016-04-18 20:28:17 +00:00
Ubuntu
7d8a438063 handle the case where the db is not on disk 2016-04-18 19:30:29 +00:00
Jude Nelson
7deb8bdbfd use mtime to determine when to re-load the database 2016-04-18 15:14:58 -04:00
Ubuntu
9cc9326558 virtual chain name is now 'blockstack-server' to avoid conflicts with the new client. 2016-02-24 15:48:44 +00:00
Jude Nelson
766f8df56a Rename BlockstoreDB to BlockstackDB 2016-02-23 15:56:09 -05:00
Jude Nelson
29f7e2ef8c WIP: renaming blockstore to blockstack 2016-02-23 15:52:18 -05:00