Commit graph

13668 commits

Author SHA1 Message Date
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
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
Gregory Sanders
0402da670a Add dynamic federation blockheader fields to chaindb serialization 2019-09-06 10:06:44 -04:00
Gregory Sanders
ab6e3e37f1 Add dynamic federations blockheader serialization with HF bit 2019-09-06 10:06:44 -04:00
Gregory Sanders
f49c0a6846 Define dynamic federations primitives 2019-09-06 10:06:44 -04:00
Gregory Sanders
8f1d783475
Merge #699: [0.18 backport] sendtomainchain with pak and subtract fee from output fix
299c3fc9f fix HelpExamplRPC port for liquidv1 vs bitcoin mainnet (Gregory Sanders)
e3b750da4 Fix sendtomainchain with pak when subtracting fee from output (Gregory Sanders)

Pull request description:

  backport of https://github.com/ElementsProject/elements/pull/696

Tree-SHA512: ad2b73f3d384998db2de581299afcfb75e41b5b6a17505cdf2492008671dbd06757a64f1b48fca055ef56128f8069fc5f722ef0341301e621df55a90422568f6
2019-09-03 10:11:35 -04:00
Gregory Sanders
299c3fc9f5
fix HelpExamplRPC port for liquidv1 vs bitcoin mainnet 2019-09-02 11:33:00 +01:00
Gregory Sanders
e3b750da4e
Fix sendtomainchain with pak when subtracting fee from output 2019-09-02 11:32:53 +01:00
Gregory Sanders
fdc365e9cc
Fix QT transaction blinding details being committed to wallet 2019-09-02 10:18:22 +01:00
Gregory Sanders
523a7e9d6c
Fix QT startup for custom chains 2019-09-02 10:18:16 +01:00