Commit Graph

41274 Commits

Author SHA1 Message Date
Luke Dashjr
a80bf1bac8 Merge 12146 via opt_wallet_segwit2 2024-06-21 19:28:12 +00:00
Luke Dashjr
24325a0cf6 Merge truc_opts-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
aedbaabaad Merge 7219 via rbf_opts-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
fb379a9f40 Merge 5891 via qt_console_history_persist 2024-06-21 19:28:12 +00:00
Luke Dashjr
4b2f0d41ee Merge 5861 via gui_restore_addresses 2024-06-21 19:28:12 +00:00
Luke Dashjr
0b54840a18 Merge mining_priority 2024-06-21 19:28:12 +00:00
Luke Dashjr
5d26352942 Bugfix: QA/Fuzzer: Mine an inital block for mini_miner to ensure mempool entries have a sane height 2024-06-22 03:05:10 +00:00
Luke Dashjr
a390740fb1 Optimise coin-age priority by splitting up steps to calculate it
double priority = GetPriority(tx, view, height, ICIV);
becomes
    const double coin_age = GetCoinAge(tx, view, height, ICIV);
    const auto mod_vsize = CalculateModifiedSize(tx);
    const double priority = ComputePriority2(coin_age, mod_vsize);
2024-06-22 03:05:10 +00:00
Luke Dashjr
5dc432bdfa QA: Properly initialize coin-age priority on transactions made by TestChain100Setup::PopulateMempool 2024-06-22 03:05:10 +00:00
Luke Dashjr
41c2adfe56 coin_age_priority: Avoid mixing potentially different types in std::min 2024-06-22 03:05:10 +00:00
Luke Dashjr
ffb6a14e1f QA: mining_coin_age_priority: Test both GBT and RPC in one pass 2024-06-22 03:05:10 +00:00
Luke Dashjr
0c980a290c Bugfix: RPC/Mining: Document non-standard "priority" key (on transaction Objects) for block templates 2024-06-22 03:05:10 +00:00
Luke Dashjr
de9d48bed2 Save transaction priority deltas to mempool-knots.dat 2024-06-22 03:05:10 +00:00
Luke Dashjr
ebc8eee246 Test: Add test for coin-age priority mining 2024-06-22 03:05:10 +00:00
Luke Dashjr
193242016d Tests: Update for coin-age priority 2024-06-22 03:05:10 +00:00
Luke Dashjr
3388b04bb4 RPC: Restore "startingpriority" and "currentpriority" in mempool entries 2024-06-22 03:05:10 +00:00
Luke Dashjr
13e42976e7 RPC/Mining: Include priority delta in getprioritisedtransactions result 2024-06-22 03:05:10 +00:00
Luke Dashjr
1c73e6e630 Enable prioritisetransaction with priority delta 2024-06-22 03:05:10 +00:00
Luke Dashjr
7c10c676f3 Policy: Restore support for mining based on coin-age priority
This reverts commit 7036cf52aa (and much more).
2024-06-22 03:05:10 +00:00
Luke Dashjr
3024b0137d Revert "[refactor] rewrite BlockAssembler inBlock and failedTx as sets of txids"
This reverts commit d0cd2e804e.
2024-06-22 03:05:10 +00:00
Luke Dashjr
d0f5adf96c Merge branch 'AutoFile_error_check-27' into mining_priority 2024-06-22 03:05:03 +00:00
Luke Dashjr
c198562430 Merge branch 'sendraw_force-27+knots' into mining_priority 2024-06-22 03:04:58 +00:00
Luke Dashjr
09bc922c70 Merge branch 'easy_uv_moves_pr30115-27' into mining_priority 2024-06-22 03:04:53 +00:00
Luke Dashjr
eddc01a795 Diff-minimise 2024-06-22 02:51:26 +00:00
Vasil Dimov
d2ea6ab60b util: explicitly close all AutoFiles that have been written
There is no way to report a close error from `AutoFile` destructor.
Such an error could be serious if the file has been written to because
it may mean the file is now corrupted (same as if write fails).

So, change all users of `AutoFile` that use it to write data to
explicitly close the file and handle a possible error.

Github-Pull: #29307
Rebased-From: 11be9f4103ea219f801a1f0fe1385f66ca70ad22
2024-06-22 02:45:02 +00:00
Luke Dashjr
948e66e65f Merge 553 via bugfix_qt_uri_amount_parser 2024-06-21 19:28:12 +00:00
Luke Dashjr
175a77ccd6 Merge 929 via tbc 2024-06-21 19:28:12 +00:00
Luke Dashjr
f63370696d Merge 559 via accept_nonstdtxn 2024-06-21 19:28:12 +00:00
Luke Dashjr
507ca2fc6b Merge 7510 via rwconf_gui-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
807c407a41 Merge 11082 via rwconf-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
0728a0523f Merge 7533 via sendraw_force-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
a0db4b1be0 Merge 29873 via truc_10k_vsize_limit-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
c83459732b Merge 29306 via truc_sibling_eviction-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
9eec411d55 Merge 7107 via qtnetworkport-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
1432bfcb7e Merge restore_blockmaxsize 2024-06-21 19:28:12 +00:00
Luke Dashjr
30d124d5bc Merge 14137 via win_taskbar_progress-27.1+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
c5fc3ff34b Merge walletnotify_w_win-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
bd53a2db65 Merge rpc_mempoolentry_txhash 2024-06-21 19:28:12 +00:00
Luke Dashjr
f11f462367 Merge gui_payreq_textedit 2024-06-21 19:28:12 +00:00
Luke Dashjr
4fb86087ba Merge restore_feefilter_opt 2024-06-21 19:28:12 +00:00
Luke Dashjr
830f0b1a43 Merge wallettool_dump_warning-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
9434c94eca Merge getrpcwhitelist_wallets-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
04ea0a56f6 Merge 19117 via rpc_getrpcwhitelist 2024-06-21 19:28:12 +00:00
Luke Dashjr
96ddc74fa8 Merge 19092 via cli_getinfo_mw_total_balance-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
7b902e3638 Merge 19089 via cli_getinfo_mwbalances 2024-06-21 19:28:12 +00:00
Luke Dashjr
20e5905d7d Merge 18223 via blockfilter_v0 2024-06-21 19:28:12 +00:00
Luke Dashjr
7a2abd1351 Merge 17958 via rpc_getgeneralinfo 2024-06-21 19:28:12 +00:00
Luke Dashjr
2ab7c38e65 Merge 17636 via guisettings-0.21 2024-06-21 19:28:12 +00:00
Luke Dashjr
9c850b5a3f Merge g537 via gui_bech32_errpos 2024-06-21 19:28:12 +00:00
Luke Dashjr
5b1fb53b46 Merge rpc_compat_error_index-25+knots 2024-06-21 19:28:12 +00:00