Author

Topic: Is is possible to run a full node 24/7 with the PC on sleep? (Read 206 times)

jr. member
Activity: 42
Merit: 24
So you're taking about the same from others as you're contributing
Okay, now I understand what you were trying to say. Generally, I receive 100-200 MB and send 600 MB - 2 GB so I'm offering more than I'm getting. So I'm helping the network pretty much (I believe) in terms of bandwidth. Thanks!
legendary
Activity: 3262
Merit: 16303
Thick-Skinned Gang Leader and Golden Feather 2021
  "totalbytesrecv": 151800253,
  "totalbytessent": 150654619,
That's my code, I don't understand anything from it
Since you've started Bitcoin Core, it downloaded 151.8 MB and uploaded 150.6 MB. So you're taking about the same from others as you're contributing. That's not a bad thing, but also it's not helping the network much in terms of bandwidth. But adding another node is always good for decentralization.
jr. member
Activity: 42
Merit: 24

Check how much you're actually uploading:

Is that per day, to catch up on the 20 hours that you missed? That's quite slow for 120 blocks, I expect my old laptop to do about 1 new block per second (with 4096 MB dbcache, and chainstate on SSD).

{
  "totalbytesrecv": 151800253,
  "totalbytessent": 150654619,
  "timemillis": 1659161016552,
  "uploadtarget": {
    "timeframe": 86400,
    "target": 0,
    "target_reached": false,
    "serve_historical_blocks": true,
    "bytes_left_in_cycle": 0,
    "time_left_in_cycle": 0
  }
}
That's my code, I don't understand anything from it xD Well, not really 15-20 minutes, that was in the past, but 5 minutes for those 18-20 hours. I tried to understand how Bitcoin or Tor work, and although I studied some Computer Science in secondary school and in university, they're too complicated for me to understand and I just want to help them without getting into too much technical info because it confuses me even more  Grin

Since sleep mode on all operating systems puts the CPU in S3 state (read: "effectively turned off"), all of the programs and system services on the computer stop running, as well as Core.
Thanks, I just learned something new today!
legendary
Activity: 1526
Merit: 6442
bitcoincleanup.com / bitmixlist.org
Since sleep mode on all operating systems puts the CPU in S3 state (read: "effectively turned off"), all of the programs and system services on the computer stop running, as well as Core.
legendary
Activity: 3262
Merit: 16303
Thick-Skinned Gang Leader and Golden Feather 2021
I don't know how to use quotes
Click the quote button, then remove what's irrelevant and type under it.

Quote
I use it to run the full node, to help the network.
Check how much you're actually uploading:
Code:
./bitcoin-cli getnettotals
{
  "totalbytesrecv": 29438090096,
  "totalbytessent": 101234865671,
  "timemillis": 1658816681347,
  "uploadtarget": {
    "timeframe": 86400,
    "target": 536870912000,
    "target_reached": false,
    "serve_historical_blocks": true,
    "bytes_left_in_cycle": 531385000534,
    "time_left_in_cycle": 3079
  }
This is my pruned node. After several weeks of continuously being online, it started uploading more. That makes me think you won't get many nodes rely on you if you're only online for a few hours per day.

Quote
The download of blockchain and sync takes 15-20 minutes, not a big deal.
Is that per day, to catch up on the 20 hours that you missed? That's quite slow for 120 blocks, I expect my old laptop to do about 1 new block per second (with 4096 MB dbcache, and chainstate on SSD).
jr. member
Activity: 42
Merit: 24
I don't know how to use quotes so I will respond separately:

For ETFbitcoin: Bitcoin Core always accepts incoming connections, between 5-20. Thanks for the tips!

For dkbit98: I don't use Bitcoin Core for me (as a wallet), I have a hardware wallet for big sums and a mobile wallet for transactions. I use it to run the full node, to help the network. The download of blockchain and sync takes 15-20 minutes, not a big deal. I will consider using Raspberry Pi4, thanks for the advice.
legendary
Activity: 2128
Merit: 6871
To be clear, I can't let my computer opened non-stop (electrical energy waste, hardware running continously almost for nothing, and noise during the night). And it would be much better for node to run 24/24 then 4/24. I was wondering if putting the PC on Sleep or something would make the node run to go on continously, reducing the disadvantages of letting my pc working forever.
Nobody is forcing you to run full Bitcoin node, but it's not true that it's almost for nothing, and you can run node is totally silent Raspberry Pi4 that spends much less power than regular computer.
Benefits for running full node is much better security and privacy for you, but for that you need to run it 24/7 and wait for days until full blockchain is downloaded and synced.
There is no point in running Bitcoin core wallet just for few hours because you can't even download bitcoin blockchain or sync.
Generally speaking most newbies should be just  fine with spv wallets like Electrum for start.
jr. member
Activity: 42
Merit: 24
That's what I wanted to know, thanks!  Smiley
legendary
Activity: 3500
Merit: 6205
Farewell LEO, you *will* be missed.
to run full node to help the network, but instead letting it running 4 hours a day (as I need my computer)

Thanks for clearing up the intended use case.

Maybe you already know by now, but I'll still write it down for others who might read this:
Make sure you stop nicely bitcoin core before stopping your computer, so the data doesn't get corrupted and you're good to go for those 4h a day, of which the first good number of minutes will be needed to catch up.
I don't advise "tricks" like putting the computer on sleep, then the node is not running anyway in such cases.
jr. member
Activity: 42
Merit: 24
I've read all the answers, I didn't ignore anything, sorry for not replying properly. I don't use Bitcoin Core as a wallet, but to run full node to help the network, but instead letting it running 4 hours a day (as I need my computer) I would like to make it running continously, but without letting my pc fully opened and just putting my screen on stand-by. I thought there's a way like Sleep mode or anything else to make my computer silent and consuming less resources but running the full node in the same time. Thanks for your answers!
hero member
Activity: 896
Merit: 871
Not Your Keys, Not Your Bitcoin
Hello guys! Is it necessary to leave my computer opened continously to run a full node 24/7 (because I can't do that), or is there an option to make it run even if I close the PC, or at least I put it on sleep?

You don't have live your PC on 24/7 to run a full node, you can live your PC ON and connect to the internet to synchronously validate and propagate transaction to other nodes or you can switch it off/put it on sleep mode and continue when ever you want to connect to the bitcoin network. However, you will have to download the previous blocks when you connect to other nodes before you will be able to validate new transactions because you will be behind current block.

Running a full node might not give you the maximum privacy you want but it is far better than using an SPV wallet, so I wouldn't advice you to settle for less if you have a PC that has the capacity to run a full node.
legendary
Activity: 3500
Merit: 6205
Farewell LEO, you *will* be missed.
To be clear, I can't let my computer opened non-stop (electrical energy waste, hardware running continously almost for nothing, and noise during the night). And it would be much better for node to run 24/24 then 4/24. I was wondering if putting the PC on Sleep or something would make the node run to go on continously, reducing the disadvantages of letting my pc working forever.

In order to act as a full node, your computer needs to run applications (bitcoin core), network, hard-disk and so on. That is possible only if it's fully running.
Since you cannot do that, then it means that you cannot properly run a bitcoin node.

Now, if you only want to do tests now and then, you can start it 1h before your tests, leave it catch up and play with it.
If you want to only use it for your wallet, please read my previous post.

Or, maybe you tell what you want to achieve (it was requested by others too, but you seem to ignore that), in order to get better advises, exactly for your use case.
jr. member
Activity: 42
Merit: 24
To be clear, I can't let my computer opened non-stop (electrical energy waste, hardware running continously almost for nothing, and noise during the night). And it would be much better for node to run 24/24 then 4/24. I was wondering if putting the PC on Sleep or something would make the node run to go on continously, reducing the disadvantages of letting my pc working forever.
legendary
Activity: 3500
Merit: 6205
Farewell LEO, you *will* be missed.
Hello guys! Is it necessary to leave my computer opened continously to run a full node 24/7 (because I can't do that), or is there an option to make it run even if I close the PC, or at least I put it on sleep?

If you are asking this kind of questions, I advise you consider using a SPV wallet, like Electrum.
Yes, that means that various servers might collect data about your wallet (link addresses), but your wallet will get up-to-date info almost instantly and you don't have to keep a node (and a computer) running 24/7, nor wait until it synchronizes if you've stopped it and you want to use it.
legendary
Activity: 2338
Merit: 5297
Self-proclaimed Genius
Hello guys! Is it necessary to leave my computer opened continously to run a full node 24/7 (because I can't do that)
Running Bitcoin Core wont consume that much power, it's as good as idle most of the time.
You can only shutdown the PC's monitor and leave it running in the background.

Closing Core wont cause issues, why do you need it running 24/7?
legendary
Activity: 3262
Merit: 16303
Thick-Skinned Gang Leader and Golden Feather 2021
is there an option to make it run even if I close the PC, or at least I put it on sleep?
What kind of question is that? Can your car engine run when you turn it off?

Okay, I'll try without the sarcasm: What are you trying to accomplish? And why do you need to run a full node 24/7 if you don't want your computer to be on?
jr. member
Activity: 42
Merit: 24
Hello guys! Is it necessary to leave my computer opened continously to run a full node 24/7 (because I can't do that), or is there an option to make it run even if I close the PC, or at least I put it on sleep?
Jump to: