-
narf
is there a way to limit the size of the locally downloaded blockchain?
-
moneromooo
Start monerod with --prune-blockchain. Ideally from the start, or near the start.
-
moneromooo
Run monero-blockchain-prune-known-spent-data (different thing, and it only gets you 200 MB or so IIRC).
-
moneromooo
Maybe mdb_copy will shave a few kB (but it'll increase soon enough as you get more blocks anyway).
-
moneromooo
Filesystem compression might work, though that'll likely slow things down massively, and you'd need to make sure this still works with mmap.
-
narf
its currently at 90gb with 481336 blocks remaining
-
plowsof[m]
i put a guide together for pruning with the Monero GUI (it basically says delete everything and start from scratch to benefit from pruning) :(
-
merope
Why delete? If you already have a fully synched chain, you should run monero-blockchain-prune instead
-
merope
The only reason not to do that is if you don't have enough storage space to keep the new pruned copy of the chain (~50GB)
-
merope
s/synched/synced/
-
plowsof[m]
usually the motivation for someone to want to prune a blockchain is because their hard drive is full (after the fact) - so they ask 'how to prune'? rather than running the prune tool (which takes almost / if not exactly the same time as starting from scratch and leaves the large blockchain behind still, (so they still see 90GB taken up) ~ and if you run the prune tool - it just adds another 50GB to your hard drive, and you still have to
-
plowsof[m]
delete the old one =(
-
moneromooo
In theory, it should be possible to get lmdb to move pages to low fee pages, resize the map, then truncate the underlying file...
-
moneromooo
I don't think lmdb can be asked that though. But if it could, it wuld allow in place pruning while shrinking the file.
-
hyc
low fee pages?
-
moneromooo
Low free pages, sorry.
-
moneromooo
Low as in low file offset.
-
hyc
none of what you described is necessary
-
hyc
pages go onto the freelist whenever a COW occurs.
-
hyc
pages are reused from the freelist for new writes
-
moneromooo
But if your map is 0..N..M, you delete page N, the map is still 0..M.
-
hyc
if all you're doing in a pruning op is deleting data, then more pages will be freed than consumed
-
hyc
doesn't really matter, does it? if your 150GB file fit on disk before, it still fits now
-
moneromooo
Yes, and those are still sitting in the mapped file. Not necessarily at the end.
-
moneromooo
Shrewd :P
-
moneromooo
But the context is doing this when the file reaches disk capacity.
-
moneromooo
(free capacity)
-
hyc
sure
-
hyc
anyway, LMDB never gives space back to the OS because DBs always grow. so it's wasted effort.
-
moneromooo
So if you don't shrink, you cvan't use the "free" space for other things. Which is annoying, fir 100 GB.
-
hyc
you can of course use mdb_copy -c to make a compacted copy, if you have the space for a copy
-
hyc
but that's just back to where this conv started...
-
moneromooo
Right. You end up resyncing, which is also wasted effort.
-
hyc
resyncing?
-
moneromooo
If you have, say, 30 GB left. You can't mdb_copy. So if you need 50 GB for other stuff, you have to resync to get back to 130 GB left.
-
moneromooo
Anyway, I'm not pushing for it. It's theoretically possible, but not available in practice, fair enough.
-
hyc
I guess. but that's just kicking the can down the road. you need to ensure you have sufficient space for the future growth of the blockchain
-
hyc
if someone is saying "hey, my blockchainDB is too big and I need space for these other things"
-
moneromooo
Technically true, but not very useful.
-
hyc
that's just stupid. they need more disk.
-
moneromooo
Says every software developer :D
-
moneromooo
And we end up with games taking 10 GB. OR whatever it is they take nowadyas.
-
hyc
we're pretty lightweight compared to a modern game
-
hyc
hundreds of GB
-
moneromooo
Well, there you go.
-
plowsof[m]
i was surprised by 'that' graph (which shows modern games space requirements
-
plowsof[m]
10GB ,,, its much worse ^^
-
hyc
-
hyc
so I can't really sympathize with someone wanting to store blockchain plus other stuff on 1 drive
-
QuickBASIC
Without looking Path of Exile takes like 50GB (for the MPQ). Civ VI is like 30GB. Some XBox games are egregious and take like 150GB.
-
QuickBASIC
150GB for Monero Blockchain honestly isn't bad when a lot of laptops come with 500GB and go up to 2TB.
-
QuickBASIC
And you can pay like $5/mo for a VPS big enough to run a nodr just for personal use.
-
plowsof[m]
to sympathise with me, we must first enter a time machine and go back to the year quake2 was released
-
plowsof[m]
i believe a bitcoin node is over 200?300GB?
-
QuickBASIC
My first PC didn't have a hard drive. I used to save typed programs on cassette tape. :-P
-
hyc
4TB NVMe SSD for $600, 8TB for $1300
-
hyc
I've got a pair of 2TB in my laptop, pair of 4TB in my rockpro64
-
hyc
Bitcoin will have a harder time because their DB engine is a lot slower. at those sizes, good luck...
-
QuickBASIC
But BTC/BCH can prune spent outputs so easier to manage.
-
hyc
do the nodes do that automatically?
-
hyc
-
hyc
alphabay is #1 DNM again, monero-only
-
jesopo
damn is alphabay still going
-
hyc
resurrected
-
jess
how long ago?
-
hyc
#2 admin came back last year
-
jess
oic
-
jess
nice
-
hyc
since alphabay kicked off the monero pump of 2017, will be interesting to see if they have a similar impact on markets again
-
jwinterm
what to do if testnet node gets stuck during sync?
-
jwinterm
I am stuck at 522739
-
scoobybejesus
pop blocks?
-
moneromooo
Exit, restart with --log-level 2, check what error you get when trying to sync again, post error.
-
jwinterm
restarting fixed it
-
jwinterm
🤷♀️
-
jwinterm
wait maybe not....
-
nioc
I am waiting
-
monero-hackerind
Hey everyone. I submitted my first CCS proposal and looking for feedback. (I shared the link on the Matrix room and sharing it on the irc channel too)
-
monero-hackerind
-
monero-hackerind
Monerosigner a Monero fork of seedsigner (a DIY airgapped bitcoin hardware wallet built out of raspberry pi zero). The idea is having a hardware wallet that anybody can built out of commodity parts helps reduce attack surface of supply chain and privacy considerations of customer lists of hardware wallet vendors.
-
monero-hackerind
Thank you in advance
-
jwinterm
popped 10k blocks and stuck on block 522739 again
-
jwinterm
log-level 2 moneromooo
pastebin.com/k6ttQVHa
-
jwinterm
nothing jumps out at me...
-
jwinterm
I just nuked testnet folder and going to start from scratch with seth as exclusive node
-
Mochi102
Why are you using testnet?
-
jwinterm
testing tings
-
jwinterm
I was in favor of just testing on mainnet
-
jwinterm
because mainnet node already synced
-
Mochi102
stagenet is recommended no?
-
jwinterm
y tho?
-
jwinterm
y everything monero so cornplicated?
-
plowsof[m]
researchers do cruel things on testnet too , they're big meanies
-
nioc
jwinterm: stagenet, Mochi102 knows
-
plowsof[m]
is this related to the testnet hardfork though?
-
jwinterm
ok
-
jwinterm
thx boys
-
Mochi102
<3
-
plowsof[m]
i remember devs needing to add peers and such? because of the hardfork .. im not sure
-
nioc
testing development = testnet
-
nioc
testing things on monero = stagenet
-
nioc
**testing monero development = yesynet
-
nioc
*testnet
-
nioc
whew
-
jwinterm
okiedokie
-
jwinterm
stagenet syncing
-
Mochi102
nice
-
Mochi102
if you need some coins I have lots
-
Mochi102
I'll sell you stagenet xmr at 1/2 the price of mainnet xmr jwinterm
-
Mochi102
How many do you need?
-
jwinterm
I feel like I should be able to mine some...
-
Mochi102
Well, why do that when you could just buy some?
-
Mochi102
You can, there is a faucet too.
-
Mochi102
Somewhere...
-
Mochi102
-
jwinterm
gracias
-
jwinterm
Current balance: 1109607 XMR
-
jwinterm
not bad
-
Mochi102
yeah, they have more than me
-
Mochi102
I only have like 7k sxmr
-
Mochi102
I gave my seed phrases to asymptotically and he never wiped me out of my sxmr either.