Close Menu
  • Home
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
What's Hot

7 Reasons Your Card Might Not Work — and What to Do 

April 6, 2026

The Best Trades Will Find You…If You Stop Looking for Them » Learn To Trade The Market

April 6, 2026

GSC Logging Error Yielded Inflated Impressions Since May 2025

April 6, 2026
Facebook X (Twitter) Instagram
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
Facebook X (Twitter) Instagram
Cointelegraphe
  • Home
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
Cointelegraphe
Home»Bitcoin»mempool policy – How much does the extra pool help with missing transactions for compact block reconstruction?
mempool policy – How much does the extra pool help with missing transactions for compact block reconstruction?
Bitcoin

mempool policy – How much does the extra pool help with missing transactions for compact block reconstruction?

adminBy adminSeptember 20, 2025No Comments2 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email


    def test_policy_rejection_types(self):
        """Test that each policy rejection type adds transactions to extra pool."""
        self.log.info("Testing policy rejection types for extra pool...")

        self.restart_node_with_limit(count=100)

        rejection_types = ["dust", "low_fee", "op_return_size", "nonstandard_script"]
        rejected_txs = []

        for rejection_type in rejection_types:
            self.log.info(f"Testing {rejection_type} rejection...")
            tx_info = self.create_policy_rejected_tx(rejection_type)

            tx_obj = tx_from_hex(tx_info['hex'])
            self.segwit_node.send_message(msg_tx(tx_obj))

            rejected_txs.append({
                'type': rejection_type,
                'tx_info': tx_info,
                'txid': tx_info['tx'].hash,
                'wtxid': tx_info['tx'].getwtxid()
            })

        self.segwit_node.sync_with_ping()

        mempool = self.nodes[0].getrawmempool()
        for rejected in rejected_txs:
            assert_equal(rejected['txid'] in mempool, False)
            self.log.info(f"✓ {rejected['type']} transaction rejected from mempool")

        indices = list(range(len(rejected_txs)))
        tx_list = [r['tx_info'] for r in rejected_txs]

        result = self.send_compact_block(tx_list, indices)

        assert_equal(result["missing_indices"], [])
        self.log.info("✓ All rejected transactions are available in extra pool")
    def test_extratxnpool_disabled(self):
        """Test that setting count to 0 disables the extra transaction pool."""
        self.log.info("Testing disabled extra transaction pool (0 capacity)...")

        self.restart_node_with_limit(count=0)
        buffersize = 5
        rejected_txs = self.populate_extra_pool(buffersize)

        indices = list(range(buffersize))
        result = self.send_compact_block(rejected_txs, indices)
        assert_equal(result["missing_indices"], indices)
        self.log.info(f"✓ All {buffersize} transactions are missing (extra txn pool disabled)")

These functional tests prove that extra pool helps in compact block reconstruction. With the increased limit for blockreconstructionextratxn and addition of blockreconstructionextratxnsize in v29.1, 20-40% rejected transactions can be cached in memory and used for block reconstruction.


Note: Extra pool evictions follow FIFO and it stores rejected transactions. So, an attacker can fill the extra pool with irrelevant transactions at no cost. It will affect the memory usage and compact block reconstruction.



Source link

block compact extra mempool Missing Policy pool reconstruction Transactions
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
admin
  • Website

Related Posts

7 Reasons Your Card Might Not Work — and What to Do 

April 6, 2026

Who Is Really Selling Bitcoin? Analyst Uncovers The On-chain Dynamics 

April 4, 2026

This Analyst Thinks Bitcoin’s 50% Crash Was A ‘Victory’

April 3, 2026

W3.io is Building the Digital Rails That Lead Creators to Bitcoin – Interview Bitcoin News

April 2, 2026
Add A Comment
Leave A Reply Cancel Reply

Top Insights

7 Reasons Your Card Might Not Work — and What to Do 

April 6, 2026

The Best Trades Will Find You…If You Stop Looking for Them » Learn To Trade The Market

April 6, 2026

GSC Logging Error Yielded Inflated Impressions Since May 2025

April 6, 2026

Polymarket just revealed a ‘full exchange upgrade’ to take control of its own trading and truth

April 6, 2026
ads

Subscribe to Updates

Get the latest creative news from Cointelegraphe about Crypto, bItcoin and Altcoin.

About Us
About Us

At CoinTelegraphe, we are dedicated to bringing you the latest and most insightful news, analysis, and updates from the dynamic world of cryptocurrency. Our mission is to provide our readers with accurate, timely, and comprehensive information to help them navigate the complexities of the crypto market.

Facebook X (Twitter) Instagram Pinterest YouTube
Top Insights

7 Reasons Your Card Might Not Work — and What to Do 

April 6, 2026

The Best Trades Will Find You…If You Stop Looking for Them » Learn To Trade The Market

April 6, 2026

GSC Logging Error Yielded Inflated Impressions Since May 2025

April 6, 2026
Get Informed

Subscribe to Updates

Get the latest creative news from Cointelegraphe about Crypto, bItcoin and Altcoin.

Please enable JavaScript in your browser to complete this form.
Loading
  • About us
  • Contact Us
  • Shop
  • Privacy Policy
  • Terms and Conditions
Copyright 2024 Cointelegraphe Design By Horaam Sultan.

Type above and press Enter to search. Press Esc to cancel.