Skip to main content
added 8 characters in body; added 40 characters in body
Source Link
chytrik
  • 18.4k
  • 3
  • 20
  • 48

is it possible to add transaction and its parent to the same block?

Yes, as long as A exists in the mempool when B is submitted, it will be allowed in the mempool, and can be in the same block, see Order of transactions within a block. A transaction with no validthat consumes invalid unspent outputs (UTXOs) will be rejected before it enters the mempool.

If a miner mines a block with a transaction (in this case B) with no valid unspent outputsthat has an invalid input (ie the UTXO it is spending does not exist), the block will be rejected when it is submitted because it is a block with invalid transactions.

is it possible to add transaction and its parent to the same block?

Yes, as long as A exists in the mempool when B is submitted, it will be allowed in the mempool, and can be in the same block, see Order of transactions within a block. A transaction with no valid unspent outputs (UTXOs) will be rejected before it enters the mempool.

If a miner mines a block with a transaction (in this case B) with no valid unspent outputs, the block will be rejected when it is submitted because it is a block with invalid transactions.

is it possible to add transaction and its parent to the same block?

Yes, as long as A exists in the mempool when B is submitted, it will be allowed in the mempool, and can be in the same block, see Order of transactions within a block. A transaction that consumes invalid unspent outputs (UTXOs) will be rejected before it enters the mempool.

If a miner mines a block with a transaction (in this case B) that has an invalid input (ie the UTXO it is spending does not exist), the block will be rejected when it is submitted because it is a block with invalid transactions.

Source Link
JBaczuk
  • 7.4k
  • 1
  • 14
  • 35

is it possible to add transaction and its parent to the same block?

Yes, as long as A exists in the mempool when B is submitted, it will be allowed in the mempool, and can be in the same block, see Order of transactions within a block. A transaction with no valid unspent outputs (UTXOs) will be rejected before it enters the mempool.

If a miner mines a block with a transaction (in this case B) with no valid unspent outputs, the block will be rejected when it is submitted because it is a block with invalid transactions.