Commit Graph

35 Commits

Author SHA1 Message Date
Luke Dashjr
6c5ca3ed56 Merge k78 via rejectparasites-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
39ec130834 Merge rejecttokens-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
48c848e044 Merge acceptnonstddatacarrier-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
570cb5cb1d Merge 28408 via match_more_datacarrier-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
5dd1f1ee25 Merge dustdynamic-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
22193cca11 Merge 29309 via permitbarepubkey-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
7b898f1d01 Merge truc_opts-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
a1e42756c1 Merge 7219 via rbf_opts-28+knots 2025-03-05 03:27:08 +00:00
Luke Dashjr
e72688bf35 Merge 559 via accept_nonstdtxn 2025-03-05 03:27:08 +00:00
Luke Dashjr
3315b13ab4 dustdynamic: Support specifying a multiplier (default to 3)
Historically, dustrelayfee was based on 3x the cost to spend an output, so use that for the default multiplier
2025-02-24 21:21:31 +00:00
Luke Dashjr
fc986f5797 Bugfix: node/mempool_args: Missing includes 2025-02-24 21:20:34 +00:00
4d021e6226 add -rejectparasites option
Github-Pull: knots#78
Rebased-From: 18cd7b0ef6
2025-02-21 23:51:00 +00:00
Luke Dashjr
8ac857b673 Add rejecttokens policy option to filter out Runes 2025-02-21 23:50:22 +00:00
Luke Dashjr
8f7393a4d0 Policy: Add acceptnonstddatacarrier option to reject non-standard datacarrier regardless of size 2025-02-21 23:49:23 +00:00
Luke Dashjr
3945ebf958 Merge branch 'accept_nonstdtxn' into acceptnonstddatacarrier-28+knots 2025-02-21 23:49:18 +00:00
Luke Dashjr
7cbe5cde36 Add -datacarrierfullcount option to control applying -datacarriersize to all datacarrying 2025-02-21 23:47:45 +00:00
Luke Dashjr
690811b90f txmempool: Add dustdynamic option supporting fee estimator or kvB into mempool
Currently targets 80% success threshold and updates every 15 minutes
2025-02-21 23:47:08 +00:00
Vojtěch Strnad
df9da3a9a4 Add a -permitbarepubkey option
Github-Pull: #29309
Rebased-From: 8c1114aa61
2025-02-21 23:45:21 +00:00
Luke Dashjr
3dbae62c64 Add mempooltruc=reject/accept/enforce option to enable TRUC support 2025-02-21 23:44:25 +00:00
Luke Dashjr
9b6167f697 Rework mempoolreplacement option handling 2025-02-21 23:43:46 +00:00
Luke Dashjr
a568b33b12 Revert "add deprecation warning for mempoolfullrbf"
This reverts commit 1f93e3c360 (#30594)
2025-02-21 23:43:46 +00:00
glozow
1f93e3c360 add deprecation warning for mempoolfullrbf 2024-08-07 10:19:52 +01:00
Ryan Ofsky
680eafdc74 util: move fees.h and error.h to common/messages.h
Move enum and message formatting functions to a common/messages header where
they should be more discoverable, and also out of the util library, so they
will not be a dependency of the kernel

The are no changes in behavior and no changes to the moved code.
2024-05-16 10:16:08 -05:00
Luke Dashjr
35842db70d Allow disabling "non-standard" checks on mainnet 2024-02-23 00:47:23 +00:00
MarcoFalke
fa6b053b5c
mempool: persist with XOR 2023-11-09 19:44:50 +01:00
Anthony Towns
e1dc15d690 config: default acceptnonstdtxn=0 on all chains
Previously, the default for acceptnonstdtxn defaulted to 0 on all
chains except testnet. Change this to be consistent across all
chains, and remove the parameter from chainparams entirely.
2023-08-28 22:09:39 +10:00
Andrew Chow
f3c9078b4c Clean up things that include script/standard.h
Remove standard.h from files that don't use anything in it, and include
it in files that do.
2023-08-14 17:38:27 -04:00
Ryan Ofsky
8aa8f73adc refactor: Replace std::optional<bilingual_str> with util::Result 2023-05-24 08:55:47 -04:00
TheCharlatan
ba8fc7d788
refactor: Replace string chain name constants with ChainTypes
This commit effectively moves the definition of these constants
out of the chainparamsbase to their own file.

Using the ChainType enums provides better type safety compared to
passing around strings.

The commit is part of an ongoing effort to decouple the libbitcoinkernel
library from the ArgsManager and other functionality that should not be
part of the kernel library.
2023-05-09 15:49:14 +02:00
TheCharlatan
be55f545d5
move-only: Extract common/args and common/config.cpp from util/system
This is an extraction of ArgsManager related functions from util/system
into their own common file.

Config file related functions are moved to common/config.cpp.

The background of this commit is an ongoing effort to decouple the
libbitcoinkernel library from the ArgsManager. The ArgsManager belongs
into the common library, since the kernel library should not depend on
it. See doc/design/libraries.md for more information on this rationale.
2023-04-19 10:48:30 +02:00
Carl Dong
382b692a50
Split non/kernel chainparams
Moves chainparams code not using the ArgsManager to the kernel.

Subsequently use the kernel chainparams header now where possible in
order to further decouple chainparams call sites from gArgs.
2023-03-15 16:43:31 +01:00
fanquake
01e1627e25
Merge bitcoin/bitcoin#25872: Fix issues when calling std::move(const&)
fa875349e2 Fix iwyu (MacroFake)
faad673716 Fix issues when calling std::move(const&) (MacroFake)

Pull request description:

  Passing a symbol to `std::move` that is marked `const` is a no-op, which can be fixed in two ways:

  * Remove the `const`, or
  * Remove the `std::move`

ACKs for top commit:
  ryanofsky:
    Code review ACK fa875349e2. Looks good. Good for univalue to support c++11 move optimizations

Tree-SHA512: 3dc5cad55b93cfa311abedfb811f35fc1b7f30a1c68561f15942438916c7de25e179c364be11881e01f844f9c2ccd71a3be55967ad5abd2f35b10bb7a882edea
2022-08-31 08:38:24 +01:00
MacroFake
fa875349e2
Fix iwyu 2022-08-20 09:33:01 +02:00
glozow
1dc03dda05
[doc] remove non-signaling mentions of BIP125
Our RBF policy is different from the rules specified in BIP125. For
example, the BIP does not mention Rule 6, and our Rule 4 uses the
(configurable) incremental relay feerate (distinct from the
minimum relay feerate). Those interested in our policy should refer to
doc/policy/mempool-replacements.md instead. These rules may also
continue to diverge with package RBF and other RBF improvements. Keep
references to the BIP125 signaling wrt sequence numbers, since that is
still correct and widely used. It is helpful to refer to this as "BIP125
signaling" since it is unambiguous and succint, especially if we have
multiple ways to signal replaceability in the future.

The rule numbers in doc/policy/mempool-replacements.md correspond
largely to those of BIP 125, so we can still refer to them like "Rule 5."
2022-08-04 16:56:33 +01:00
MacroFake
fac812ca83
scripted-diff: Move mempool_args to src/node
It is part of the node library. Also, it won't be moved to the kernel
lib, as it will be pruned of ArgsManager.

-BEGIN VERIFY SCRIPT-
 # Move module
 git mv src/mempool_args.cpp src/node/
 git mv src/mempool_args.h   src/node/
 # Replacements
 sed -i 's:mempool_args\.h:node/mempool_args.h:g'     $(git grep -l mempool_args)
 sed -i 's:mempool_args\.cpp:node/mempool_args.cpp:g' $(git grep -l mempool_args)
 sed -i 's:MEMPOOL_ARGS_H:NODE_MEMPOOL_ARGS_H:g'      $(git grep -l MEMPOOL_ARGS_H)
-END VERIFY SCRIPT-
2022-08-02 15:31:01 +02:00