Jude Nelson
6063d4b5e5
add checks to see if the name is in the renewal grace period
2017-09-29 00:49:37 -04:00
Jude Nelson
d880b43031
include grace period in name expiration calculation
2017-09-29 00:49:37 -04:00
Jude Nelson
d65269d5bd
burn_address is an indirect consensus field
2017-09-29 00:49:35 -04:00
Jude Nelson
f57c1e14b2
delegate determining the burn output and value to the operation; don't try to do it universally
2017-09-29 00:49:30 -04:00
Jude Nelson
6f6a1c401e
add get_preorders_at()
2017-09-29 00:49:27 -04:00
Jude Nelson
37604b8b9c
slightly stronger assertions when creating state regarding what has to be in the preorder operation; allow an operation to stipulate that additional fields be backed up by a successor operation besides its consensus fields
2017-09-29 00:49:26 -04:00
Jude Nelson
9526be7579
register and renew can include a zone file hash, so check these operations when queuing zone file hashes to atlas
2017-09-29 00:49:25 -04:00
Aaron Blankstein
c878b62c8a
/usr/bin/env python -> python2. our code is not python3 friendly, we should specify that
2017-08-17 13:40:01 -04:00
Jude Nelson
e94eadf8c8
clean up imports
2017-04-27 19:23:07 -04:00
Jude Nelson
2008a80d2d
clean up imports
2017-04-27 19:22:57 -04:00
Jude Nelson
06a4ef0b34
improve documentation of collision-checker methods to indicate that they are not called directly. Also, fix potential NameError (doesn't happen in practice, but let's be careful)
2017-04-25 20:20:07 -04:00
Jude Nelson
ad5948c30a
better database-is-locked error handling
2017-04-24 20:11:06 -04:00
Jude Nelson
40d94506a0
use virtualchain address methods instead of pybitcoin address methods
2017-04-20 17:36:32 -04:00
Jude Nelson
845d23cc60
do not require pybitcoin, except for unit tests
2017-04-20 17:36:16 -04:00
Jude Nelson
deb588ffb3
separate out keychain path generation logic
2017-04-13 10:59:06 -04:00
Jude Nelson
c66b44ac7e
when building an import keychain, optionally take a directory in which to store it (so clients can do this)
2017-04-12 17:09:53 -04:00
Jude Nelson
402e7d10b7
format and encode the path
2017-02-23 17:21:31 -05:00
Jude Nelson
cf91518ae0
fix up symbols
2017-02-20 21:17:21 -05:00
Jude Nelson
1e9bc037d4
Use sqlite3 .backup instead of shutil.copyfile() for backing up SQLite3 databases
2017-02-20 20:53:23 -05:00
Jude Nelson
b8db5fdfa4
implement get_state_paths
2016-11-07 11:49:30 -05:00
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
01d6d83b7a
don't forget gc
2016-10-27 16:24:25 -04:00
Jude Nelson
c43858ccef
strategic garbage collect
2016-10-27 16:10:27 -04:00
Jude Nelson
a82cd3cb1e
strategic garbage collection
2016-10-27 15:47:49 -04:00
Jude Nelson
6abc1f0644
remove dead code
2016-10-27 15:47:20 -04:00
Larry Salibra
83c5351282
undo whitespace changes
2016-10-28 00:57:56 +08:00
Larry Salibra
460e982929
fix variable name typo
2016-10-28 00:48:59 +08: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
71b082832a
remove commented-out code
2016-10-24 22:43:49 -04:00
Jude Nelson
ec02bc89a6
comment on what offset/count mean when selecting modifier operations
...
from a block.
2016-10-24 22:43:25 -04:00
Jude Nelson
6b6c1f3aad
queries for the number of names, number of names by namespace, and block
...
heights with name operations
2016-10-24 17:10:27 -04:00
Jude Nelson
a18028589e
get number of names and number of names in a namespace; fix bugs found
...
in testing
2016-10-24 17:08:45 -04:00
Jude Nelson
7929d100d9
calculate the SNV block operations hash at each block
2016-10-24 03:21:26 -04:00
Jude Nelson
9c61836944
update the calls that query historic name operations to allow the caller
...
to page through the history. Also, pre-calculate the SNV block
operation hash, since it never changes and it's expensive to calculate
on-the-fly.
2016-10-24 03:20:36 -04:00
Jude Nelson
432d70d57b
Refactor the db to make expensive queries pageable, so we don't
...
overwhelm the node with one bad RPC. In particular, make
it so the caller can page through the list of operations that occurred
at a particular block (so the caller can fetch them in small batches),
and make it possible to query the history table directly.
2016-10-24 03:18:47 -04:00
Jude Nelson
d70f003ec2
remove unused code
2016-10-13 20:47:32 -04:00
Jude Nelson
e62739c1e4
take out gratuitous timestamps
2016-10-13 20:47:11 -04:00
Jude Nelson
42a9d9feb2
when looking for points in the blockchain where a name was updated, do
...
not forget to select on the name itself (lest we read the whole database
into RAM)
2016-10-13 20:20:31 -04:00
Jude Nelson
d4a9b365e9
expand role of method to fetch zonefile information from the name
...
database
2016-10-11 08:15:08 -04:00
Jude Nelson
333fee0fe7
use a huge timeout for db connections
2016-10-10 12:51:18 -04:00
Jude Nelson
4a8de8c118
add namedb_get_last_nameops() and namedb_get_blocks_with_ops()
2016-10-10 12:02:57 -04:00
Jude Nelson
c5f1029a96
use namedb_get_blocks_with_ops() as a more efficient version of
...
namedb_get_history_range(), and add get_last_nameops()
2016-10-10 12:02:33 -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
4233614110
take an optional lastblock when determining whether or not a preorder is
...
"new"
2016-09-28 20:26:01 -04:00
Jude Nelson
438647fea2
update preorder schema to include the txid as well as preorder hash, so
...
we don't violate the uniqueness constraint if someone reuses the same
key
2016-09-28 19:54:00 -04:00
Jude Nelson
c57bfab3bd
pass -1 for offset/length if not known or we don't care (don't use None)
2016-09-16 17:46:14 -04:00
Jude Nelson
b7f0b5ae9e
when getting all names or names in a namespace, just get the names
...
themselves.
2016-09-16 17:45:24 -04:00
Jude Nelson
e9af1f6406
be pedantic: close the DB handle when we're done with it
2016-09-14 18:17:02 -04:00
Jude Nelson
61ba8eb3a2
inform virtualchain of our read-only intent
2016-09-14 16:12:43 -04:00