Commit graph

6184 commits

Author SHA1 Message Date
Pablo Greco
d9ce79e590 Merge branch 'elements-23.2.x' into master-nosimplicity 2025-03-26 05:13:10 -07:00
Pablo Greco
3d53e1a49f Revert "simplicity: change deployment to version bit 21"
This reverts commit 1bb6c424c2.
2025-03-26 05:12:59 -07:00
Pablo Greco
1fa2616621 Revert "test: failing test for simplicity activation when dynafed is active"
This reverts commit 4b5c6e578b.
2025-03-26 05:12:41 -07:00
Pablo Greco
811d835960
Merge pull request #1439 from tomt1664/fix/check-missing-proofs
Add missing proof checks and tests
2025-03-26 05:11:02 -07:00
Thomas Trevethan
51f81f3286 add missing proof checks and tests 2025-03-26 11:35:22 +00:00
Pablo Greco
3c1782e3ce
Merge pull request #1438 from delta1/simplicity-activation-dynafed
fix: simplicity activation when dynafed is active
2025-03-26 04:17:30 -07:00
Byron Hambly
1bb6c424c2
simplicity: change deployment to version bit 21 2025-03-25 09:29:04 +02:00
Byron Hambly
4b5c6e578b
test: failing test for simplicity activation when dynafed is active 2025-03-25 09:25:17 +02:00
Byron Hambly
8cde3cd308
test: add dust relay output value test 2025-03-19 14:48:27 +02:00
Pablo Greco
b63f7ab9b5
Merge pull request #1433 from kilrau/reduce-default-dust-relay-fee
feat: reduce default dust relay fee
2025-03-13 08:00:07 -07:00
Byron Hambly
32390d1552
test: use bitcoin default dustrelayfee in mempool_accept.py 2025-03-13 09:38:10 +02:00
Pablo Greco
01fdecd440 Merge branch 'master' into elements-23.2.x-test 2025-03-12 09:14:50 -07:00
Thomas Trevethan
d74af31c9e use elements regtest address for derive test 2025-03-10 23:02:16 +00:00
muxator
0cb8f113df rpc: add non-regression test about deriveaddresses crash when index is 2147483647
This test would cause a crash in bitcoind (see #26274) if the fix given in the
previous commit was not applied.

Github-Pull: #26275
Rebased-From: 9153ff3e27
2025-03-10 17:56:03 +00:00
brunoerg
2f9042a967 test: ensure createmultisig and addmultisigaddress are not returning any warning for expected cases
Github-Pull: #25220
Rebased-From: 3a9b9bb38e
2025-03-10 16:21:52 +00:00
Andrew Chow
fb888905f5 tests: Calculate input weight more accurately
The external input test with specifying input weight would make a
pessimistic estimate of the input weight. However this would result in a
test failure as it is sometimes too pessimistic when an ECDSA signature
ends up being smaller than usual. To correct this, we can calculate the
input weight more accurately.

Github-Pull: #24454
Rebased-From: 8a04a386f7
2025-03-10 15:15:58 +00:00
Thomas Trevethan
45fdd42927 fixed tests 2025-03-10 13:03:15 +00:00
Jon Atack
608381c1e8 rpc: rename getdeploymentinfo status-next to status_next
Github-Pull: bitcoin#24528
Rebased-From: 5d7c69b
2025-03-10 11:51:55 +00:00
Pablo Greco
52e9adbf33 Merge branch 'master-nosimplicity-12c586a3bf5dd8effe95832cf6f7d8ef83839082' into master-nosimplicity-0eb2ea5cbec2e5624876867b043a506b022ef78c 2025-03-04 06:40:51 -08:00
Pablo Greco
258d9d3c87 feature_fedpeg: Use os.join instead of hardcoded separator 2025-02-23 10:19:51 -08:00
Pablo Greco
305de6d265 feature_confidential_transactions: Use system temp dir instead of hardcoded /tmp 2025-02-23 09:24:05 -08:00
Pablo Greco
cd67236c12 feature_discount_ct: some txs can return 2 different weights, adapt the test to it 2025-02-22 09:05:56 -08:00
Pablo Greco
17ea376db8 Merge branch 'master-nosimplicity-e41b2251072c3dc0a8e4555411c6e3cb19479b7b' into master-nosimplicity 2025-02-18 06:40:02 -08:00
Pablo Greco
7856149d15 Partially revert 2f1b86e84a for master-nosimplicity 2025-02-18 06:39:49 -08:00
Jon Atack
7f56623441 Put lock logging behind DEBUG_LOCKCONTENTION preprocessor directive 2025-02-15 00:22:57 -08:00
Byron Hambly
2f1b86e84a
lint: fix shellcheck, spelling, and locale 2025-02-13 16:08:39 +02:00
Byron Hambly
5cb3acef29
Merge pull request #1310 from GoodDaisy/master
Fix typos
2025-02-13 09:47:55 +02:00
Pablo Greco
646b394737 Merge branch 'master-nosimplicity' into master-nosimplicity-e41b2251072c3dc0a8e4555411c6e3cb19479b7b 2025-02-12 07:17:57 -08:00
Pablo Greco
16abe45835 Revert "ubsan: add suppression for simplicity"
This reverts commit b90ef38727.
2025-02-12 07:17:51 -08:00
Pablo Greco
b684fa50d8 Revert "Merge pull request #1384 from apoelstra/2024-12--simple-fuzz"
This reverts commit e41b225107, reversing
changes made to a259bc3693.
2025-02-12 07:14:41 -08:00
Byron Hambly
e41b225107
Merge pull request #1384 from apoelstra/2024-12--simple-fuzz
simplicity: add fuzz target
2025-02-12 14:15:27 +02:00
Byron Hambly
2c9c6cd7a0 test: add discountvsize test vectors 2025-02-11 11:21:18 -08:00
Andrew Poelstra
bd852baca6
ci: add more ubsan suppressions 2025-02-11 16:12:29 +00:00
MarcoFalke
56eec70de4
Fix signed integer overflow in prioritisetransaction RPC
Cherry-pick of fa52cf8e11
https://github.com/bitcoin/bitcoin/pull/23418 (2/2)
2025-02-11 13:47:57 +00:00
Byron Hambly
99c2ee7f9a
Merge pull request #1399 from apoelstra/2025-02--fuzz-fixes
various bugfixes for new fuzz test vectors
2025-02-11 09:49:42 +02:00
Byron Hambly
22089ac8f6
Merge pull request #1372 from delta1/issues-1371
decodepsbt: add asset/assetcommitment to input.witness_utxo
2025-02-11 08:47:17 +02:00
Andrew Poelstra
b90ef38727
ubsan: add suppression for simplicity 2025-02-11 03:00:51 +00:00
Pablo Greco
5823edda20 Merge branch 'master-nosimplicity' into elem-23.2.6-final 2025-02-08 20:59:09 -08:00
Pablo Greco
e727ea500f Revert "Merge pull request #1390 from ElementsProject/simplicity"
This reverts commit 368010a308, reversing
changes made to e9a914465d.
2025-02-08 20:58:05 -08:00
Pablo Greco
e6aa6e773e CI: example_elements_code_tutorial test test uses initialfreecoins, disable for descriptor wallets 2025-02-06 13:35:38 -08:00
Pablo Greco
a33ceacdbc CI: feature_tapscript_opcodes test uses initialfreecoins, disable for descriptor wallets 2025-02-06 13:35:38 -08:00
Pablo Greco
87808101be CI: feature_taphash_pegins_issuances test uses initialfreecoins, disable for descriptor wallets 2025-02-06 13:35:20 -08:00
Pablo Greco
e3c318b2b8 CI: discounttests use initialfreecoins, disable for descriptor wallets 2025-02-06 13:35:20 -08:00
Pablo Greco
6991cf7960 CI: trim_headers test uses combineblocksigs, disable for descriptor wallets 2025-02-06 13:35:20 -08:00
Pablo Greco
1ecd5821e8 CI: wallet_elements_regression_1263 uses getpeginaddress, disable for descriptor wallets 2025-02-06 13:35:20 -08:00
Pablo Greco
74cae2d9ec CI: use default wallet name in wallet_elements_21million 2025-02-06 13:35:20 -08:00
Andrew Poelstra
b1b4e6d5c9 Sanitize libsimplicity
Without this patch, the --with-sanitizers config flag has no effect on
the copy of libsimplicity in Elements Core. This means that we aren't
running asan or tsan when we intend to, and also means that when fuzzing
we aren't instrumenting the Simplicity binary.

The result is extremely bad fuzz coverage and missed bugs.

ubsan suppression for simplicity sha256.c

ubsan detects when a left shift would overflow an integer type. This is
not UB (it would be if you tried to shift more than the type's width in
one shot) but "may be unintentional" and is therefore detected.

Add a whitelist to the giant list of whitelists.
2025-01-31 11:43:23 -05:00
Pablo Greco
dc6966ece0 Merge branch 'master' into elem-23.2.6-rc1 2025-01-23 05:49:58 -08:00
Byron Hambly
4303fa500d
test: add functional test for issue 2025-01-14 15:25:05 +02:00
Byron Hambly
248b93dd9f
decodepsbt: add asset/assetcommitment to input.witness_utxo 2024-11-01 09:22:18 +02:00