Commit Graph

10921 Commits

Author SHA1 Message Date
Scott Sadler
76b5216cf6 remove cryptoconditions submodule 2018-03-12 17:54:30 -03:00
Scott Sadler
bd7ecdec06 fix build, allow 0 priority 2018-03-12 17:27:50 -03:00
Scott Sadler
a8acafb354 test suite for replacementPool 2018-03-12 01:57:35 -03:00
Scott Sadler
346eb4ae25 small refactor 2018-03-09 09:40:31 -03:00
Scott Sadler
1fe68cf52a process orphan transactions after processing replacements 2018-03-08 23:01:00 -03:00
Scott Sadler
e102037e61 cleanup transaction replacement return codes 2018-03-08 16:35:39 -03:00
Scott Sadler
2b2c75de29 basic implementation of transaction replacement. requires cleanup and testing 2018-03-08 15:15:01 -03:00
Scott Sadler
80ea0d26b0 latest cryptoconditions 2018-02-26 02:10:58 -03:00
Scott Sadler
7d937f290e add secp256k1 condition type to cryptoconditions 2018-02-24 19:43:37 -03:00
Scott Sadler
46d1bcc607 integration test for complex aux condition 2018-02-22 01:43:43 -03:00
Scott Sadler
db2df2c37b integration test for basic aux condition 2018-02-22 00:59:15 -03:00
Scott Sadler
691b8708f1 Komodo CC aux callback has access to transaction via checker 2018-02-21 19:28:52 -03:00
Scott Sadler
73b9e32b9d update to latest libcryptoconditions 2018-02-21 14:10:42 -03:00
Scott Sadler
85b55ada89 use public github url 2018-02-19 21:13:05 -03:00
Scott Sadler
f5cf215f71 extra tests for failure modes and remove CRYPTOCONDITION_OVERSIZE error state 2018-02-19 18:24:12 -03:00
Scott Sadler
656fa68d13 guard cryptoconditions 2018-02-18 20:40:24 -03:00
Scott Sadler
28b946127b make IsPayToCryptoCondition neat 2018-02-18 19:35:48 -03:00
Scott Sadler
5a7cc8287b Merge remote-tracking branch 'origin/dev' into cryptoconditions 2018-02-18 19:25:52 -03:00
jl777
052f006800 ASSETCHAINS_CC 2018-02-19 00:08:02 +02:00
jl777
253cd526ac MAX_MONEY to handle mining chains 2018-02-18 23:59:52 +02:00
Scott Sadler
5b383ba7f4 enable cryptoconditions spending 2018-02-18 18:49:04 -03:00
Jonathan "Duke" Leto
c989bc86e3 Read hashReserved from disk instead of assuming 0
Related to https://github.com/zcash/zcash/pull/2931
2018-02-17 20:45:00 -08:00
Scott Sadler
a99ca25a5a cryptocondition transaction is standard too 2018-02-17 02:03:34 -03:00
Scott Sadler
a01d0f5672 remove rpc crypto conditions 2018-02-16 14:24:38 -03:00
jl777
fc5bee9e14 -print 2018-02-14 00:57:33 +02:00
jl777
036a250c6e Test 2018-02-13 23:04:01 +02:00
jl777
e8a05f61f0 Test 2018-02-13 23:00:15 +02:00
jl777
8eaa7b03cc Test 2018-02-13 22:57:25 +02:00
jl777
148e99adac Test 2018-02-13 22:55:14 +02:00
jl777
9c7d2832f1 Test 2018-02-13 22:54:45 +02:00
jl777
85ef725a7d Test 2018-02-13 22:52:45 +02:00
jl777
e34a9d43fe Fix 2018-02-13 22:42:34 +02:00
jl777
e169b65ff0 New features in testing
New komodod -ac parameters for assetchains. If -ac_reward=<satoshis> is
non-zero, the chain will mine normally and start with -ac_reward for
the block reward.

if -ac_end=<endheight> is set, then -ac_reward will be 0 after
endheight is reached

if -ac_halving=<halvingperiod> is set, then every <halvingperiod>
blocks the block reward is reduced according to one of three methods.
1440 (approx a day) is the most frequent halving period

if -ac_decay is not set, then the normal bitcoin halving is done.

if -ac_decay=<numerator> is set to be exactly 100000000, then the
-ac_reward is scaled linearly toward 0, with 0 at endheight.

for all other values of numerator (less than 100000000) the reward is
iteratively reduced by the number of "halving" periods, ie.
	numhalvings = (height / -ac_halving);
	for (i=0; i<numhalvings; i++)
		reward = (reward * -ac_decay) / 100000000;

if -ac_perc=<satoshis> is nonzero and less than equal 100000000 and
-ac_pubkey=<secp_pubkey33> is set to a 33byte hexstr (len 66 starting
with 02 or 03) then there will be a second vout in the coinbase
transaction that is exactly the commission rate indicated by -ac_perc,
with 100000000 being the max of 100%. wallets will need to be
customized to make sure to pay the -ac_perc of transaction size as
txfee. chains with a percentage override can only be mined by the
-ac_pubkey address

bitcoin behavior would be -ac_reward=5000000000 -ac_halving=210000

KMD behavior would be -ac_reward = 300000000 -ac_end=7777777

a more smoothly reducing reward that halves every 210000 blocks would
be:

 -ac_reward=5000000000 -ac_halving=10000 -ac_decay=96777000

This release also supports a second slate of hardcoded notaries
2018-02-13 22:37:47 +02:00
jl777
ae0bb3d3c3 Test 2018-02-13 22:36:44 +02:00
jl777
698c5e7e94 Test 2018-02-13 22:34:29 +02:00
jl777
ac756fd8bb Test 2018-02-13 22:32:14 +02:00
jl777
da7b748e6b Test 2018-02-13 22:30:59 +02:00
jl777
6b1d77f585 Test 2018-02-13 22:27:18 +02:00
jl777
d209491abf Test 2018-02-13 22:25:30 +02:00
jl777
3ca78e0142 Test 2018-02-13 22:06:20 +02:00
jl777
94a465a6e9 Test 2018-02-13 21:59:39 +02:00
jl777
6e94384f91 Test 2018-02-13 21:37:32 +02:00
jl777
53a94b280d Test 2018-02-13 21:34:09 +02:00
jl777
9757c8f97e Test 2018-02-13 21:33:49 +02:00
jl777
8683bd8d11 Debugging 2018-02-13 21:29:42 +02:00
jl777
8f8b5a2ac6 -SHARK 2018-02-10 21:42:04 +02:00
jl777
de615b43f7 Disable price feed 2018-02-10 15:12:32 +02:00
Scott Sadler
6e821110fd auxiliary cryptoconditions 2018-02-06 18:37:08 -03:00
jl777
8b6a0cb8be Stupid accounts 2018-02-02 20:59:09 +02:00
jl777
2d8bd77a05 Test 2018-02-02 13:44:57 +02:00