Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Jun 11, 2018

This changes the default behaviour of sendrawtransaction rpc to respect transaction policy rules but gives an option to opt out and bypass these limits. The default behaviour should be good for every non-mining node, since free/low-fee transactions won't be accepted by other nodes by default anyway. Mining nodes might want to use the new param to inject free/low-fee txes into their own mempool via rpc to include them into blocks (for whatever reason) but if there is no need for such use cases then the default behaviour should be just fine for mining nodes as well.

Note: transition from fLimitFree to fBypassLimits/bypasslimits is a preparation for future changes in AcceptToMemoryPool() so that we won't have to flip rpc param name/logic later.

morcos and others added 2 commits June 11, 2018 14:27
The prioritisetransaction API can always be used if a transaction needs to be submitted that bypasses minRelayTxFee.
Add new rpc param to sendrawtransaction to have an ability to tweak its behaviour.
Default is `false` i.e. "do not bypass".
@UdjinM6 UdjinM6 added this to the 12.3 milestone Jun 11, 2018
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 merged commit 8d8fdb4 into dashpay:develop Jun 12, 2018
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
…fault (dashpay#2110)

* [rpc] sendrawtransaction no longer bypasses minRelayTxFee

The prioritisetransaction API can always be used if a transaction needs to be submitted that bypasses minRelayTxFee.

* Allow to bypass transaction policy limits in sendrawtransaction

Add new rpc param to sendrawtransaction to have an ability to tweak its behaviour.
Default is `false` i.e. "do not bypass".

* fix
@UdjinM6 UdjinM6 deleted the nobypassraw branch November 26, 2020 13:27
PastaPastaPasta added a commit that referenced this pull request Oct 7, 2024
, bitcoin#23157, bitcoin#23173, bitcoin#23249, bitcoin#23211, bitcoin#22677, bitcoin#23649, bitcoin#23683, bitcoin#23636, bitcoin#22626  (auxiliary backports: part 17)

8c3ff61 chore: apply some `clang-format-diff.py` suggestions (Kittywhiskers Van Gogh)
aa1f56f merge bitcoin#22626: Remove txindex migration code (Kittywhiskers Van Gogh)
145d94d merge bitcoin#23636: Remove GetAdjustedTime from init.cpp (Kittywhiskers Van Gogh)
150ca00 merge bitcoin#23683: valid but different LockPoints after a reorg (Kittywhiskers Van Gogh)
e85862b merge bitcoin#23649: circular dependency followups (Kittywhiskers Van Gogh)
8ab9929 merge bitcoin#22677: cut the validation <-> txmempool circular dependency (Kittywhiskers Van Gogh)
ee49383 merge bitcoin#23211: move `update_*` structs from txmempool.h to .cpp file (Kittywhiskers Van Gogh)
3d769c7 merge bitcoin#23249: ParseByteUnits - Parse a string with suffix unit (Kittywhiskers Van Gogh)
edd0bab chore: remove superfluous `ParseHDKeypath` definition (Kittywhiskers Van Gogh)
0073b66 refactor: migrate some Dash code to use `ChainstateManager::ProcessTransaction` (Kittywhiskers Van Gogh)
c8571c0 merge bitcoin#23173: Add `ChainstateManager::ProcessTransaction` (Kittywhiskers Van Gogh)
a21bfd0 merge bitcoin#23157: improve performance of check() and remove dependency on validation (Kittywhiskers Van Gogh)
b35dc72 merge bitcoin#23185: Add ParseMoney and ParseScript tests (Kittywhiskers Van Gogh)
7c03133 merge bitcoin#22987: Fix "RuntimeError: Event loop is closed" on Windows (Kittywhiskers Van Gogh)
ba60d54 merge bitcoin#22772: hasher cleanup (follow-up to bitcoin#19935) (Kittywhiskers Van Gogh)

Pull request description:

  ## Additional Information

  * When backporting [bitcoin#23173](bitcoin#23173), `bypass_limits` had to be extended to `ChainstateManager::ProcessTransaction()` as Dash allows the `sendrawtransaction` RPC to bypass limits with the optional `bypasslimits` boolean (introduced in [dash#2110](#2110)).

    The bool arguments are not in alphabetical order to prevent breakage with Bitcoin code that expects `bypass_limits` to always be `false`.

  ## Breaking Changes

  None expected.

  ## Checklist

  - [x] I have performed a self-review of my own code
  - [x] I have commented my code, particularly in hard-to-understand areas **(note: N/A)**
  - [x] I have added or updated relevant unit/integration/functional/e2e tests
  - [x] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  UdjinM6:
    utACK 8c3ff61
  PastaPastaPasta:
    utACK 8c3ff61

Tree-SHA512: ea1eaad7279b6608a07c1175e5c3b44385d42e33afa8ce5160d871fc9b37a014e9981eafca379ac3ad6dc141b5fda6f1e676b4cc9658a6d1775fe929a134ff67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants