Commit Graph

6504 Commits

Author SHA1 Message Date
Jude Nelson
a24fc113fb make sure prices for namespaces get reduced in epoch3 2017-09-29 00:49:35 -04:00
Jude Nelson
8aba537fe2 make sure renew/xfer/update is blocked by the safety features until epoch3 starts 2017-09-29 00:49:35 -04:00
Jude Nelson
35e8b2ed6e make sure that register/update gets blocked by the safety checks until epoch3 activates 2017-09-29 00:49:35 -04:00
Jude Nelson
67117620e1 check for atlas zone file hashes on name register and name renew 2017-09-29 00:49:35 -04:00
Jude Nelson
c13c398411 update block times as to when epochs take place 2017-09-29 00:49:35 -04:00
Jude Nelson
5563bfbe6a update safety checks so we don't allow epoch3 operations until the hard-fork date 2017-09-29 00:49:35 -04:00
Jude Nelson
f8f9d9c500 check_renewal() takes the new address as the transfer_address kwarg 2017-09-29 00:49:35 -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
5834fa27d8 do not need pybitcoin 2017-09-29 00:49:35 -04:00
Jude Nelson
5d3e941626 remove pybitcoin dependency 2017-09-29 00:49:35 -04:00
Jude Nelson
d65269d5bd burn_address is an indirect consensus field 2017-09-29 00:49:35 -04:00
Jude Nelson
9dc2251356 update NAME_RENEWAL tx-creation API to take a burn address 2017-09-29 00:49:35 -04:00
Jude Nelson
e086551a40 update NAME_PREORDER tx-creation API to take a burn address 2017-09-29 00:49:35 -04:00
Jude Nelson
1d9d173954 update NAMESPACE_REVEAL tx-creation API to take version bits 2017-09-29 00:49:35 -04:00
Jude Nelson
cb28a1b5de define namespace version bits 2017-09-29 00:49:35 -04:00
Jude Nelson
5680e22af7 isolate burn-address calculation; have NAME_RENEwAL select the right burn address automatically 2017-09-29 00:49:35 -04:00
Jude Nelson
5c22105684 when preordering a name, make sure to select the right burn address. Also, API sync with transaction creation logic 2017-09-29 00:49:35 -04:00
Jude Nelson
5054fe9562 on NAMESPACE_REVEAL, accept pay-to-burn-address versus pay-to-namespace-creator modes 2017-09-29 00:49:35 -04:00
Jude Nelson
86776315de remove unused code 2017-09-29 00:49:35 -04:00
Jude Nelson
ba6379df18 After F-day 2017, a NAME_REGISTRATION and NAME_RENEWAL may correspond to a namespace that requires the user pay the namespace creator (a version-2 namespace). Enforce this at the consensus level---a NAME_REGISTRATION and NAME_RENEWAL are only valid in a version-2 namespace if the user paid the namespace creator 2017-09-29 00:49:35 -04:00
Jude Nelson
9caa75e0fd extract burn address and outputs from the transaction; remember the burn address to validate NAME_REGISTRATIONs and NAME_RENEWALs that follow 2017-09-29 00:49:33 -04:00
Jude Nelson
b3246f9b35 after F-day 2017, allow version-2 namespaces (which allow pay-to-creator for name registration). Update the consensus logic to (1) check for version-2 if we're in the relevant epoch, and if so, require users to send their name fees to the NAMESPACE_PREORDER's payment address 2017-09-29 00:49:32 -04:00
Jude Nelson
97cd614921 back up burn address on NAMESPACE_REVEAL; obtain burn address from outputs; obtain fee from outputs 2017-09-29 00:49:31 -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
0f50609d4e define pay-to-burn versus pay-to-creator namespace version bits 2017-09-29 00:49:26 -04:00
Jude Nelson
3a3c015c6f take alternative namespace version bits 2017-09-29 00:49:26 -04:00
Aaron Blankstein
7698e315b7 Update interactive_regtest_macos.md
Fix merge
2017-09-29 00:49:26 -04:00
Jack Zampolin
3720585b11 Quick change 2017-09-29 00:49:26 -04:00
Aaron Blankstein
a83f868c9c add -y flag to apt update in Dockerfiles 2017-09-29 00:49:26 -04:00
Jude Nelson
0824399253 preorder, register/update, update 2017-09-29 00:49:26 -04:00
Jude Nelson
f808f913f7 preorder, register/update, transfer 2017-09-29 00:49:26 -04:00
Jude Nelson
f25c2d91c3 preorder, register/update, renew/transfer/update 2017-09-29 00:49:26 -04:00
Jude Nelson
e92d36bffe preorder, register/update, expire, re-register/update 2017-09-29 00:49:26 -04:00
Jude Nelson
7be42285f0 preorder, register/update 2017-09-29 00:49:26 -04:00
Jude Nelson
125a4f4aa2 preorder, register, transfer, renew/transfer/update 2017-09-29 00:49:26 -04:00
Jude Nelson
c623b61a9b test register/update after register, update, expire. 2017-09-29 00:49:26 -04:00
Jude Nelson
19e93da098 test renew/transfer/update 2017-09-29 00:49:26 -04:00
Jude Nelson
fb6554730a use segwit branch 2017-09-29 00:49:26 -04:00
Jude Nelson
a657288cf4 activate segwit at the right time 2017-09-29 00:49:26 -04:00
Jude Nelson
b57f70a08b typo 2017-09-29 00:49:26 -04:00
Jude Nelson
d7465bd1c1 fix call to initialize segwit wallet 2017-09-29 00:49:26 -04:00
Jude Nelson
81a274210b include zonefile hash in name register/renew op return 2017-09-29 00:49:26 -04:00
Jude Nelson
14b7c15f24 max op-return is 80 bytes 2017-09-29 00:49:26 -04:00
Jude Nelson
3ba220b45b consider value hash in fee estimation (since it changes the length of the transaction for register and renew) 2017-09-29 00:49:26 -04:00
Jude Nelson
71ec76c901 pass along value hash and name owner in renewal and registration 2017-09-29 00:49:26 -04:00
Jude Nelson
a447cabb3e use new price table for namespace price calculation 2017-09-29 00:49:26 -04:00
Jude Nelson
28b2e49c37 allow register to include a zone file hash; allow renew to include a zone file hash and a new recipient. 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