Commit graph

20560 commits

Author SHA1 Message Date
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
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
01b6302559
Merge #698: [0.18 backport] Qt fixes post 18
fdc365e9c Fix QT transaction blinding details being committed to wallet (Gregory Sanders)
523a7e9d6 Fix QT startup for custom chains (Gregory Sanders)

Pull request description:

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

Tree-SHA512: e2896e557828fa30634a2eb0fe75e90ab1b9d1ca51726fe8199a021a757c49e95fc5b1fb43f5f81162f3698cb759680b613c11b3ec507a37a046ffa2c326a665
2019-09-03 10:10:27 -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
Gregory Sanders
1cd81acdd7
Merge #691: Catch up with core v0.18 branch
27021e555 linter: translation empty lines (Gregory Sanders)
324834724 fix linter for python tests (Gregory Sanders)
e05bc1646 fix blocksign.py test (Gregory Sanders)
5f37adb39 WIP fix blocksign (Steven Roose)
b655c7b06 Update compatibility functional tests (Steven Roose)
0d33dcd4d wip fix functional tests (Steven Roose)
6e4c23342 Add manpages for elements binaries (Steven Roose)
182c7b0dd Fix build (Steven Roose)
576580fe8 [test] walletcreatefundedpsbt: check RBF is disabled when -walletrbf=0 (Sjors Provoost)
0942a60c0 [doc] rpc: remove "fallback to" from RBF default help (Sjors Provoost)
ee950ec46 [rpc] walletcreatefundedpsbt: use wallet default RBF (Sjors Provoost)
80cd3f0ba travis: Bump timeout from 50 minutes to 90 (MarcoFalke)
5aac5e9b0 travis: Bump second timeout to 33 minutes, Add rationale (MarcoFalke)
2c341e347 travis: Properly cache and error on timeout (MarcoFalke)
bbc297008 doc: Clean out release notes post-0.18.1 (Wladimir J. van der Laan)
fa27a0760 doc: Bump manpages pre-final (Wladimir J. van der Laan)
bfa7183c4 build: set CLIENT_VERSION_RC to 0 pre-final (Wladimir J. van der Laan)
5f5b444cc Doc: remove old release notes about systemd and riscv changes (David A. Harding)
784e21861 doc: Update release notes for rc1 (Wladimir J. van der Laan)
a6cba1983 doc: Update manpages for rc1 (Wladimir J. van der Laan)
aa2d12a59 build: Bump version to 0.18.1rc1 (Wladimir J. van der Laan)
641b2ffb4 qt: pre-rc1 translations update (Wladimir J. van der Laan)
063c8ce7a net: Make poll in InterruptibleRecv only filter for POLLIN events. poll should block until there is data to be read or the timeout expires. (tecnovert)
b2711b98b fix: tor: Call event_base_loopbreak from the event's callback (João Barbosa)
df695db32 qt: Assert QMetaObject::invokeMethod result (João Barbosa)
e2f7677bd gui: Fix missing qRegisterMetaType(WalletModel*) (João Barbosa)
1dc357dab signrawtransactionwithkey: report error when missing redeemScript/witnessScript param (Anthony Towns)
bcb27d7b0 .python-version: Bump to 3.5.6 (MarcoFalke)
af25a757e Add comments to Python ECDSA implementation (John Newbery)
715da91e9 Set AA_EnableHighDpiScaling attribute early (Hennadii Stepanov)
2800b3d5c gui: Fix open wallet menu initialization order (João Barbosa)
e78007fc1 Make and get the multisig redeemscript and destination in one function instead of two (Andrew Chow)
d9fc969e7 Pure python EC (Pieter Wuille)
23ba460c1 test: Add test that addmultisigaddress fails for watchonly addresses (MarcoFalke)
13b3bb564 test: Fixup creatmultisig documentation and whitespace (MarcoFalke)
79745d175 Replace remaining fprintf with tfm::format manually (MarcoFalke)
beb09f09b scripted-diff: Replace fprintf with tfm::format (MarcoFalke)
e29aa6e72 Exceptions should be caught by reference, not by value. (Kristaps Kaupe)
f88959ba7 tinyformat: Add doc to Bitcoin Core specific strprintf (MarcoFalke)
0023c9789 rpc: bugfix: Properly use iswitness in converttopsbt (MarcoFalke)
832eb4ff5 Bugfix: test/functional/rpc_psbt: Correct test description comment (Luke Dashjr)
966d8d084 Bugfix: test/functional/rpc_psbt: Remove check for specific error message that depends on uncertain assumptions (Luke Dashjr)
bb36ac82e rpc: Switch touched RPCs to IsValidNumArgs (MarcoFalke)
d24d0ec05 Add example 2nd arg to signrawtransactionwithkey (Chris Moore)
592016ba1 fixup: Fix prunning test (João Barbosa)
c80a498ae Fix RPC/pruneblockchain returned prune height (Jonas Schnelli)
b2398240f gui: Enable open wallet menu on setWalletController (João Barbosa)
d1f261150 Add test for GCC bug 90348 (Pieter Wuille)
d80c558e0 gui: Set progressDialog to nullptr (João Barbosa)
7ed1a6019 gui: Enable console line edit on setClientModel (João Barbosa)
b55cbe82d qt: fix opening bitcoin.conf via Preferences on macOS; see #15409 (shannon1916)
b6c1f9478 Disallow extended encoding for non-witness transactions (take 3) (MarcoFalke)
86031083c Add test for superfluous witness record in deserialization (Gregory Sanders)
5a58ddb6d Fix missing input template by making minimal tx (Gregory Sanders)
206f5ee87 Disallow extended encoding for non-witness transactions (Pieter Wuille)
3dbc7def0 Show loaded wallets as disabled in open menu instead of nothing (MeshCollider)
a635377b6 Install bitcoin-wallet manpage. (Daniel Kraft)
eb85ee62b Doc: remove text about txes always relayed from -whitelist (David A. Harding)
890a92eba doc: Mention blocksonly in reduce-traffic.md, unhide option (MarcoFalke)
3460555f4 test: Add test for p2p_blocksonly (MarcoFalke)
8f215c7a2 test: Format predicate source as multiline on error (MarcoFalke)
9c1a607a0 net: Rename ::fRelayTxes to ::g_relay_txes (MarcoFalke)
5935f0126 build with -fstack-reuse=none (MarcoFalke)

Pull request description:

  Includes commits up to Core 0.18.1 release

Tree-SHA512: 05668dc1fcfb303aab309bb1fb64ac3599467397ca6480b5cfd231659167f015947a62975cd5a332aada80d26a48719ca2ee9f5ef1463cc4755e014af8fc3f94
2019-08-22 10:35:45 -04:00
Gregory Sanders
27021e5554 linter: translation empty lines 2019-08-21 16:12:33 -04:00
Gregory Sanders
324834724b fix linter for python tests 2019-08-21 16:09:06 -04:00