Commit graph

1748 commits

Author SHA1 Message Date
Steven Roose
73cf2f5e6f
Merge ElementsProject/elements#993: [elements-0.18] Support supplying contract hash to issueasset RPC
8b9791fa0e Support supplying contract hash to issueasset RPC (Steven Roose)

Pull request description:

  Relating https://github.com/ElementsProject/elements/issues/985.

  Needs forward port.

Top commit has no ACKs.

Tree-SHA512: e30ce7f590a5d9e8aa37b4cccb4e69fa2c62adbc28a7e67e9a91b9cff081c54bb2e300ccb6e3c692719a8ec858bd32e32445d4040e19d1affd32dae5cc0462fc
2021-05-10 18:36:19 +02:00
Steven Roose
8b9791fa0e
Support supplying contract hash to issueasset RPC 2021-05-07 14:56:22 +02:00
Steven Roose
b104f95651
Undo default signalling behavior for dynafed unless enabled 2021-05-07 13:45:54 +02:00
Steven Roose
e163fd06ce
Merge #963: [elements-0.18] Add SIGHASH_RANGEPROOF support
4ace925c5 tests: Add test feature_sighash_rangeproof.py (Steven Roose)
559f1d15a Add SIGHASH_RANGEPROOF support (Steven Roose)
cb2d10341 Add set_wif to test frameworks's ECKey (Steven Roose)

Pull request description:

  Backport of #960.

Tree-SHA512: fb97696429c2b7ad101fafcce22d1e9f0bb6450f5c3252dc3cf0ca929b9ac8f63978c9b7115e2f37445b3fff6cae0878f076580256b4333086b020bfb5c99e7a
2021-03-03 11:31:35 +00:00
Steven Roose
4ace925c55
tests: Add test feature_sighash_rangeproof.py 2021-03-02 16:19:54 +00:00
Steven Roose
cb2d10341a
Add set_wif to test frameworks's ECKey 2021-03-02 16:19:51 +00:00
Steven Roose
ae54a1bad4
dynafed: Support changing mainnet dynafed activation
This should obviously only be done by blocksigners. The flag used is not
documented.
2021-03-02 15:34:00 +00:00
Glenn Willen
91ec3dd165
Make error messages distinct at each failure location. 2020-10-06 13:43:39 +02:00
Glenn Willen
f335ff8456
Fix logic issues with randomization of outputs in [re]issueasset_base; minor refactoring. 2020-10-06 13:43:37 +02:00
Steven Roose
8e5893ecbe
Add test to make sure issuances to wrong addresses fail 2020-04-16 12:34:47 +01:00
Steven Roose
b23efb2f50
Improve coinbase and issuance tx testing for txindex 2020-03-23 18:06:20 +00:00
Steven Roose
8de91ec505
Reduce mintxfee to 0.1 sat/vbyte and fallback fee to 2 sat/vb 2020-03-17 20:25:20 +00:00
Gregory Sanders
a72d9c6468
Switch default bits of hiding to 52 2020-03-17 17:46:45 +00:00
Glenn Willen
34784a663f
Fix claimpegin and createrawpegin support for multiwallet.
Fix multiple issues with claimpegin and createrawpegin support for
multiple loaded wallets:

- Failure to call EnsureWalletIsAvailable would cause a crash when multiple
  wallets were loaded, but one was not specified in the RPC call.
- Failure to propagate the request URL from claimpegin when making an
  internal call to another RPC would result in failure when multiple
  wallets were loaded, by failing to specify one for that call.

Add a regression test to the feature_fedpeg.py test: at a critical point,
create a second wallet on the sidechaind, and set up the RPC client to
use the first one, to check that it still works correctly.
2020-03-17 17:42:16 +00:00
Gregory Sanders
eedb83440c
Fix address string assertions in tests 2019-11-26 14:52:16 +00:00
Gregory Sanders
27d9a70a42 Change elements mode to activating BIP9 signaling based on height 2019-11-14 09:33:40 -05:00
Gregory Sanders
9d5eb6aaaf HF: Simplify legacy->dynafed transition max sig size 2019-11-12 09:06:06 -05:00
Gregory Sanders
3751e14057 HF: Publish full dynafed block no matter epoch age 2019-11-12 09:06:02 -05:00
Gregory Sanders
aec8b6caf5 HF: Dyanfed pruned header now has extra root 2019-11-12 09:05:56 -05:00
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