Homework on Bitcoin Ecosystem - Questions

  1. an SPV trusts the node it is connected to and query
  2. The transaction is sent to all the nodes to update the ledger
  3. The highest fee wins.
1 Like
  1. What is the difference between a SPV (simplified payment verification) and a full node?

An SPV, unlike a full node, does not have a complete version of the blockchain and instead will query nearby nodes (by proxy) to confirm transactions (as is often the case on a ā€œhosted walletā€ I.e. app on your mobile phone)

  1. What does it mean when a transaction is broadcasted?

When a transaction is broadcasted this means that it is propagated by your wallet (and signed by the private key after the wallet constructs the transaction) to other nearby nodes - and is they find that it ā€œmakes senseā€ they will propagate it further (and it is added to the mempool) until a miner is able to write into the blockchain (only after which it could be confirmed).

  1. How does a miner pick which transactions that gets added to the next block?

A miner will typically search the mempool for transactions that offer the highest fees, as they are financially incentivised by paying huge amounts in electricity costs, to firstly cover costs and then maximise profitability.

1 Like

While it is indeed true an SPV must trust a full node it connects to. The main difference is that SPVs don’t contain the entire copy of the blockchain.

1 Like

Hi!

Thank you for your response!

I thought the idea that the SPV queries the node it was attached to indicated that fact.

Don Beelow

1 Like
  1. Full nodes store the hole blockchain while SPVs mostly store transactions relevant to its addresses and requires a full node to send transactions.

  2. The node accepts a new transaction and propagates it through the network.

  3. The miner picks the transactions with the highest sat/B ratio first.

1 Like
  1. SPV stores only a part of the blockchain version (headers and transactions which is involved) and is connected to a full node. They can query to find relevant information about blockchain.

  2. The transaction is propagate through network.

  3. Transactions which offers higher fees are select first from mempool.

1 Like

Yes. Only miners can validate and confirm the transactions. :smiley:

I’m sorry if I didn’t understand your answer :slight_smile: however queriying is not really specific (full nodes query each other all the time to stay in sync). SPV indeed does specific queries and also holds parts of the blockchains specific to the keys it stores. :slight_smile:

1 Like

What is the difference between a SPV (simplified payment verification) and a full node?
A: SPV uses block header info and merkle roots to validate your transaction without needing to concern yourself about other transactions. A full node keeps a complete copy of the entire updated blockchain at all times.

What does it mean when a transaction is broadcasted?
A: When a UTXO is used as an output in a transaction that transaction is ā€œbroadcastedā€ to all nodes on the blockchain in order to achieve consensus. It is then added to the blockchain by all full nodes.

How does a miner pick which transactions that gets added to the next block?
A: Miners typically pick the highest transaction fees available in the mempool.

1 Like
  1. An SPV is a node that odes not have a complete copy of the network blockchain, i.e. like your phone which can allow validity for transactions.

  2. When your wallet inquires the blockchain for your Unspent transactions (UTXOs) it then can construct your desired desired transaction creating a hash which includes your inputs, your outputs, and your fees. Because it has your private keys, it can sign your transaction and send it to the blockchain where it will be propagated to all the nodes and, until confirmed, the transaction will appear in the nodes’ mempool or list of unconfirmed transactions for miners to use.

  3. Miners also have nodes and mempools and/or theycontact other nodes to select transactions to create their blocks. They are incentivized to choose transactions that will yield the highest fees since fees are calculated on the satoshi per byte rate and miners use this to create their blocks.

1 Like

Answers:

  1. A SPV is a system which generates or verify a transaction, whereas a full node is a complete copy of a blockchain from the beginning which stores all the UTXOs data.

  2. It means a transaction data will be store in a node is ready to be pick up by miners to verify the authenticity and mine.

  3. Since a miner is motivated by being incentivized, they therefore will pick a transaction which pays highest satoshi per byte. Sometimes they take into consideration a block reward but many times they still prioritised Sats/b.

1 Like

An SPV can only generate transactions with its own private key. It needs to send the signed transaction to a full node for verification and propagation. :slight_smile:

What exactly do you mean by this? Each block has to have a block reward. You mean they would want to mine an empty block? Because that happens sometimes.

1 Like
  1. SPV does not have a copy of the blockchain, thus it must rely on a full node to query the blockchain data from a nearby full node.
  2. A transaction is broadcasted means that a transaction is being propogated through out all the nodes in the network.
  3. A miner picks a transaction in the mempool with the highest fees.
1 Like

SPVs do have some parts of the blockchain, mostly just the parts that are relevant to the keys they hold :slight_smile:

1 Like
  1. The difference is that the full node does : Mining; SPV; Wallet (send and receive transactions) and keep a full record of the whole blockchain.

  2. It means that is communicated to the whole network.

  3. The miner picks the transaction that pays the higher fee.

Not all full nodes are mining. It’s optional. Infact many people are mining in a mining pool where you even don’t need a full node. The pool has a full node and miners are helping to hash.
Full nodes just have a copy of the blockchain and validate every transaction and blocks to check if Everthing is correct according to the consensus rules.

Spv’s Don’t have a full copy of the blockchain, but they query other full nodes to retrieve information that only is important for your specific addresses

May I confirm that An SPV can only generate transactions with its own private key but not verify the data? :smile:

What I meant on question 2 was, a miner will prioritsed a higher satoshi/Byte fees. Sometimes they do take into consideration of a block reward if its a block of very high value. More often than not, from my understanding is, they will always look at sats/byte.

Thank you once again!

1 Like
  1. What is the difference between a SPV (simplified payment verification) and a full node?
    Full node has full blockchain stored and SPV only has partial part of the chain stored.

  2. What does it mean when a transaction is broadcasted?
    It means that the transaction get submitted and propagated to all the nodes to get included into the new blocks.

  3. How does a miner pick which transactions that gets added
    to the next block?
    The miner picks the transaction with the most fees.

1 Like

Hello Fabrice, thank you for your comment.

I’m not saying that all full nodes are mining. I’m answering the question which was :What is the difference between a SPV (simplified payment verification) and a full node?

Capture d’écran 2020-06-29 aĢ€ 11.22.25

Source: Andreas book Mastering Bitcoin

1 Like
  1. What is the difference between a SPV (simplified payment verification) and a full node?
    the difference is that SPV wallets do not actually store all UTXO data, they must get info from a full node sort of like a ā€˜ā€˜Bootstrap node’’ vs a Local Node.
  2. What does it mean when a transaction is broadcasted?
    This occurs when full nodes share transactions with other full nodes.
  3. How does a miner pick which transactions that gets added to the next block?
    Miners are incentivezed to maximize earnings therefore they prefere and give priority to transactions with the highest fee per bytes.
1 Like