-
ns12
Hello, what is the size of the Monero stagenet blockchain?
-
ns12
How much storage space does a full node of a Moneto stagenet blockchain take up?
-
selsta
ns12: less than 10GB IIRC
-
selsta
8GB to be precise
-
DrNick2
Hi, Everybody!
-
DrNick2
I'm getting this error on Monero 0.17.3.0:
-
DrNick2
E Blocks start before blockchain offset: 0 2478000
-
DrNick2
And: E (m_blockchain.size() == stop_height || (m_blockchain.size() == 1 && stop_height == 0) ? false : true). THROW EXCEPTION: error::wallet_internal_error
-
DrNick2
Not seeing super clear answers when searching Google for these keywords.
-
sech1
Try to resync your wallet using a different Monero node
-
DrNick2
I didn't chose a node manually. It seems like Monero is finding peers automatically.
-
DrNick2
Looks like it might still be making progress syncing. Perhaps these errors are indicating bad data from the network that's not fatal?
-
DrNick2
I'll give it another day and see if it finishes syncing.
-
DrNick2
Weird, it keeps doing this: Monero 'Oxygen Orion' (v0.17.3.0-unknown)
-
DrNick2
Height: 2150304/2150304 (100.0%) on mainnet, not mining, net hash 1.40 GH/s, v12, 2(out)+0(in) connections
-
DrNick2
The small height value is after the exception. Old value was closer to: 2600071
-
moneromooo
Delete your wallet cache.
-
ns12
selsta: Thanks. Is the stagenet blockchain periodically reset to reduce its size?
-
moneromooo
No, but you do not have to sync to the public one.
-
ns12
Stagenet will always be growing in size?
-
moneromooo
Yes.
-
ns12
What about testnet? Is testnet ever reset?
-
moneromooo
No.
-
ns12
I thought that testnet is supposed to be for experiments?
-
moneromooo
It is.
-
ns12
Why is it never reset?
-
moneromooo
No reason to.
-
ns12
Isn't it a waste of disk space and bandwidth? I would have expected these experimental blockchains to reset once a year.
-
ns12
Makes it easier to set up experiments.
-
moneromooo
"you do not have to sync to the public one" also applies to testnet.
-
moneromooo
If you reset testnet, you also lose the tx history, which could be useful.
-
ns12
""you do not have to sync to the public one" - What does that mean? Use a remote node? e.g.
monero.fail/?nettype=stagenet ?
-
moneromooo
It means to not connect to nodes with that chain, which would cause your node to sync it as it's got higher cumulative difficulty.
-
moneromooo
It's decentralized. You can keep your nodes separate from others, and it'll work as good, with another chain.
-
moneromooo
So --offline for a single node (easy), and --add-exclusive-node for a network with a few nodes if you need that.
-
ns12
Essentially a private fork?
-
ns12
How does that work? Where does the genesis block come from?
-
moneromooo
Yes, a private fork. It works the same as not private. The genesis block comes from the source.
-
ns12
moneromooo: Thank you for the suggestion. With this method, I would be starting from 1 block (genesis block) instead of 8 GB worth of blocks in the official stagenet. Correct?
-
moneromooo
Yes. Bear in mind that you'll also start at the first fork ruleset (ie, pre-ringct).
-
moneromooo
--regtest also enables a mainnet that starts at the current fork rules.
-
moneromooo
If you're on your fork, I recommend --fixed-difficulty as well, avoids having to wait 2 mins per block.
-
ns12
moneromooo: "you'll also start at the first fork ruleset" - What are the implications? Does this mean that the consensus rules will be different from the real current mainnet and stagenet?
-
moneromooo
Not different for any given height, but different at a given time.
-
moneromooo
It's like time traveling really, if you're done it before.
-
moneromooo
You get to "replay" old events at a later date.
-
ns12
"Not different for any given height, but different at a given time." - I don't understand :-(
-
ns12
How do I start off with the current rules?
-
moneromooo
You can also alter the fork table prior to starting, so you get to hte latest rules quick.
-
moneromooo
(in hardforks.cpp)
-
moneromooo
As an example:
-
moneromooo
if blocks 1-1000 are v1 and 1001-2000 are v2, those were mined years ago on the public testnet.
-
moneromooo
If you start a new chain, you'll be mining them in the near future.
-
moneromooo
Current public testnet is on v14 or thereabouts. This allows ringct.
-
moneromooo
But your local testnet will not allow ringct until yo're at block LOTS (unless you change the fork table first).
-
moneromooo
Or, again, --regtest jumps to the current fork at once.
-
ns12
moneromooo: What you are saying is that changes to the rules occur at specific block heights. In order to experience those changes in my own private fork of the Monero blockchain, I will need to mine till I reach those specific block heights. Am I understanding correctly?
-
moneromooo
Yes.
-
ns12
moneromooo: Do mainnet, stagenet, and testnet have the same fork table?
-
moneromooo
No.
-
ns12
-
ns12
I should probably use stagenet then, because it reaches v14 in less blocks (676,125 blocks) than mainnet or testnet.
-
moneromooo
Doesn't matter if you modify it.
-
ns12
Modify what? The source code? I don't want to modify the source code. I just want to use the binary provided on Monero's download webpage.
-
moneromooo
Yes.
-
ns12
Thank you for the tip about --regtest.
-
ns12
In "monerod --help", I see "--keep-fakechain" which mentions a "fakechain mode". What is "fakechain"?
-
moneromooo
The chain that gets used by --regtest.
-
moneromooo
By default, it's nuked on restart.
-
moneromooo
Wait.
-
moneromooo
Yes, I think it's that. Memory's hazy.
-
ns12
In
github.com/monero-project/monero/bl…c49e260/src/hardforks/hardforks.cpp , each hardfork_t struct has a time_t field. What is that time_t field used for?
-
moneromooo
I don't think it's used anymore. Just ensure they're increasing.
-
moneromooo
It used to be used to warn the user when the last known fork was older than 6 months or so, since there were regular forks.
-
ns12
Thank you moneromooo.
-
ns12
moneromooo: "Yes, I think it's that. Memory's hazy." - Yes, you are apparently correct. I found this question that was asked just 3 days ago:
monero.stackexchange.com/questions/…t-remember-the-generated-blockchain
-
ErCiccione
-
ns12
Hello, does the Monero blockchain allow the inclusion of arbitrary data within a transaction?
-
ns12
For example, can I add a photograph of a cat within a transaction?
-
moneromooo
You can spam shite that everyone else will have to store on their disk.
-
ns12
moneromooo: Is that a bad thing? I will have to pay a higher transaction fee, right?
-
merope
Yes it's a bad thing for everyone
-
merope
Digital money is not supposed to be data storage
-
ns12
Why not? Isn't it the case that if I pay the transaction fees, I should be able to store my own data?
-
moneromooo
You will have to pay an extra tx fee, yes.
-
moneromooo
But this is space that isn't a payment.
-
moneromooo
If assholes start spamming hte chain with shite, we'll just have to add a fee adjustment for this.
-
moneromooo
The fee needs to be low enough to not add too much friction for payments.
-
moneromooo
Imagine a bus ticket is one pound flat. You get on, pay your quid, and alight wherever you want.
-
moneromooo
Now, imagine a group of jerks get on, pay their pound, then stay all day on the bus, going round and round.
-
moneromooo
Hey they paid. The fee assumes expected usage, on average.
-
moneromooo
But if people start doing that, the bus company will have to introduce a max time or the like component to the price.
-
ns12
moneromooo: Okay, so this is considered an abuse of the Monero blockchain? Has Monero been abused like this before?
-
moneromooo
Doing it occasionally is ok. Doing it systematically is abuse. Like the bus company won't care if someone does a one off multi-loop sightseeing for the day.
-
selsta
-
selsta
turns out the issue with monerod getting stuck was likely CPU related
-
selsta
weird
-
moneromooo
Thanks. What'd be needed is running the randomx tests for, like, twice as long as the average time to failure ot so.
-
gingeropolous
huzzzah! almost there! 2022-04-12 17:29:35.653 I Synced 2553672/2600444 (98%, 46772 left)
-
DrNick2
Weird still not making much progress. I'll try nuking the whole thing and starting over again. :-/
-
DrNick2
I tried deleting the wallet cache and got this message on start: "starting with empty blockchain"
-
DrNick2
monerod still said: error::out_of_hashchain_bounds_error
-
moneromooo
Did you change the code ?
-
moneromooo
Or are you using a binary built by someone else who'd have changed the code ?
-
moneromooo
Because monerod certainly can't say that unless the code is changed.
-
selsta
moneromooo: I have suggested them to run randomx tests in a loop for 60 hours or so to see if it starts to fail
-
selsta
DrNick2: where did you get your binary? v0.17.3.0-unknown seems to indicate a custom compiled version