Jude Nelson
707e6a9086
move SNV consensus restoration logic to the client
2016-10-24 03:22:47 -04:00
Jude Nelson
22a84cbb78
track 'last_create_op' in the db
2016-10-24 03:22:28 -04:00
Jude Nelson
527e46ad6d
use the new 'last_creation_op' column instead of (expensively)
...
calculating it from the DB.
2016-10-24 03:21:47 -04:00
Jude Nelson
6a2639bc49
do not allow a name to be registered to a p2sh script until the multisig
...
support activates (this is to keep 0.14 consistent with 0.13 until then)
2016-10-04 18:16:50 -04:00
Jude Nelson
488d1ad1d3
do not allow a transfer sender to be a p2sh script until the multisig
...
support activates
2016-10-04 18:16:18 -04:00
Jude Nelson
46abc13e9a
improve error-path log messages a bit
2016-09-28 20:26:18 -04:00
Jude Nelson
22bdb8045c
whitespace
2016-09-25 23:47:38 -04:00
Jude Nelson
c4cf324e1b
register/renew can mutate op_fee, since the epoch can change between
...
preorder/register or register/renew. Also, when considering name
prices, use the preorder's block number (i.e. the epoch the preorder
occurred in determines the price to pay, not the register). For
renewals, however, use the current block height to determine the fee.
2016-09-12 17:59:35 -04:00
Jude Nelson
41c22f172a
remove dead code
2016-09-12 17:59:29 -04:00
Jude Nelson
f6d81c332d
back up op_fee, since it can change due to an epoch change
2016-09-12 17:59:14 -04:00
Jude Nelson
8e7c78f3d3
remove dead code
2016-09-09 16:55:30 -04:00
Jude Nelson
84266a9f2e
if re-revealing an expired namespace of the same name, reconstruct the
...
appropriate history snapshot first (i.e. the previous revealed state)
2016-09-09 16:55:01 -04:00
Jude Nelson
c6c8c9a4f9
API sync
2016-09-09 11:20:16 -04:00
Jude Nelson
f094d3cb1d
WIP: make expired namespace_reveals restorable
2016-09-09 11:19:56 -04:00
Jude Nelson
0143b7cb85
new price_name() API sync
2016-09-09 11:19:38 -04:00
Jude Nelson
60e82529fe
better history index notation in debug output
2016-09-09 11:19:23 -04:00
Jude Nelson
c4abd401e1
pass both the working db and untrusted db when calculating extra
...
consensus fields (since the untrusted db might not have the data we
need when verifying). Also, when calculating consensus quirks, check if
a name operation is the first NAME_IMPORT for a name in order to handle
the NAME_IMPORT fee quirk correctly.
2016-09-07 11:08:06 -04:00
Jude Nelson
fefce0537d
log which code path we take
2016-09-05 20:46:24 -04:00
Jude Nelson
1952b935e4
preserve the *first* preorder name hash when restoring consensus extras
2016-09-05 20:46:00 -04:00
Jude Nelson
51617feead
log the SNV quirks as we apply them
2016-09-05 20:45:45 -04:00
Jude Nelson
b9d46bf0e4
remove dead code; better debug statement
2016-09-04 17:22:53 -04:00
Jude Nelson
692319b263
Merge sqlite3 into develop. Mostly refactoring: move operation
...
parsing, validation, and consensus logic into the individual operation's
.py file.
2016-09-02 00:20:24 -04:00
Jude Nelson
c93390ef0e
sqlite3 merger: add much more rigorous operation-checking:
...
* identify and preserve invariant properties that must hold across name
state-transitions (like no-collisions, or limiting fields that can
change).
* add history validation
* identify consensus-bearing fields, and how each state-creation or
state-transition may affect them (and add runtime checks to see that
they only affect the fields we say they will)
* add decorators that we can apply to name operations to enforce the
above.
2016-09-02 00:16:36 -04:00
Jude Nelson
070e9b86de
period
2016-08-06 00:14:32 -04:00
Jude Nelson
bbdf3d214d
remove dead code
2016-07-08 16:37:23 -04:00
Jude Nelson
144d1dbe1d
remove dead code
2016-06-14 11:31:04 -04:00
Jude Nelson
011576a168
WIP: move most nameop handling to the client
2016-06-09 03:17:15 -04:00
Jude Nelson
daac6d43fa
BLOCKSTORE --> BLOCKSTACK
2016-06-06 17:44:33 -04:00
Jude Nelson
ee3e97e06f
Use new virtualchain log facility
2016-05-11 18:03:21 -04:00
Jude Nelson
0db2f7e76d
BLOCKSTACK_VERSION, not BLOCKSTORE_VERSION
2016-04-22 17:59:40 -04: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