Commit graph

20572 commits

Author SHA1 Message Date
Gregory Sanders
ffec60954d Replace fedpeg template init check for pak one 2019-09-06 10:24:00 -04:00
Gregory Sanders
8dc1de4db4 Update python test framework for DynaFedParamEntry fedpeg program 2019-09-06 10:24:00 -04:00
Gregory Sanders
d3d2bc3dad Add functional test for illegal proposals 2019-09-06 10:24:00 -04:00
Gregory Sanders
25bdb0a856 Update dynafed functional test to new behavior 2019-09-06 10:24:00 -04:00
Gregory Sanders
04cadcd689 fixup proposal checks 2019-09-06 10:24:00 -04:00
Gregory Sanders
0a21f531ae getnewblockhex fills out proposal fedpeg program 2019-09-06 10:24:00 -04:00
Gregory Sanders
1892b67f99 Make future parent segwit versions in fedpegscripts be vacuously true 2019-09-06 10:24:00 -04:00
Gregory Sanders
1122fc28af Add dynafed proposal restrictions 2019-09-06 10:24:00 -04:00
Gregory Sanders
69e881a597 Add description of NextBlockIsParameterTransition 2019-09-06 10:24:00 -04:00
Gregory Sanders
a7bb36f6cf Remove misleading comment for ContextualCheckDynaFedHeader use 2019-09-06 10:24:00 -04:00
Gregory Sanders
b7aaf4be9e Add fedpeg_program field in dynafed header 2019-09-06 10:24:00 -04:00
Gregory Sanders
cc2f57a960 CreatePAKListFromExtensionSpace just uses FromBytes for correctness 2019-09-06 10:24:00 -04:00
Gregory Sanders
7e4f88b688 Remove short-circuit dynafed vote fail for readability 2019-09-06 10:24:00 -04:00
Gregory Sanders
285daab400 s/m_dyna_params/m_dynafed_params/ 2019-09-06 10:24:00 -04:00
Gregory Sanders
e963834d27 Light explanation of dynamic federations fields 2019-09-06 10:24:00 -04:00
Gregory Sanders
8f12b617fc s/ConsensusParamEntry/DynaFedParamEntry/ 2019-09-06 10:24:00 -04:00
Gregory Sanders
6ddf46cde1 s/m_sbs_wit_limit/m_signblock_witness_limit/ 2019-09-06 10:24:00 -04:00
Gregory Sanders
1d1cf23fd2 s/HF_MASK/DYNAFED_HF_MASK/ 2019-09-06 10:24:00 -04:00
Gregory Sanders
5e2aca1b9d s/d_params/dynafed_params/ 2019-09-06 10:24:00 -04:00
Gregory Sanders
4829b3a88c signrawtransaction* should use up to date fedpegscript for peg-in signing 2019-09-06 10:24:00 -04:00
Gregory Sanders
8bd702784b Dynafed RPC support, tests, and deployment for custom chains 2019-09-06 10:24:00 -04:00
Gregory Sanders
f08756b5d7 OP_TRUE outputs should be allowed to be segwit-ified by decodescript 2019-09-06 10:06:44 -04:00
Gregory Sanders
2eded09b6a Have removeForBlock boot transactions when required 2019-09-06 10:06:44 -04:00
Gregory Sanders
0cfe03bec4 Expose fedpeg fetching to consensus and mempool internals 2019-09-06 10:06:44 -04:00
Gregory Sanders
b00515e223 GetTransactionSigOpCost shouldn't need fedpegscript to evaluate 2019-09-06 10:06:44 -04:00
Gregory Sanders
b096f8ddac Add and update startup args for dynafed 2019-09-06 10:06:44 -04:00
Gregory Sanders
8436710b4a Add unused dynamic genesis block style in chainparams 2019-09-06 10:06:44 -04:00
Gregory Sanders
f2e3495d60 Create epoch length chainparam 2019-09-06 10:06:44 -04:00
Gregory Sanders
85467c06ce Set default of multi_data_permitted to enforce_pak 2019-09-06 10:06:44 -04:00
Gregory Sanders
e1474d1bc7 Correct comment about liquidv1 fedpeg matching template 2019-09-06 10:06:44 -04:00
Gregory Sanders
4818e5e2b4 Miner should stop trying to account for old PAK system 2019-09-06 10:06:44 -04:00
Gregory Sanders
f277ec52f1 Add miner ability to make dynafed blocks 2019-09-06 10:06:44 -04:00
Gregory Sanders
f5e46328ee ContextualCheckBlockHeader: dynafed doesn't call CheckChallenge 2019-09-06 10:06:44 -04:00
Gregory Sanders
fb333b3ed8 Introduce contextual block checks for dynafed 2019-09-06 10:06:44 -04:00
Gregory Sanders
8f2194c901 Enable pak enforcement at mempool/block level when appropriate 2019-09-06 10:06:44 -04:00
Gregory Sanders
fac525bac6 ScriptHasValidPAKProof takes fedpeg as arg 2019-09-06 10:06:44 -04:00
Gregory Sanders
144d486220 Remove old mempool-booting logic 2019-09-06 10:06:44 -04:00
Gregory Sanders
1c7782451a Remove standardness checks for PAK 2019-09-06 10:06:44 -04:00
Gregory Sanders
a306c0c6ec Update PAK internals, helper functions 2019-09-06 10:06:44 -04:00
Gregory Sanders
60d4093eb9 Disable PAK loading from configuration on init, disable pak test 2019-09-06 10:06:44 -04:00
Gregory Sanders
5e273e806e Add inactive versionbits dynafed deployment 2019-09-06 10:06:44 -04:00
Gregory Sanders
1f470d3201 ReadBlockFromDisk: do genesis block check before block proof check 2019-09-06 10:06:44 -04:00
Gregory Sanders
cd5d87cbcd Bump last old block version for versonbits due to elements 2019-09-06 10:06:44 -04:00
Gregory Sanders
86ed316bc7 Add python implementation of dynafed block serialization 2019-09-06 10:06:44 -04:00
Gregory Sanders
7ec6c53503 Deserialize merkle proofs without witness, which matters for dynafed 2019-09-06 10:06:44 -04:00
Gregory Sanders
af485a8182 Add fedpegscript-fetching helper 2019-09-06 10:06:44 -04:00
Gregory Sanders
d1207bdd9b calculate_contract: remove most template checks and assert in preperation for dynafed 2019-09-06 10:06:44 -04:00
Gregory Sanders
21cf128439 Add note on peg-in sigops 2019-09-06 10:06:44 -04:00
Gregory Sanders
c37a8fe88b Add dynafed helper functions 2019-09-06 10:06:44 -04:00
Gregory Sanders
fa1f497a24 Refactor block_proof to support dynafed 2019-09-06 10:06:44 -04:00