Commit graph

20404 commits

Author SHA1 Message Date
Gregory Sanders
f7905d6dfb Generalize the number of epochs old a peg-in can be and still be valid 2019-09-05 10:51:09 -04:00
Gregory Sanders
b105ff45e5 feature_fedpeg.py: Run in various dynafed transition settings 2019-09-05 10:51:09 -04:00
Gregory Sanders
feef196a20 Fix compilation of raw transaction operations with peg-in inputs 2019-09-05 10:51:09 -04:00
Gregory Sanders
953dd82eae p2sh-wrap peg-in addresses if fedpeg_program is p2sh-wrapped 2019-09-05 10:51:09 -04:00
Gregory Sanders
e2be2356dd Refactor IsPAKValid to not magically acquire chainparams 2019-09-05 10:51:09 -04:00
Gregory Sanders
ecdefc5cb0 Remove script/standard dependence of ContextualCheckDynaFedHeader 2019-09-05 10:51:09 -04:00
Gregory Sanders
59bed57a12 Remove dyanfed.cpp's dependency on script/standard.h 2019-09-05 10:51:09 -04:00
Gregory Sanders
50a2b599ca After a reorg, boot all peg-ins and peg-outs from mempool 2019-09-05 10:51:09 -04:00
Gregory Sanders
6000752a92 Enforce PAK checks on dynafed proposals 2019-09-05 10:51:09 -04:00
Gregory Sanders
dce4cecdda Replace fedpeg template init check for pak one 2019-09-05 10:51:09 -04:00
Gregory Sanders
afdf0239ba Update python test framework for DynaFedParamEntry fedpeg program 2019-09-05 10:51:09 -04:00
Gregory Sanders
95d8339f43 Add functional test for illegal proposals 2019-09-05 10:51:09 -04:00
Gregory Sanders
1baad6bf5a Update dynafed functional test to new behavior 2019-09-05 10:51:09 -04:00
Gregory Sanders
a3cf151de1 fixup proposal checks 2019-09-05 10:51:09 -04:00
Gregory Sanders
04cc76743e getnewblockhex fills out proposal fedpeg program 2019-09-05 10:51:09 -04:00
Gregory Sanders
44f55d36c0 Make future parent segwit versions in fedpegscripts be vacuously true 2019-09-05 10:51:09 -04:00
Gregory Sanders
d7faffdca6 Add dynafed proposal restrictions 2019-09-05 10:51:09 -04:00
Gregory Sanders
37f90ba508 Add description of NextBlockIsParameterTransition 2019-09-05 10:51:09 -04:00
Gregory Sanders
d9387cb5d5 Remove misleading comment for ContextualCheckDynaFedHeader use 2019-09-05 10:51:09 -04:00
Gregory Sanders
bd11097cec Add fedpeg_program field in dynafed header 2019-09-05 10:51:09 -04:00
Gregory Sanders
4ad2b8018d CreatePAKListFromExtensionSpace just uses FromBytes for correctness 2019-09-05 10:51:09 -04:00
Gregory Sanders
6a5eaa189a Remove short-circuit dynafed vote fail for readability 2019-09-05 10:51:09 -04:00
Gregory Sanders
dddc040aa0 s/m_dyna_params/m_dynafed_params/ 2019-09-05 10:51:09 -04:00
Gregory Sanders
6ed63c1fb3 Light explanation of dynamic federations fields 2019-09-05 10:51:09 -04:00
Gregory Sanders
15996384d4 s/ConsensusParamEntry/DynaFedParamEntry/ 2019-09-05 10:51:09 -04:00
Gregory Sanders
642260a126 s/m_sbs_wit_limit/m_signblock_witness_limit/ 2019-09-05 10:51:09 -04:00
Gregory Sanders
b66804678c s/HF_MASK/DYNAFED_HF_MASK/ 2019-09-05 10:51:09 -04:00
Gregory Sanders
0fd39edf54 s/d_params/dynafed_params/ 2019-09-05 10:51:09 -04:00
Gregory Sanders
1779956e69 signrawtransaction* should use up to date fedpegscript for peg-in signing 2019-09-05 10:51:09 -04:00
Gregory Sanders
47db75e39f Dynafed RPC support, tests, and deployment for custom chains 2019-09-05 10:51:09 -04:00
Gregory Sanders
aac354b5ba OP_TRUE outputs should be allowed to be segwit-ified by decodescript 2019-09-03 10:55:29 -04:00
Gregory Sanders
055514b688 Have removeForBlock boot transactions when required 2019-09-03 10:55:29 -04:00
Gregory Sanders
525b24cf5c Expose fedpeg fetching to consensus and mempool internals 2019-09-03 10:55:29 -04:00
Gregory Sanders
4ac437b87c GetTransactionSigOpCost shouldn't need fedpegscript to evaluate 2019-09-03 10:55:29 -04:00
Gregory Sanders
5097c3880c Add and update startup args for dynafed 2019-09-03 10:55:28 -04:00
Gregory Sanders
24535d6a9f Add unused dynamic genesis block style in chainparams 2019-09-03 10:55:09 -04:00
Gregory Sanders
d10c42a26e Create epoch length chainparam 2019-09-03 10:55:09 -04:00
Gregory Sanders
b996a425e1 Set default of multi_data_permitted to enforce_pak 2019-09-03 10:55:06 -04:00
Gregory Sanders
f6f6308c93 Correct comment about liquidv1 fedpeg matching template 2019-09-03 10:55:06 -04:00
Gregory Sanders
4c00eb4084 Miner should stop trying to account for old PAK system 2019-09-03 10:55:06 -04:00
Gregory Sanders
0e10287f7a Add miner ability to make dynafed blocks 2019-09-03 10:55:06 -04:00
Gregory Sanders
5d281e7e68 ContextualCheckBlockHeader: dynafed doesn't call CheckChallenge 2019-09-03 10:55:06 -04:00
Gregory Sanders
9fe43cdf86 Introduce contextual block checks for dynafed 2019-09-03 10:55:06 -04:00
Gregory Sanders
3605505c94 Enable pak enforcement at mempool/block level when appropriate 2019-09-03 10:55:06 -04:00
Gregory Sanders
802a055191 ScriptHasValidPAKProof takes fedpeg as arg 2019-09-03 10:55:06 -04:00
Gregory Sanders
89174e9617 Remove old mempool-booting logic 2019-09-03 10:55:06 -04:00
Gregory Sanders
edb865cc2f Remove standardness checks for PAK 2019-09-03 10:55:06 -04:00
Gregory Sanders
804cd9f75f Update PAK internals, helper functions 2019-09-03 10:55:06 -04:00
Gregory Sanders
16b87ba951 Disable PAK loading from configuration on init, disable pak test 2019-09-03 10:55:06 -04:00
Gregory Sanders
918896d6ff Add inactive versionbits dynafed deployment 2019-09-03 10:55:06 -04:00