Close Menu
  • Home
  • Bitcoin
    • Bitcoin Atm Machines
    • Bitcoin Books
      • Bitcoin Jobs
        • Bitcoin Price Prediction
        • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gifts
    • Bitcoin Gift Card
    • Bitcoin Mining
    • Bitcoin Wallets
  • Technology
  • Shop
    • Bitcoin Atm Machine
    • Bitcoin Coins
    • Bitcoin Coins, Wallets,Shirts,Books,Gifts
    • Bitcoin Mining Machine
    • Bitcoin Mining Machine Full Set Up
    • Computers and Accessories
    • USB Flash Drives
    • Mini Bitcoin Mining Machine
What's Hot

Artificial Superintelligence Alliance Whales Purchase Mpeppe (MPEPE) Before Its Enters Stage 4

March 18, 2025

Tesla’s China Rivals Report Steady August Sales Performance Amid Intense Price Competition: What Investors Should Know – XPeng (NYSE:XPEV), NIO (NYSE:NIO), Li Auto (NASDAQ:LI)

March 18, 2025

IEEE President’s Note: Why Students Should Stay with IEEE

March 18, 2025
Facebook X (Twitter) Instagram
  • Bitcoin
  • Bitcoin Books
  • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gift Card
Facebook X (Twitter) Instagram
farm-bitcoin.com
  • Home
  • Bitcoin
    • Bitcoin Atm Machines
    • Bitcoin Books
      • Bitcoin Jobs
        • Bitcoin Price Prediction
        • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gifts
    • Bitcoin Gift Card
    • Bitcoin Mining
    • Bitcoin Wallets
  • Technology
  • Shop
    • Bitcoin Atm Machine
    • Bitcoin Coins
    • Bitcoin Coins, Wallets,Shirts,Books,Gifts
    • Bitcoin Mining Machine
    • Bitcoin Mining Machine Full Set Up
    • Computers and Accessories
    • USB Flash Drives
    • Mini Bitcoin Mining Machine
farm-bitcoin.com
Home » unconfirmed transactions – What specific verifications are done on a fresh Bitcoin TX and in what order?
unconfirmed transactions – What specific verifications are done on a fresh Bitcoin TX and in what order?
Bitcoin

unconfirmed transactions – What specific verifications are done on a fresh Bitcoin TX and in what order?

adminBy adminMarch 18, 2025No Comments3 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email


Yes, we check unconfirmed transactions to the full extent of what’s possible to do before they are included in the block, including that the scripts are valid and input scripts resolve the spending conditions defined in the corresponding output scripts. Anything that we have in our mempool is valid to be included in the next block. We even cache script validation, so when we get a new block, we do not need to check the scripts again for transactions that were in our mempool, we just need to ensure that the block is well-formed, no conflicting transactions are included in the block, and check any previously unseen transactions in full.

As to what checks are performed on transactions when they are submitted to the mempool, I have been poking around a bit in the function calls that follow a ProcessTransaction call. This is just a quick rundown from stepping through the functions and may be incomplete or not completely in order.

It seems to me that via AcceptToMemoryPool and AcceptSingleTransaction first CheckTransaction does some basic context-free checks:

  • The transaction has at least one input and one output
  • The transaction is not bigger than the block size
  • Each output amount is at least 0
  • The outputs are in in sum less than 21 M₿
  • There are no duplicate inputs
  • That outpoints referenced in inputs are not undefined
  • If it‘s a coinbase, the coinbase field is not too long

After that PreChecks continues with:

  • Checking that the transaction is not a loose coinbase transaction
  • Rejecting outputs with excessive amounts of null data, bare multisig, or dust outputs that cause transaction to be non-standard
  • Rejecting transactions shorter than 65 bytes of non-witness data
  • Refusing immature timelocked transactions
  • Skipping transactions that are already in the mempool with the same wtxid or txid
  • Scanning for conflicting inputs and rejecting conflicts with non-replaceable transactions (otherwise teeing up a replacement attempt evaluation)
  • Checking whether the UTXOs spent by the inputs are in our UTXO set, placing any transaction with unknown inputs into the orphanage
  • Checking whether any CSV-locked inputs are mature for mining

At this point, PreChecks calls CheckTxInputs:

  • Checking that any coinbase outputs are mature
  • Checking that input amounts are in range
  • Checking that the input amounts can pay for the new outputs created
  • Checking that the transaction fee is in range

Back in PreChecks, it now checks:

  • That the inputs are standard
  • That the inputs have standard witnesses if applicable
  • That the SigOps limits are met
  • That the transaction meets the minimum feerate
  • That any replacement attempts do not exceed the conflict limits
  • That any transactions do not exceed ancestor or descendant limits

After the PreChecks, AcceptSingleTransaction:

  • Checks that the maximum feerate is not exceeded
  • That a replacement would succeed
  • and finally that the transaction passes policy script checks and consensus script checks

So, in fact, any transaction that lands in our mempool is eligible to be picked into the next block.



Source link

Post Views: 35
Bitcoin Fresh Order specific transactions Unconfirmed verifications
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
admin
  • Website

Related Posts

Artificial Superintelligence Alliance Whales Purchase Mpeppe (MPEPE) Before Its Enters Stage 4

March 18, 2025

PEPE Whales Set Out To Be Bullish With FOLKI and Mpeppe (MPEPE) With 500x Gains Between Them

March 18, 2025

private key – Safest way of long term holding

March 18, 2025

Restoring trust and equity in the digital age through decentralized AI

March 18, 2025
Add A Comment
Leave A Reply Cancel Reply

Subscribe to Updates

Get the latest creative news from farm-bitcoin about crypto, bitcoin, business and technology.

Please enable JavaScript in your browser to complete this form.
Loading
About Us
About Us

At Farm Bitcoin, we are passionate about unlocking the potential of cryptocurrency and blockchain technology. Our mission is to make the world of digital currencies accessible and understandable for everyone, from beginners to seasoned investors. We believe that cryptocurrency represents the future of finance, and we are here to guide you through this exciting landscape.

Top Insights

Artificial Superintelligence Alliance Whales Purchase Mpeppe (MPEPE) Before Its Enters Stage 4

March 18, 2025

Tesla’s China Rivals Report Steady August Sales Performance Amid Intense Price Competition: What Investors Should Know – XPeng (NYSE:XPEV), NIO (NYSE:NIO), Li Auto (NASDAQ:LI)

March 18, 2025

IEEE President’s Note: Why Students Should Stay with IEEE

March 18, 2025
Get Informed

Subscribe to Updates

Get the latest creative news from farm-bitcoin about crypto, bitcoin, business and technology.

Please enable JavaScript in your browser to complete this form.
Loading
Facebook X (Twitter) Instagram Pinterest
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
Copyright 2024 Farm Bitcoin Design By Prince Ayaan.

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

Go to mobile version