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

Convert devnet into mirror testnet #1661

Merged
merged 2 commits into from
Dec 23, 2022
Merged

Convert devnet into mirror testnet #1661

merged 2 commits into from
Dec 23, 2022

Conversation

Bushstar
Copy link
Member

@Bushstar Bushstar commented Dec 21, 2022

Turn devnet into a mirror of testnet allowing us to test forks on the testnet blockchain in isolation from the actual testnet network. To facilitate this a start-up flag will be added to allow devnet to connect directly to testnet to bootstrap itself without having to manually swap data directories over. Once synced devnet can then run whatever changes are being proposed.

Start up flag -devnet-bootstrap, this is required for defid and defi-cli as below.

defid -daemon -devnet-bootstrap
defi-cli -devnet-bootstrap getconnectioncount

To prevent the testnet and devnet talking to each other accidentally a different magic number (pchMessageStart) is used for network communication, when devnet-bootstrap is set then the magic number is set to the same as testnet.

@Bushstar Bushstar merged commit b2e574c into master Dec 23, 2022
@Bushstar Bushstar deleted the new-devnet branch December 23, 2022 11:30
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.

2 participants