Commit graph

645 commits

Author SHA1 Message Date
James Dorfman
56a93102e0 Merge 606ce05ec2 into merged_master (Bitcoin PR bitcoin/bitcoin#18554) 2024-08-08 16:40:09 +00:00
James Dorfman
f810d6d444 Merge 47b8256da8 into merged_master (Bitcoin PR bitcoin/bitcoin#24937) 2024-08-06 19:57:11 +00:00
James Dorfman
01e944c8aa Merge 34ae04d775 into merged_master (Bitcoin PR bitcoin/bitcoin#21726)
This changed the node pruning logic and moved test/functional/feature_blockfilterindex_prune.py
to test/functional/feature_index_prune.py.

Please verify that:
1. I migrated the test correctly
2. The magic numbers in the test look fine

With respect to #2: I believe the magic numbers are wrong. I previously had to tweak them heavily
in commit 1278b31. I don't think I did it correctly then, and so I don't believe them to be correct now.

To summarize what this tweaking was: I changed the magic numbers in the test to work properly,
but I suspect that in changing them, I may have nullified what the test was testing.

It's very possible that the reason the test was failing was because of an underlying bug with the pruning
in elements which we have to fix, rather than just being an issue with the test itself.
2024-08-06 16:43:47 +00:00
James Dorfman
249473e319 Merge 260ede1d99 into merged_master (Bitcoin PR bitcoin/bitcoin#24644) 2024-08-02 20:43:21 +00:00
James Dorfman
91173e1408 Disables functional test tool_signet_miner.py, since signet mining is not needed in Elements.
Ideally, this new test (added in last commit) should work in Elements, but I couldn't get
it working. Please look into if you can get this test working. Perhaps we need to set
g_con_elementsmode to False, or something similar.
2024-07-30 17:31:59 +00:00
James Dorfman
de5fe0b74d Merge cf0a8b9c48 into merged_master (Bitcoin PR bitcoin/bitcoin#24559) 2024-07-30 15:23:21 +00:00
James Dorfman
b0c4300d1d Merge 6c9460edae into merged_master (Bitcoin PR bitcoin/bitcoin#24358) 2024-07-29 18:46:45 +00:00
James Dorfman
5896e751de Merge f421de5be6 into merged_master (Bitcoin PR bitcoin/bitcoin#24236) 2024-07-08 20:04:51 +00:00
James Dorfman
d5b8d28d07 Merge f4e5d704f2 into merged_master (Bitcoin PR bitcoin/bitcoin#24118) 2024-05-24 18:21:12 +00:00
James Dorfman
9c1d4cc8ff Merge a4d7ac7bbe into merged_master (Elements PR #1317) 2024-05-24 16:13:46 +00:00
James Dorfman
51ce17b418 Merge 1b65d4d37b into merged_master (Elements PR #1284) 2024-05-24 07:10:54 +00:00
James Dorfman
77b849f4c6 Merge 20c5630f8c into merged_master (Elements PR #1277) 2024-05-24 06:39:06 +00:00
James Dorfman
26a2a9702e Merge c248983aab into merged_master (Elements PR #1276) 2024-05-24 05:46:29 +00:00
Byron Hambly
3ebc35359f
discount: add functional tests 2024-05-14 19:03:37 +02:00
James Dorfman
7bbef5bbb1 Merge 9745e18051 into merged_master (Bitcoin PR bitcoin/bitcoin#24670) 2024-04-04 21:36:11 +00:00
James Dorfman
2aef7af5b6 Merge 26d98d51f2 into merged_master (Bitcoin PR bitcoin/bitcoin#24574) 2024-01-17 21:09:55 +00:00
James Dorfman
92481c3833 Merge 8234cdaf62 into merged_master (Bitcoin PR bitcoin/bitcoin#24587) 2024-01-17 01:39:36 +00:00
James Dorfman
127a28e813 Merge ce05f838f1 into merged_master (Bitcoin PR bitcoin/bitcoin#24635) 2024-01-11 17:38:16 +00:00
James Dorfman
48ca8b0f76 test: fix bug in wallet_groups.py functional test that was introduced in merge of bitcoin/bitcoin#22364 in 00f2e32 2023-11-15 20:01:50 +00:00
James Dorfman
ec4c2a4898 test: fix feature_taphash_pegins_issuances.py
The first transaction was failing with bad-txns-inputs-missingorspent
because the "input" selected with fundrawtransaction was the
anyonecanspend initialfreecoins.

Fixed by first spending the initialfreecoins to "real" outputs.
2023-11-13 15:33:58 +00:00
Byron Hambly
d215bf7f91 test: fix feature_tapscript_opcodes.py
The first transaction from create_taproot_utxo was failing with
bad-txns-inputs-missingorspent because the "input" selected with
fundrawtransaction was the anyonecanspend initialfreecoins.

Fixed by first spending the initialfreecoins to "real" outputs.
2023-11-13 09:06:43 +00:00
James Dorfman
8ccb3e1604 test_runner: re-enable the now-passing 'feature_taproot.py' 2023-11-13 03:17:08 +00:00
James Dorfman
eb24b3eb39 test_runner: re-enable the now-passing 'wallet_basic.py --descriptors' 2023-11-09 06:42:33 +00:00
Pablo Greco
20c5630f8c
Merge pull request #1277 from delta1/issues-1259
fix: assert failure on non-policy asset consolidation in CreateTransactionInternal
2023-10-27 12:38:05 -03:00
James Dorfman
e02024e53f test: add new elements_code_tutorial functional test 2023-10-27 15:23:36 +00:00
Byron Hambly
d3ffd2a380
test: add functional test for issue #1259
Adds a functional test to cover the issue uncovered in #1259, where
calling fundrawtransaction with many non-policy inputs and no policy
recipients results in an assertion failure and a crash.

Fixed in #1258.

(cherry picked from commit a8b0ed6f96)
2023-10-23 16:43:20 +02:00
Byron Hambly
5326676ff3
fix: segfault on getpeginaddress rpc when not in elements mode
Fixes https://github.com/ElementsProject/elements/issues/1263

When not running in Elements mode, GetValidFedpegScripts returns an
empty vector. Subsequently `calculate_contract` is called with
`fedpegscripts.front().second` which is a null reference. This reference
is passed into `MatchLiquidWatchman` which tries to dereference the null
reference and causes a segfault.

This fix throws an exception in `getpeginaddress` if fedpegscripts is
empty, returning an error to the RPC caller. It also adds a functional
regression test.
2023-10-18 13:02:51 +02:00
Byron Hambly
4d825cd58d test: specify legacy wallet for failing functional tests on macos13
In the "macOS 13 native arm64 [gui, sqlite only]" CI task, the
test_runner defaults to descriptor wallets, causing some Elements
specific tests to fail.

This commit explicitly runs those tests with `--legacy-wallet`.
2023-10-09 20:32:28 +00:00
Byron Hambly
6f90a02548 Merge 30308cc380 into merged_master (Bitcoin PR bitcoin/bitcoin#20196) 2023-07-03 11:17:52 +00:00
Byron Hambly
7a7253639a Merge 267917f563 into merged_master (Bitcoin PR bitcoin/bitcoin#23304) 2023-07-03 10:06:51 +00:00
Byron Hambly
ca0735a437 Merge 003523d239 into merged_master (Bitcoin PR bitcoin/bitcoin#24338) 2023-06-30 20:58:14 +00:00
Byron Hambly
2aa75b6d6d Merge 9392e1350c into merged_master (Bitcoin PR bitcoin/bitcoin#24195) 2023-06-30 09:45:52 +00:00
Byron Hambly
a0335c7205 Merge dd405add6e into merged_master (Bitcoin PR bitcoin/bitcoin#24154) 2023-06-28 15:36:18 +00:00
Byron Hambly
ccd7b72d79 Merge e30b6ea194 into merged_master (Bitcoin PR bitcoin/bitcoin#24067) 2023-06-28 14:48:32 +00:00
Byron Hambly
cf8b1b2142 Merge 121d47afe3 into merged_master (Bitcoin PR bitcoin/bitcoin#23799) 2023-06-15 08:22:45 +00:00
Byron Hambly
d4d86665fd Merge 31f385c138 into merged_master (Bitcoin PR bitcoin/bitcoin#23532) 2023-06-14 17:35:43 +00:00
Byron Hambly
87960114d8 Merge 2f26d8ec70 into merged_master (Bitcoin PR bitcoin/bitcoin#23725) 2023-06-12 12:36:20 +00:00
Byron Hambly
b0b2f3deff Merge f6013265b7 into merged_master (Bitcoin PR bitcoin/bitcoin#20295) 2023-06-06 09:10:04 +00:00
James Dorfman
669c52f7e8 Merge 4fd0ce75c5 into merged_master (Bitcoin PR bitcoin/bitcoin#22689) 2023-06-02 15:34:33 +00:00
Byron Hambly
f936d6d2fa Merge 877f3aa85c into merged_master (Bitcoin PR bitcoin/bitcoin#23686) 2023-06-02 11:11:36 +00:00
Byron Hambly
60beb95b69 Merge 32d9f3770a into merged_master (Bitcoin PR bitcoin/bitcoin#23596) 2023-06-02 08:38:00 +00:00
James Dorfman
b7ee0e8b7f Merge aef8c7cf82 into merged_master (Bitcoin PR bitcoin/bitcoin#23289) 2023-06-01 05:52:23 +00:00
Byron Hambly
eb7b15c660 Merge 4f8b1f8759 into merged_master (Bitcoin PR bitcoin/bitcoin#23608) 2023-05-31 10:24:48 +00:00
Byron Hambly
00f2e32c8e Merge 47fe7445e7 into merged_master (Bitcoin PR bitcoin/bitcoin#22364)
- some fixmes in this commit, related to invalid schnorr signatures
  which need investigation
2023-05-29 12:58:36 +00:00
Byron Hambly
bd68371fb6 Merge ffdab41f94 into merged_master (Bitcoin PR bitcoin/bitcoin#23474) 2023-05-26 10:32:04 +00:00
Byron Hambly
1beaa601b4 Merge 5ccab7187b into merged_master (Bitcoin PR bitcoin/bitcoin#23394)
- commented out some script tests that need to be fixed
 - commented out feature_taproot.py since it needs significant updates
2023-05-26 09:14:20 +00:00
James Dorfman
432b8883ec Merge 41a1b5f58c into merged_master (Bitcoin PR bitcoin/bitcoin#23046) 2023-05-24 18:31:31 +00:00
James Dorfman
b83a6e56ae Merge 8251316acb into merged_master (Bitcoin PR bitcoin/bitcoin#23153) 2023-05-24 18:23:31 +00:00
Byron Hambly
99318f43e8 Merge d565d9b56d into merged_master (Bitcoin PR bitcoin/bitcoin#23312) 2023-05-16 09:35:07 +00:00
Byron Hambly
a4a976ee6f Merge ff65b696f3 into merged_master (Bitcoin PR bitcoin/bitcoin#22067) 2023-05-12 10:02:36 +00:00