Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for stagenet #106

Merged
merged 2 commits into from
Mar 9, 2018
Merged

Conversation

stoffu
Copy link
Contributor

@stoffu stoffu commented Mar 5, 2018

This is a preliminary PR for the pending stagenet PR: monero-project/monero#3277

@moneroexamples moneroexamples merged commit f0e5622 into moneroexamples:devel Mar 9, 2018
@stoffu stoffu deleted the stagenet branch March 9, 2018 03:58
@moneroexamples
Copy link
Owner

Forgot to ask. What is stagenet? How is it different than testnet?

@stoffu
Copy link
Contributor Author

stoffu commented Mar 13, 2018

This is the origin of the idea: monero-project/monero#3017

@moneroexamples
Copy link
Owner

thanks for fast reply. Is it already live?

@stoffu
Copy link
Contributor Author

stoffu commented Mar 13, 2018

Yes. I'm hosting an explorer here: http://162.210.173.150:8083/ which is the same IP as one of the two seed nodes.

Please note that I've applied this pending PR monero-project/monero#3358 preemptively so that a series of successive hard forks from v2 to v7 can happen from height 32000 (which is only 300 blocks away as of now). So you'd need to build that PR if you want to try it.

@moneroexamples
Copy link
Owner

Thanks. Good to know. So this stagenet is equivalent to running testnet using latest release binaries: https://github.com/monero-project/monero/releases ?

@stoffu
Copy link
Contributor Author

stoffu commented Mar 13, 2018

I'm not sure what you're asking. Testnet and stagenet use different seed nodes, port numbers, network IDs, etc. Also their fork heights are of course different. The idea is to keep stagenet as stable as mainnet so that people can experiment stuff on it without worrying about rollbacks which is very common on testnet.

@moneroexamples
Copy link
Owner

i'm taking about version number. current testnet is v8. so staging will be the same version as mainent (v6)?

@stoffu
Copy link
Contributor Author

stoffu commented Mar 13, 2018

Currently it's v1, and the fork to v2 happens at 32000, followed by successive hardforks up to v7 at 37000.

@moneroexamples
Copy link
Owner

ah ok. thx for clarification.

@moneroexamples
Copy link
Owner

Hi

Did you encounter Error: RPC error: failed to get output distribution error in cli monero wallet when trying to make txs in stagenet?

I'm trying to transfer from this stagenet wallet:

eluded extra boyfriend gels hiding waxing feline unbending drying pancakes dwindling fuming friendly pamphlet myth tepid snug budget android vogue losing each affair afraid affair

And cant seem to be able to make txs. Am at current monero master:

mwo:monero$ git log -1
commit 8361d60aef6e17908658128284899e3a11d808d4
Merge: 2c145f4 b1398ff
Author: Riccardo Spagni <ric@spagni.net>
Date:   Mon Mar 19 11:39:59 2018 +0200

    Merge pull request #3434
    
    b1398fff core: fix use of uninitialised data (moneromooo-monero)

@stoffu
Copy link
Contributor Author

stoffu commented Mar 20, 2018

That's strange, I was able to make an outgoing transfer from that wallet: http://162.210.173.150:8083/tx/9c7a93b33e62e9cdbb0eee6f3be840a5b791a49f982afcd7863eff858768eac3

Receiving wallet:

italics origin jaws wrong eternal vipers dogs injury
shackles soapy mundane evolved going auburn palace number
festival bulb woes imitate joyous tomorrow apology argue origin

@moneroexamples
Copy link
Owner

Thanks. I will investigate more. Maybe its something got mixed with my wallet and node.

@moneroexamples
Copy link
Owner

moneroexamples commented Mar 26, 2018

Was trying to debug this thing, and I'm hitting this exception:

THROW_WALLET_EXCEPTION_IF(segregation_fork_height - d.start_height >= d.distribution.size(), error::get_output_distribution, "Distribution size too small");

In wallet2.cpp: https://github.com/monero-project/monero/blob/master/src/wallet/wallet2.cpp#L5836

And it happens because segregation_fork_height is 1000000, d.start_height is 33000 and d.distribution.size() is 8317, for amount of 0, for an example tx.

It keeps happening from different wallets on different PCs. Do you know what is segregation fork and why its so high for stagenet?

@stoffu
Copy link
Contributor Author

stoffu commented Mar 26, 2018

This fixes it: monero-project/monero#3473

@moneroexamples
Copy link
Owner

Thanks. Seems to be working with patch. Later I will do more checks, and if something, I will let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants