Communities

Kaspa Q&A
Kaspa Q&A
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Kaspa Q&A

Post History

50%
+0 −0
Kaspa Q&A Fees and VSPC(Virtual Selected Parent Chain)

This is a response from Gemini. The core question is: "In Kaspa, if multiple non-parent blocks simultaneously include the same transaction, who gets the fee?" In short, the transaction fee is awa...

posted 24d ago by Mai‭  ·  edited 24d ago by someone235‭

Answer
#2: Post edited by user avatar someone235‭ · 2025-11-01T05:54:58Z (24 days ago)
Remove non English parts
  • This is a response from Gemini.
  • The core question is: **"In Kaspa, if multiple non-parent blocks simultaneously include the same transaction, who gets the fee?"**
  • In short, the transaction fee is awarded entirely to the miner whose block is chosen by the **GhostDAG consensus** to effectively process the transaction first. **Fees are not split.**
  • ### Key Points:
  • 1. **VSPC Determines Order (VSPCが順序を決定):** The GhostDAG protocol defines a **VSPC (Virtually Selected Parent Chain)**, which establishes a single, definitive order for all transactions in the DAG.
  • 2. **Winner Takes Fee (勝者が手数料を総取り):** The block (Block A) whose transaction (Transaction T) appears **first** in the VSPC order is deemed **valid**. The miner of Block A receives the entire transaction fee.
  • 3. **Losers' Transactions are Invalid (敗者のトランザクションは無効):** Any other simultaneously generated blocks (Block B, C, etc.) that also included Transaction T will have their version of T marked as **invalid (double-spend)**, as the coin used by T has already been spent by Block A's processing. The miners of these blocks receive **no transaction fee** for that specific transaction.
  • Therefore, while multiple blocks might contain the same transaction, only the one that achieves **final, valid inclusion** via the VSPC gets the fee.
  • This is a response from Gemini.
  • The core question is: **"In Kaspa, if multiple non-parent blocks simultaneously include the same transaction, who gets the fee?"**
  • In short, the transaction fee is awarded entirely to the miner whose block is chosen by the **GhostDAG consensus** to effectively process the transaction first. **Fees are not split.**
  • ### Key Points:
  • 1. **VSPC Determines Order:** The GhostDAG protocol defines a **VSPC (Virtually Selected Parent Chain)**, which establishes a single, definitive order for all transactions in the DAG.
  • 2. **Winner Takes Fee:** The block (Block A) whose transaction (Transaction T) appears **first** in the VSPC order is deemed **valid**. The miner of Block A receives the entire transaction fee.
  • 3. **Losers' Transactions are Invalid:** Any other simultaneously generated blocks (Block B, C, etc.) that also included Transaction T will have their version of T marked as **invalid (double-spend)**, as the coin used by T has already been spent by Block A's processing. The miners of these blocks receive **no transaction fee** for that specific transaction.
  • Therefore, while multiple blocks might contain the same transaction, only the one that achieves **final, valid inclusion** via the VSPC gets the fee.
#1: Initial revision by user avatar Mai‭ · 2025-10-31T14:39:29Z (24 days ago)
This is a response from Gemini.

The core question is: **"In Kaspa, if multiple non-parent blocks simultaneously include the same transaction, who gets the fee?"**

In short, the transaction fee is awarded entirely to the miner whose block is chosen by the **GhostDAG consensus** to effectively process the transaction first. **Fees are not split.**

### Key Points:

1.  **VSPC Determines Order (VSPCが順序を決定):** The GhostDAG protocol defines a **VSPC (Virtually Selected Parent Chain)**, which establishes a single, definitive order for all transactions in the DAG.
2.  **Winner Takes Fee (勝者が手数料を総取り):** The block (Block A) whose transaction (Transaction T) appears **first** in the VSPC order is deemed **valid**. The miner of Block A receives the entire transaction fee.
3.  **Losers' Transactions are Invalid (敗者のトランザクションは無効):** Any other simultaneously generated blocks (Block B, C, etc.) that also included Transaction T will have their version of T marked as **invalid (double-spend)**, as the coin used by T has already been spent by Block A's processing. The miners of these blocks receive **no transaction fee** for that specific transaction.

Therefore, while multiple blocks might contain the same transaction, only the one that achieves **final, valid inclusion** via the VSPC gets the fee.