Commit graph

38950 commits

Author SHA1 Message Date
James Dorfman
46a3ee29bc improve efficiency by gating locks with 2024-05-27 09:25:31 +00:00
James Dorfman
b4185c7008 CI: fix asan lock issues 2024-05-21 16:56:01 +00:00
James Dorfman
c6aba4ac06 CI: fix integer underflow bug 2024-05-21 16:56:01 +00:00
James Dorfman
73ed5dd541 CI: fix benchmark + QT tests by properly initializing CBlockIndex by calling SetNodeContext 2024-05-21 16:54:52 +00:00
James Dorfman
90e5bab636 CI: fix msan issue 2024-05-21 05:34:30 +00:00
James Dorfman
6fb780d8d8 CI: fix linting errors 2024-05-21 05:34:30 +00:00
Pablo Greco
5a409265ef Extreme trimming on startup 2024-05-21 05:34:30 +00:00
Pablo Greco
6367320f70 Restore NODE_NETWORK functionality with trim_headers 2024-05-21 05:34:30 +00:00
Pablo Greco
1722d4aac1 Reduce the number of untrimmed headers in memory, since they can be untrimmed on demand now 2024-05-21 05:34:30 +00:00
Pablo Greco
c28c5ce619 Allow untrimming headers when needed 2024-05-21 05:34:30 +00:00
Pablo Greco
4259278ff5 Reload trimmed header from index instead of block, block may have been pruned 2024-05-21 05:34:30 +00:00
Pablo Greco
afc16e8f84 Allow gaps while trimming headers 2024-05-21 05:34:30 +00:00
Pablo Greco
f89728c514 Validate trimmed headers too while loading 2024-05-21 05:34:30 +00:00
Pablo Greco
d8e1fe7fac Avoid trimming on shutdown 2024-05-21 05:34:30 +00:00
Pablo Greco
423715b048 Avoid pruning headers that have not been saved to disk yet 2024-05-21 05:34:30 +00:00
Pablo Greco
283f47b38d Move initialization of setTrimmableBlockIndex 2024-05-21 05:34:30 +00:00
Pablo Greco
31835f2a86 Prepare access to untrim headers 2024-05-21 05:34:30 +00:00
Pablo Greco
a4d7ac7bbe
Merge pull request #1317 from delta1/ct-fees-discount
feat: discounted fees for confidential transactions
2024-05-14 11:05:57 -07:00
Byron Hambly
3ebc35359f
discount: add functional tests 2024-05-14 19:03:37 +02:00
Byron Hambly
52962c16c9
discount: allow wallet to create discount txs 2024-05-14 19:03:37 +02:00
Byron Hambly
4807f3ef1f
discount: change miner tx ordering 2024-05-14 19:03:37 +02:00
Byron Hambly
c85f0d4fda
discount: implement net processing 2024-05-14 19:03:36 +02:00
Byron Hambly
b7b2288a74
discount: implement mempool logic 2024-05-14 19:03:36 +02:00
Byron Hambly
9cbd3e0f05
discount: add policy/discount.h 2024-05-14 19:03:36 +02:00
Byron Hambly
c1661b251a
discount: introduce config args 2024-05-14 19:03:17 +02:00
Byron Hambly
7ff33d45df
Merge pull request #1330 from delta1/test-fix-getpeginaddress
test: fix tests broken by change to getpeginaddress
2024-05-07 09:47:54 +02:00
Byron Hambly
98c8e4f387
test: fix tests broken by change to getpeginaddress
Fixes 2 functional tests failing since PR #1327 changes getpeginaddress
to only be valid when IsInitialBlockDownload is false
2024-05-06 14:21:44 +02:00
Byron Hambly
5f1cc1ad8c
Merge pull request #1327 from psgreco/master-nopegin-ibd
getpeginaddress cannot be trusted during ibd, it should fail
2024-04-19 17:17:15 +02:00
Pablo Greco
33a15604e8 getpeginaddress cannot be trusted during ibd, it should fail 2024-04-18 17:41:51 -07:00
Byron Hambly
99e502f90c
Merge pull request #1324 from xiaoxianBoy/fix-typos
chore: fix typos
2024-04-02 09:33:44 +02:00
snoppy
605acb0a40
chore: fix typos 2024-03-31 23:07:05 +08:00
Byron Hambly
2d298f7e3f
Merge pull request #1294 from psgreco/master-liquid-wallet-descr
Remove constrains on liquidv1 pegout bitcoin descriptor
2023-11-23 11:45:30 +00:00
Pablo Greco
d66c283f06 Remove constrains on liquidv1 pegout bitcoin descriptor 2023-11-22 09:57:12 -08:00
Pablo Greco
1b65d4d37b
Merge pull request #1284 from jamesdorfman/schnorr-fix-master
pubkey: fix VerifySchnorr bug which is causing testnet validation failure
2023-11-22 04:31:03 -08:00
Byron Hambly
9368fbac1c
test: fix flaky test wallet_groups.py
since the SRD coin selection was added, Elements sometimes picks a 1.0
input instead of 0.5 in this test
2023-11-22 08:55:40 +02: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
df8e57296c
Merge ElementsProject/elements#1286: Script: Move SCRIPT_ERR_COUNT
f4243128ee Script: Move SCRIPT_ERR_COUNT (Christian Lewe)

Pull request description:

  Fix #1285

ACKs for top commit:
  delta1:
    ACK f4243128ee

Tree-SHA512: b52a09c8da11bbfd11e82b0b7e18480eaa7f1948637c21385ad0307050b06e890244fef56e2f0747d5bb31bd6e3339b9f110f6872dff733493cb767c0fa09aa9
2023-11-13 13:04:18 +02: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
Christian Lewe
f4243128ee Script: Move SCRIPT_ERR_COUNT
SCRIPT_ERR_COUNT is a pseudo error that returns the number of errors.
It must always be last in the enum.
2023-11-10 17:04:29 +01:00
James Dorfman
eb24b3eb39 test_runner: re-enable the now-passing 'wallet_basic.py --descriptors' 2023-11-09 06:42:33 +00:00
James Dorfman
06423a6aac test: remove useless comment from feature_taproot_opcodes
The line immediately below the commented out code I removed explicitly
tests the exact behaviour which was being questioned in the comment.

This indicates that the comment was incorrect.
2023-11-09 06:34:34 +00:00
James Dorfman
08010b821f test: fix failing schnorr sig creation in bip341_keypath_test_vectors 2023-11-09 06:31:49 +00:00
James Dorfman
47dff66fa6 pubkey: fix bug in VerifySchnorr introduced in merge of bitcoin/bitcoin#22448 in 09333e2aca 2023-11-03 20:50:42 +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
James Dorfman
39be0f0925 wallet: fix tx credit calculation issues introduced in merge of bitcoin/bitcoin#22100 in 3e939cca and 103069c4 2023-10-27 15:23:19 +00:00
James Dorfman
04cba29faf coinselection: fail KnapsackSolver if the policy asset doesn't have a solution 2023-10-23 15:55:03 +00:00
James Dorfman
5b72ae23af
coinselection: fail if each non-policy asset doesn't have a solution 2023-10-23 16:51:09 +02:00