Commit graph

1729 commits

Author SHA1 Message Date
Gregory Sanders
c79ad5fe0c getnewblockhex: Take data push for arbitrary data in block coinbase commitment 2019-10-28 14:22:37 -04:00
Gregory Sanders
7f0bd205ce Reduce min relay to 100 sat/vkB 2019-10-22 12:31:43 -04:00
Gregory Sanders
a40fdbedb3 modify p2p_feefilter test to catch rounding error 2019-10-22 12:31:40 -04:00
Gregory Sanders
128d7e0043 feature_blocksign.py: Allot for possibility of non-empty block 0.5RTT 2019-10-16 10:00:30 -04:00
Gregory Sanders
f7a41c5ff2 finalizecompactblock: Fix it, make test easier to fail 2019-10-11 09:26:32 -04:00
Gregory Sanders
5f628d5429 Sprinkle a bunch of syncs to avoid peg-in failure hanging 2019-10-09 15:30:59 -04:00
Gregory Sanders
87e80602f2 feature_fedpeg.py: just use testmempoolaccept checking blinded peg-in transactions 2019-10-09 15:30:54 -04:00
Steven Roose
651b28c4ca
Fix other bug in initpegoutwallet descriptor parsing 2019-09-30 18:57:51 +02:00
Steven Roose
19c477edea
Support descriptors with checksums in initpegoutwallet 2019-09-30 18:57:41 +02:00
Gregory Sanders
9add5a8442
Fix feature_pak.py in light of #706 2019-09-17 15:11:19 +01:00
Gregory Sanders
08eee04be8
RPC: Fix tweakfedpegscript for dynafed, add basic test 2019-09-10 17:56:10 +01:00
Gregory Sanders
d47a7e0814 feature_fedpeg.py: Run in various dynafed transition settings 2019-09-06 10:24:00 -04:00
Gregory Sanders
a7dc478ba2 After a reorg, boot all peg-ins and peg-outs from mempool 2019-09-06 10:24:00 -04:00
Gregory Sanders
9a3b9b9cfd Enforce PAK checks on dynafed proposals 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
285daab400 s/m_dyna_params/m_dynafed_params/ 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
8bd702784b Dynafed RPC support, tests, and deployment for custom chains 2019-09-06 10:24:00 -04:00
Gregory Sanders
85467c06ce Set default of multi_data_permitted to enforce_pak 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
86ed316bc7 Add python implementation of dynafed block serialization 2019-09-06 10:06:44 -04:00
Gregory Sanders
e3b750da4e
Fix sendtomainchain with pak when subtracting fee from output 2019-09-02 11:32:53 +01:00
Gregory Sanders
324834724b fix linter for python tests 2019-08-21 16:09:06 -04:00
Gregory Sanders
e05bc1646a fix blocksign.py test 2019-08-21 16:06:00 -04:00
Steven Roose
5f37adb392
WIP fix blocksign 2019-08-21 19:31:04 +01:00
Steven Roose
b655c7b068
Update compatibility functional tests
bitcoin_function
2019-08-21 19:31:03 +01:00
Steven Roose
0d33dcd4d5
wip fix functional tests 2019-08-21 19:31:01 +01:00
Steven Roose
6776a40611
Merge remote-tracking branch 'bitcoin/0.18' into elements-0.18 2019-08-21 19:30:53 +01:00
Glenn Willen
16beefa2d2
PSBT for Confidential Assets 2019-08-19 17:20:41 +01:00
Sjors Provoost
576580fe8a
[test] walletcreatefundedpsbt: check RBF is disabled when -walletrbf=0 2019-08-17 12:52:50 +02:00
Sjors Provoost
ee950ec465
[rpc] walletcreatefundedpsbt: use wallet default RBF 2019-08-17 12:52:50 +02:00
Anthony Towns
1dc357dabb signrawtransactionwithkey: report error when missing redeemScript/witnessScript param
Github-Pull: #16250
Rebased-From: 01174596e6
2019-07-05 14:45:04 +10:00
Gregory Sanders
33d3249d43 [MERGE FIX] fixup functional tests 2019-06-26 14:42:37 -04:00
Gregory Sanders
a7742ca3a2 Merge remote-tracking branch 'bitcoin-gh/0.18' into 0.18.0-backports 2019-06-26 11:58:58 -04:00
John Newbery
af25a757e0 Add comments to Python ECDSA implementation
Github-Pull: #15826
Rebased-From: b67978529a
2019-06-26 09:25:13 -04:00
Gregory Sanders
7b302eb99d
Merge #663: Add support for blinding pegins
cc49106 Update getnewaddress help message with "blech32" special case (Steven Roose)
56358b8 Add tests for blinding pegin transactions (Steven Roose)
a9f589b Add support for blinding pegin transactions (Steven Roose)
bf0cc83 Add confidential assets values to listunspent documentation (Steven Roose)
4e84596 Always return blind address for "blech32" type (Steven Roose)

Pull request description:

  Adds pegin handling support for `blindrawtransaction` and `rawblindrawtransaction`.

Tree-SHA512: 1138aeedd2d5852108abd53a6afc83524e5f06ad3ab770fd8ab37c97c8dd5c49f78b8d44bdf7cbe2c073e07cd8566bf032526ab6488e99fc02f8b5b154a3fde1
2019-06-21 11:05:24 -04:00
Andrew Chow
e78007fc1a Make and get the multisig redeemscript and destination in one function instead of two
Instead of creating a redeemScript with CreateMultisigRedeemscript and
then getting the destination with AddAndGetDestinationForScript, do
both in the same function.

CreateMultisigRedeemscript is changed to AddAndGetMultisigDestination.
It creates the redeemScript and returns it via an output parameter. Then
it calls AddAndGetDestinationForScript to add the destination to the
keystore and get the proper destination.

This allows us to inspect the public keys in the redeemScript before creating
the destination so that the correct destination is used when uncompressed
pubkeys are in the multisig.

Github-Pull: #16026
Rebased-From: a49503402b
2019-06-21 08:51:41 -04:00
Pieter Wuille
d9fc969e71 Pure python EC
This removes the dependency on OpenSSL for the interaction tests, by providing a pure-Python
toy implementation of secp256k1.

Github-Pull: #15826
Rebased-From: 8c7b9324ca
2019-06-21 08:51:41 -04:00
MarcoFalke
23ba460c1a test: Add test that addmultisigaddress fails for watchonly addresses
Github-Pull: #15831
Rebased-From: fab6a0a659
2019-06-21 08:17:20 -04:00
MarcoFalke
13b3bb5644 test: Fixup creatmultisig documentation and whitespace
Github-Pull: #15831
Rebased-From: fad81d870a
2019-06-21 08:17:19 -04:00
MarcoFalke
79745d1752 Replace remaining fprintf with tfm::format manually
Github-Pull: #16205
Rebased-From: fa8f195195
2019-06-18 15:50:40 -04:00
MarcoFalke
0023c97890 rpc: bugfix: Properly use iswitness in converttopsbt
Also explain the param in all RPCs

Github-Pull: #15899
Rebased-From: fa499b5f02
2019-06-18 09:34:10 -04:00
Luke Dashjr
832eb4ff54 Bugfix: test/functional/rpc_psbt: Correct test description comment
Github-Pull: #14818
Rebased-From: c87fc71f7e
2019-06-18 09:34:06 -04:00
Luke Dashjr
966d8d0842 Bugfix: test/functional/rpc_psbt: Remove check for specific error message that depends on uncertain assumptions
When converttopsbt is called with a signed transaction, it either fails with "TX decode failed" if one or more inputs were segwit, or "Inputs must not have scriptSigs and scriptWitnesses" otherwise.
Since no effort is made by the test to ensure the inputs are segwit or not, avoid checking the exact message used.
The error code is still checked to ensure it is of the correct kind of failure.

Github-Pull: #14818
Rebased-From: 097c4aa379
2019-06-18 09:34:04 -04:00
João Barbosa
592016ba18 fixup: Fix prunning test
Github-Pull: #15991
Rebased-From: f402012ccf
2019-06-14 16:01:37 -04:00
Steven Roose
f9d159ba3a
Don't assert on user-inputed values
This prevents the assertion from crashing the node when an RPC user
enters invalid blinding factors.
2019-06-14 15:52:11 +01:00