Bitcoin Forum
April 23, 2024, 12:54:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Do pruned nodes help the network?  (Read 187 times)
dragospirvu75x (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 24


View Profile
August 25, 2022, 05:36:36 AM
Merited by ABCbits (1)
 #1

Hello, I've an old laptop which I can let open 24/7, but it has low storage (160 GB), so I can't run a full node. Does a prune nodes helps the network, if I allow incoming connections?
1713876866
Hero Member
*
Offline Offline

Posts: 1713876866

View Profile Personal Message (Offline)

Ignore
1713876866
Reply with quote  #2

1713876866
Report to moderator
1713876866
Hero Member
*
Offline Offline

Posts: 1713876866

View Profile Personal Message (Offline)

Ignore
1713876866
Reply with quote  #2

1713876866
Report to moderator
1713876866
Hero Member
*
Offline Offline

Posts: 1713876866

View Profile Personal Message (Offline)

Ignore
1713876866
Reply with quote  #2

1713876866
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713876866
Hero Member
*
Offline Offline

Posts: 1713876866

View Profile Personal Message (Offline)

Ignore
1713876866
Reply with quote  #2

1713876866
Report to moderator
1713876866
Hero Member
*
Offline Offline

Posts: 1713876866

View Profile Personal Message (Offline)

Ignore
1713876866
Reply with quote  #2

1713876866
Report to moderator
1713876866
Hero Member
*
Offline Offline

Posts: 1713876866

View Profile Personal Message (Offline)

Ignore
1713876866
Reply with quote  #2

1713876866
Report to moderator
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16540


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
August 25, 2022, 05:44:19 AM
Merited by pooya87 (2), ABCbits (1)
 #2

I tested this a while back, and it did upload more than it downloaded per day. But it will take a long time to "make up" for the 450 GB it has to download first.
I wouldn't run a laptop just for this. It's not worth the electricity, and considering it has a small disk, it's probably low on RAM too.

Old laptops are good for running untrusted wallets though, that's what I do:
I've added this to my toolbox for my Fork Claiming Service: a space laptop with 2 Linux distributions installed in dual boot. The first is to work on, the second doesn't have internet and now has 5 partition images:
1. A fresh installation with VPN
2. A fresh installation with VPN and BCH full client, synced up to 2010, and set to prune. And BCH's Electrum Fork.
3. A fresh installation with VPN and BTG full client, synced up to 2010, and set to prune. And BTG's Electrum Fork (using wine).
4. A fresh installation with VPN and BCD full client, synced up to 2010, and set to prune. And BCD's Electrum Fork.
5. A fresh installation with VPN and eCash full client, synced up to 2010, and set to prune. And eCash'es Electrum Fork.
The laptop doesn't have enough disk space to keep all full clients.

This setup makes it much easier to handle Forkcoins: I restore the partition I need, boot into it, import the address/pubkey, and let it sync. When done, I take it offline, enter the private key, and create a raw transaction to transfer funds. After that, I boot into the second Linux distribution to overwrite the first partition. This makes offline signing relatively easy without ever risking the private key to untrusted software.
All this fits on 160 GB Smiley

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10495



View Profile
August 25, 2022, 08:52:25 AM
Merited by hosseinimr93 (4), ABCbits (3), mocacinno (1)
 #3

"help the network" is a broad spectrum. There is a bunch of things that a bitcoin node does. One of them is to send historical blocks to other peers, which a pruned node can not do.

Other than that a pruned node does everything else:
- It enforces the consensus rules by downloading and verifying everything and rejecting anything that is invalid (eg. an invalid tx sent to its mempool).
- It can validate and relay transactions and help propagate then through the network
- It can validate and relay new blocks and blocks in recent history (like past 1-2 days) depending on the dedicated disk size
- It can show support about changes like soft forks we rarely have
- And of course it helps keep Bitcoin network decentralized
- They can even provide some services to light clients (I don't think they do though, they just can)

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

Activity: 3248
Merit: 4110


View Profile
August 25, 2022, 11:16:13 AM
 #4

Yeah, to put it basically. Although, less than a full node. Unless you want to do it as a hobby, we probably would prefer full nodes to pruned nodes. Although, it's not like the network is in dire need, so while every node does count, it really depends on what your motivations are. You aren't going to earn from it, and you aren't going to be giving the full benefits to the network, however you will be providing more of a contribution by running a pruned node, than without running one at all.

So, it depends on your situation, and whether or not you can justify the costs associated with running a pruned node, whether it's worth it or not.

Old laptops are good for running untrusted wallets though, that's what I do:
All this fits on 160 GB Smiley
Just out of curiosity, how are you handling the downloading, and transferring of these untrusted wallets? I usually do it via Qubes OS so everything is isolated, and no need for a old computer, unless of course you want physical isolation, which is always going to be theoretically better than virtualisation.
dkbit98
Legendary
*
Offline Offline

Activity: 2212
Merit: 7063


Cashback 15%


View Profile WWW
August 25, 2022, 11:17:33 AM
 #5

Hello, I've an old laptop which I can let open 24/7, but it has low storage (160 GB), so I can't run a full node. Does a prune nodes helps the network, if I allow incoming connections?
How old is your laptop exactly, what processor it has, and is 160 GB storage SSD or HDD?
It's sure safer to run pruned node than regular spv wallets with using someone else node, but I am not sure how much this contributes to the network.

I wouldn't run a laptop just for this. It's not worth the electricity, and considering it has a small disk, it's probably low on RAM too.
Can you estimate how much electricity is spent for running pruned node compared to running normal laptop system?
I think old laptops spend a lot of energy for screens and processors, but turning off screen can reduce consumption.
Used RAM is cheap so I don't think that would be a problem, if it's not soldered and can be upgraded.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Welsh
Staff
Legendary
*
Offline Offline

Activity: 3248
Merit: 4110


View Profile
August 25, 2022, 11:19:29 AM
Merited by pooya87 (2)
 #6

Can you estimate how much electricity is spent for running pruned node compared to running normal laptop system?
I think old laptops spend a lot of energy for screens and processors, but turning off screen can reduce consumption.
Used RAM is cheap so I don't think that would be a problem, if it's not soldered and can be upgraded.
You could probably measure this by getting one of those power consumption plug ins, and running both a pruned, and full node for an extended time. I doubt anyone has looked as this though. I imagine the differences aren't all that much in terms of energy consumption. Especially if you're running it on a cmd line based system, rather than a graphical interface.

Might be something I'm interested in doing though. If anyone has any thoughts on the best way of going about measuring the consumption of both, I'd like to hear them.
dkbit98
Legendary
*
Offline Offline

Activity: 2212
Merit: 7063


Cashback 15%


View Profile WWW
August 25, 2022, 11:35:14 AM
 #7

You could probably measure this by getting one of those power consumption plug ins, and running both a pruned, and full node for an extended time. I doubt anyone has looked as this though.
I have one of this devices you can plug in electric socket and measure how electricity is spent by any device, but I never tested this with laptop running bitcoin node.
If someone wants to save on electric bills I would rather use Raspberry Pi, that spends much less than any laptop but downside is much slower cpu speed.
Bigger older screens with higher resolution needs more power, but you don't really need screen all the time.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16540


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
August 25, 2022, 11:37:13 AM
Last edit: August 25, 2022, 01:25:13 PM by LoyceV
Merited by dkbit98 (1)
 #8

Old laptops are good for running untrusted wallets though, that's what I do:
All this fits on 160 GB Smiley
Just out of curiosity, how are you handling the downloading, and transferring of these untrusted wallets?
I use CoinMarketcap.com to find the "official" website, and then just download the wallet from there. With VPN, of course.

Quote
I usually do it via Qubes OS so everything is isolated, and no need for a old computer, unless of course you want physical isolation, which is always going to be theoretically better than virtualisation.
I don't want Qubes OS as my main system, so if I need another system for it anyway, I could just as well wipe the entire disk when needed.

Can you estimate how much electricity is spent for running pruned node compared to running normal laptop system?
I don't think the pruned node adds much to the power consumption, it's the fact that it's on 24/7 instead of being tucked away in a drawer that adds to the cost.
Let's take a small old laptop and assume it takes 15W. That's 130 kWh/year. I've seen quotes of people paying $0.05 per kWh, but here new contracts go around €0.80 nowadays. So I guess it depends on where you are. Chances are a VPS is cheaper if you pay those very high rates.

Quote
I think old laptops spend a lot of energy for screens and processors, but turning off screen can reduce consumption.
Used RAM is cheap so I don't think that would be a problem, if it's not soldered and can be upgraded.
With 160 GB, I think of an old 1 GB netbook. You may be able to upgrade, but it won't accept more than 2 GB.

Might be something I'm interested in doing though. If anyone has any thoughts on the best way of going about measuring the consumption of both, I'd like to hear them.
I expect the CPU to matter much more than anything else. Rule of thumb: if it needs a fan, it's not good.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Welsh
Staff
Legendary
*
Offline Offline

Activity: 3248
Merit: 4110


View Profile
August 25, 2022, 11:41:37 AM
Merited by LoyceV (4)
 #9

I use CoinMarketcap.com to find the "official" website, and then just download the wallet from there. With VPN, of course.
I suppose you're running it on a Linux system, without running the software on that device that's connected to the internet? Hey, you've been doing it for a while so nothing wrong with your approach, I was just wondering, since I'm very cautious of unknown applications, even when running on Linux. Strictly downloading the software, isolating it, so that it doesn't compromise to machine or the network. Network is the weakest point in your process I'd assume, but if you aren't executing it on a internet connected device, then I suppose the risk is minimal anyway.

I expect the CPU to matter much more than anything else. Rule of thumb: if it needs a fan, it's not good.
Yeah, anything that requires motion is going to be the biggest power consumptions. So, ideally you'd be running it on a SD card potentially, and without a fan. Then, you'll have the least power consumption as possible.
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16540


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
August 25, 2022, 01:37:35 PM
 #10

I suppose you're running it on a Linux system, without running the software on that device that's connected to the internet? Hey, you've been doing it for a while so nothing wrong with your approach, I was just wondering, since I'm very cautious of unknown applications, even when running on Linux. Strictly downloading the software, isolating it, so that it doesn't compromise to machine or the network. Network is the weakest point in your process I'd assume, but if you aren't executing it on a internet connected device, then I suppose the risk is minimal anyway.
So you mean my local network could be at risk? That wasn't on top of my list of concerns, but I guess it's possible. I wouldn't know how to avoid that though, given that I have to download the blockchain.

Quote
Yeah, anything that requires motion is going to be the biggest power consumptions. So, ideally you'd be running it on a SD card potentially, and without a fan.
If the CPU doesn't overheat without the fan, it can't draw that much power. I've seen laptops with CPUs that take 45W, those wouldn't last without a working fan.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
dkbit98
Legendary
*
Offline Offline

Activity: 2212
Merit: 7063


Cashback 15%


View Profile WWW
August 25, 2022, 04:49:23 PM
 #11

Yeah, anything that requires motion is going to be the biggest power consumptions. So, ideally you'd be running it on a SD card potentially, and without a fan. Then, you'll have the least power consumption as possible.
Raspberry Pi 400 works like that, there is no fan just one big metalic heatsink, and it's not spending more than 5w according to various tests, that is much less than any laptops.
I don't know any modern laptop without fan (except some with ARM processors like Pinebook or MNT reform) and I think it wont last very long without fan cooler.
35w or 45w is standard for processors but you can always tweak settings in BIOS and make it draw less power with underclocking.

If the CPU doesn't overheat without the fan, it can't draw that much power. I've seen laptops with CPUs that take 45W, those wouldn't last without a working fan.
Those laptops with 45w CPUs also needs stronger power adapters, usually stronger than 90w and you can't charge laptop battery without them.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10495



View Profile
August 26, 2022, 03:18:50 AM
 #12

This isn't accurate. To prevent fingerprinting, pruned node only serve latest 288 blocks.
I thought 288 was a variable that could change at the start.

What kind of service you're talking about? AFAIK you can't serve BIP 37/157 request with pruned node.
I mainly had the initial syncing in mind considering that AFAIK pruned nodes store all block headers so they can still provide that to SPV clients that are syncing.

Considering that pruned nodes store chainstate, the SPV clients should technically be able to ask a pruned node if a UTXO is still unspent or receive a set of UTXOs that belong to their address. Although pruned nodes don't support such messages.

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

Activity: 3430
Merit: 10495



View Profile
August 27, 2022, 03:35:08 AM
 #13

I see. But NODE_NETWORK_LIMITED BIP[2] mention pruned node/peers can relay header, unless i misunderstood it.
I can't say based on the BIP or the code but from experience I have requested block headers from nodes advertising NODE_NETWORK_LIMITED flag, even the older block headers, by sending a header locator while syncing and they responded with old headers that they shouldn't have the corresponding block for.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!