Commit graph

912 commits

Author SHA1 Message Date
Gregory Sanders
f2161b411f Improve raw peg-in creation logic/help and add basic tests 2018-11-14 21:58:02 -05:00
Steven Roose
99cc03457f
Merge #460: fix endianness of getrawtransaction issuance entropy, add basic test
8b0ebae27 fix endianness of getrawtransaction issuance entropy, add basic test (Gregory Sanders)
2018-11-08 16:57:33 +00:00
Gregory Sanders
8b0ebae271 fix endianness of getrawtransaction issuance entropy, add basic test 2018-11-08 11:20:42 -05:00
Gregory Sanders
3cf35fc090
Merge #410: compact block RPC calls
c3fe935 test compact block rpcs (Gregory Sanders)
c3cbe6e compact block RPC calls (Gregory Sanders)

Pull request description:

  Combined with https://github.com/ElementsProject/elements/pull/339 should be pretty powerful for speed of block proposal transmission.

Tree-SHA512: 305256b844a28542bb720ab86a36ec91982dd41c4d8e455e34ad3db12daa6e8b25ccfe2728fa514812655c2121c8d1d36e71f2af83f86b2de6c5d0c72541d79e
2018-10-29 12:46:35 -04:00
Gregory Sanders
62c56f446a don't set CorruptionPossible for peg-in transaction failure
Previously the peg-in validation logic was done in script
which means it was handled correctly by mempool/block logic.

We then moved these checks outside of script, which means
that these checks aren't multithreaded/batched, and return
the specific error states, including CorruptionPossible.

This means that blocks are never considered permanently invalid and
in certain circumstances tried in an infinite loop.

Instead we mark it as a normal failure, and allow the peg-in invalid
block queue to take care of it instead.
2018-10-03 17:57:57 +09:00
Gregory Sanders
f6528e96f2 feature_fedpeg.py parent2 uses rpc cookie auth 2018-10-03 10:01:27 +09:00
Gregory Sanders
f349e17298 allow start_node to create/take cookie files 2018-10-03 10:01:26 +09:00
Gregory Sanders
c3fe935f91 test compact block rpcs 2018-09-27 10:16:14 -04:00
Jorge Timón
9b030c10a7
QA: feature_fedpeg.py: Remove re-implementation of sync_all
(redundant and inferior)
2018-09-27 01:54:16 +02:00
Steven Roose
9545ca3e48 qa: Disable -printtoconsole in feature_fedpeg 2018-09-26 20:17:05 +01:00
Steven Roose
1451e86f70 qa: Remove pegging.py in favor of feature_fedpeg.py 2018-09-26 19:30:07 +01:00
Jorge Timón
498877e871
QA: Fix feature_fedpeg.py to work with 0.17.0 2018-09-26 19:06:09 +02:00
Jorge Timón
a7736f8749
QA: Add test to get 'Given claim_script is not hex' error 2018-09-26 19:05:43 +02:00
Steven Roose
07c617bccd
qa: Support using bitcoind in fedpeg test
This ports the functionality from pegging.py to the feature_fedpeg.py
test.  The following two commands are not equivalent:

$ ./qa/rpc-tests/pegging.py dir/to/bitcoin

$ ./qa/pull-tester/rpc-tests.py feature_fedpeg --parent_bitcoin \
    --parent_binpath=bin/to/bitcoin/bitcoind
2018-09-26 19:05:41 +02:00
Jorge Timón
729969d63d
QA: Special case for regtest, expected to be used for binaries that lack -chain 2018-09-26 19:05:04 +02:00
Jorge Timón
8b037a3913
Merge #407: Replace median fee rate with feerate percentiles
61064b3 Replace median fee rate with feerate percentiles (Marcin Jachymiak)
2018-09-17 03:43:14 +02:00
Gregory Sanders
7bfb1001df expose CBlockIndex::nTx in getblock(header) 2018-09-15 13:25:20 -07:00
Marcin Jachymiak
61064b39d5
Replace median fee rate with feerate percentiles
Removes medianfeerate result from getblockstats.
Adds feerate_percentiles which give the feerate of the 10th, 25th, 50th,
75th, and 90th percentile weight unit in the block.
2018-09-12 23:51:51 +02:00
Jorge Timón
3f62b3249b
QA: Test 2wp using the test framework 2018-08-16 19:31:04 +02:00
Jorge Timón
781953b6bd
QA: Optionally allow other chains 2018-08-10 05:13:25 +02:00
Jeff Frontz
f1ec281230 Explicitly destroy zmq object when exiting without actually using it 2018-07-25 17:07:14 -04:00
Jorge Timón
a3b6ab088c
Merge #394: Explicit option for disabling 2wp
38dc2e7 Chainparams: Introduce -con_has_parent_chain option (Jorge Timón)
2018-07-22 07:50:12 +02:00
Jorge Timón
38dc2e71b6
Chainparams: Introduce -con_has_parent_chain option 2018-07-21 22:53:15 +02:00
wintercooled
10b9350334 Remove use of 'bitcoin' as hard coded default asset for sendtoaddress and sendmany. 2018-07-19 10:41:27 +01:00
wintercooled
82afeed34b Add ability to use listissuance with label as param. Plus tests. (amended for grammar) 2018-07-16 17:43:02 +01:00
wintercooled
b96a36144f Tests for initialreissuancetokens param - ability to specify number of initial reissuance tokens 2018-07-13 15:45:50 +01:00
wintercooled
33f43fe020 Tests for defaultpeggedassetname param - ability to set default asset name 2018-07-12 21:42:41 +01:00
Gregory Sanders
b745444a19
Merge #355: Change initial issuance output to 1
1136ad3 Change initial issuance output to 1 (nkostoulas)
2018-06-25 09:22:41 -04:00
Gregory Sanders
0afba82182
Merge #376: QA: Elements tests first
22130f4 QA: Elements tests first (Jorge Timón)
2018-06-25 09:21:53 -04:00
Mike
9bcfdd8c5c Port tweakfedpegscript from liquid
Port tweakfedpegscript from liquid
2018-06-21 13:11:12 -07:00
Jorge Timón
22130f42f8
QA: Elements tests first 2018-06-20 20:38:05 +02:00
Steven Roose
f66e94a712
QA: Introduce feature_blocksign.py 2018-06-19 22:21:47 +02:00
nkostoulas
1136ad3a96 Change initial issuance output to 1 2018-06-14 09:46:10 +01:00
Jorge Timón
b857c43ce9
RPC: Signblock: Support signblock on rpc/blockchain
QA: Adapt rpc_blockchain tests to signed blocks
2018-06-13 04:31:17 +02:00
Jorge Timón
cdb79e9596
RPC: Stop providing useless fake pow data
QA: Adapt rpc_blockchain tests to not having pow
2018-06-13 04:31:12 +02:00
Jorge Timón
7b6a393a53
QA: Reactivate and improve rpc_blockchain tests 2018-06-05 00:56:05 +02:00
Gregory Sanders
c5c6497967
Merge #350: Make block solutions more strictly validated
1348313 add basic functional tests for signed block rpcs and validation (Gregory Sanders)
c07b0af Add signature checking flag for when no sighash byte is expected (Gregory Sanders)
8f92b21 remove block (multi)signature malleability vectors (Gregory Sanders)
2018-05-30 10:36:31 -04:00
Tim Ruffing
88ae603ee1 tests: Update pegging test to Python 3 2018-05-19 00:22:57 +02:00
Tim Ruffing
61b6ef14ff tests: Return meaningful exit status in pegging test 2018-05-19 00:22:52 +02:00
Anthony Towns
b142b2c29a
Tests: Add data file 2018-05-16 00:52:19 +02:00
Jorge Timón
9dde7d7606
Tests: Test new getblockstats RPC
Includes commit from Anthony Towns @ajtowns:

Tests: Save and load block and corresponding expected statistics
2018-05-16 00:52:18 +02:00
Gregory Sanders
f8aaa95fa4 speedup and fix wallet-hd functional test for CA 2018-05-14 09:35:57 -04:00
Jorge Timón
5e97d95a28 BugFix: Make initialfreecoins configurable, default of 0 2018-05-11 10:30:08 -04:00
Gregory Sanders
1348313eb7 add basic functional tests for signed block rpcs and validation 2018-05-11 09:26:09 -04:00
Gregory Sanders
ed121e8df1 getnewblockhex: add ability to pass over transactions based on mempool age 2018-04-25 12:24:44 -04:00
Gregory Sanders
9f17022c5d
Merge #318: RPC: If a scriptPubKey is a pegout, show pegout info too
81a4ed4 QA: Test pegout (Jorge Timón)
190339b RPC: If a scriptPubKey is a pegout, show pegout info too (Jorge Timón)
8cea3b4 RPC: Add vdata option to createrawtransaction (Jorge Timón)
2018-04-09 12:16:13 -07:00
Gregory Sanders
2803b083b4
Merge #333: Fix timing for bitcoin shutdown in pegging.py
1986ec7 Fix timing for bitcoin shutdown in pegging.py (Jonas Nick)
2018-04-09 11:30:29 -07:00
Jonas Nick
1986ec7d47 Fix timing for bitcoin shutdown in pegging.py 2018-04-09 18:28:49 +00:00
Gregory Sanders
a0d9ab12ff update confidential functional tests to include op_return blinding corner case 2018-04-09 12:06:02 -04:00
Gregory Sanders
6a38b990fb fix peg out value checking in functional test 2018-04-06 14:47:13 -07:00