Bitcoin Forum
May 21, 2024, 08:41:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin, some technical questions about light nodes  (Read 63 times)
daniel_san (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 2


View Profile
March 03, 2023, 04:01:54 AM
Merited by Welsh (2)
 #1

Hello everyone.
I'm studying bitcoin's underlying protocol and codebase but I'm struggling with some subjects.
1. I've read that light nodes aren't able to propagate transactions because they can't validate them, but in my opinion that doesn't make much sense because if it was true they would be lost resource. They could just propagte and leave the validation for full nodes. Can someone explain?
2. I understand that full nodes verify every transaction in the blockchain, but how is it done and if light nodes do it too, how they do it if they don't have the full copy of the blockchain?

Thanks in advance!
pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10572



View Profile
March 03, 2023, 04:45:47 AM
Merited by Welsh (3), ABCbits (2), hosseinimr93 (2)
 #2

They could just propagte and leave the validation for full nodes.
That could be abused for spamming invalid transactions through other people's computers. You'd just send the light node your invalid transaction and they send it to the full nodes they are connected to and get themselves banned.
Besides, the bitcoin network has enough full nodes that are relaying transactions so there is no need to use others.

Quote
2. I understand that full nodes verify every transaction in the blockchain, but how is it done and if light nodes do it too, how they do it if they don't have the full copy of the blockchain?
Light nodes cannot verify everything, that is why they are "light" after all.
A full node would verify a lot of things including whether or not the inputs the transaction is spending were spent before which requires the full node to have downloaded the whole blockchain to that point and have built a database of UTXOs. The full node also verifies all the scripts (including signature verification) in the transaction's inputs.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6753


bitcoincleanup.com / bitmixlist.org


View Profile WWW
March 03, 2023, 08:14:48 AM
Merited by Welsh (1)
 #3

Light nodes can broadcast their own transactions to other (full) nodes, whereas the full nodes will both validate the transaction and relay it to other nodes.

It is technically possible for anyone to relay a transaction, but it would have to be placed inside a full node's mempool to actually get mined.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
witcher_sense
Legendary
*
Offline Offline

Activity: 2352
Merit: 4369


🔐BitcoinMessage.Tools🔑


View Profile WWW
March 03, 2023, 08:44:42 AM
 #4

2. I understand that full nodes verify every transaction in the blockchain, but how is it done and if light nodes do it too, how they do it if they don't have the full copy of the blockchain?
They don't and they don't have to.


Any bitcoin-related software capable of creating, receiving and broadcasting transactions is technically a node, that is, it can be considered a part of bitcoin network. Despite the fact that light nodes are limited in their ability to verify validity of data coming from other node, they still play a very important role of providing mobile communication for bitcoin users. The only thing you need to spin up a light node is minimum hardware and working internet connection. You can have thousands of light nodes for no additional cost in terms of storage or bandwidth. You can create your network of nodes in which all light nodes will be connected to your own full node, and that will allow you to transact from any part of the world without having to rely on third-party solutions. In fact, without light nodes, the adoption of bitcoin technology is impossible because not all people are going to run personal servers with bitcoin software installed, most of them will be connecting to Uncle Jim's server, whom they fully trust.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!