refactor: Rename signal TransactionRemovedFromMempool to better describe behavior #19520

pull instagibbs wants to merge 1 commits into bitcoin:master from instagibbs:not_block changing 4 files +11 −11
  1. instagibbs commented at 5:48 PM on July 14, 2020: member

    No description provided.

  2. DrahtBot commented at 7:00 PM on July 14, 2020: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #19572 (ZMQ: Create "sequence" notifier, enabling client-side mempool tracking by instagibbs)
    • #18354 (Use shared pointers only in validation interface by bvbfan)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  3. DrahtBot added the label Mempool on Jul 14, 2020
  4. DrahtBot added the label Validation on Jul 14, 2020
  5. MarcoFalke commented at 7:10 AM on July 15, 2020: member

    why not as a scripted diff?

  6. instagibbs force-pushed on Jul 15, 2020
  7. instagibbs commented at 2:02 PM on July 15, 2020: member

    Because I had to learn the tool :smirk:

  8. scripted-diff: Rename signal TransactionRemovedFromMempool to better describe behavior
    -BEGIN VERIFY SCRIPT-
    git grep -l 'TransactionRemovedFromMempool' | xargs sed -i 's/TransactionRemovedFromMempool/TransactionRemovedFromMempoolNotConfirmed/g'
    -END VERIFY SCRIPT-
    bf36bc9369
  9. instagibbs force-pushed on Jul 15, 2020
  10. fanquake renamed this:
    Rename signal TransactionRemovedFromMempool to better describe behavior
    refactor: Rename signal TransactionRemovedFromMempool to better describe behavior
    on Jul 28, 2020
  11. fanquake commented at 8:00 AM on July 28, 2020: member

    Because I had to learn the tool 😏

    Looks like you didn't do a very good job 😏

    Running script for: bf36bc9369a86198c0f24871dadc168f9db6fa7c
    
    git grep -l 'TransactionRemovedFromMempool' | xargs sed -i 's/TransactionRemovedFromMempool/TransactionRemovedFromMempoolNotConfirmed/g'
    
    diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
    
    index 8eec00993..4d67cac72 100644
    
    --- a/src/wallet/wallet.cpp
    
    +++ b/src/wallet/wallet.cpp
    
    @@ -1829,7 +1829,7 @@ bool CWalletTx::SubmitMemoryPoolAndRelay(std::string& err_string, bool relay)
    
         //
    
         // Irrespective of the failure reason, un-marking fInMempool
    
         // out-of-order is incorrect - it should be unmarked when
    
    -    // TransactionRemovedFromMempool fires.
    
    +    // TransactionRemovedFromMempoolNotConfirmed fires.
    
         bool ret = pwallet->chain().broadcastTransaction(tx, pwallet->m_default_max_tx_fee, relay, err_string);
    
         fInMempool |= ret;
    
         return ret;
    
    Failed
    

    Also please add a PR description.

  12. instagibbs commented at 1:24 PM on July 29, 2020: member

    I'll learn the tool in a new life I guess

  13. instagibbs closed this on Jul 29, 2020

  14. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me