forked from cevap/ion
-
Notifications
You must be signed in to change notification settings - Fork 15
UseCases_regtest_Start regtest.md
ioncoincore edited this page Jul 8, 2019
·
1 revision
- Use Cases, Scenario’s, Walkthroughts - for regtest
- Case "Start Regtest"
- Scenario**: Testing tokens on regtest
- Feature**: The Regtest network allows users to mine blocks on demand
- Actor**: A regtest network user
- Summary**:
- Preconditions**:
- Steps**:
The following commands should start a daemon on the Regtest network:
# start daemon in regtest modus, ensure the chain and transaction history are reset, enable debug logging, enable background mode
$ iond -regtest=1 -resync=1 -zapwallettxes=1 -debug=1 -daemon=1
ION server starting
# view the chain status
$ ion-cli -regtest=1 getinfo
{
"version": 3029900,
"protocolversion": 95704,
"services": "NETWORK/BLOOM/",
"walletversion": 61000,
"balance": 0.00000000,
"zerocoinbalance": 0.00000000,
"blocks": 0,
"timeoffset": 0,
"connections": 4,
"proxy": "",
"difficulty": 0.000244140625,
"testnet": true,
"moneysupply": 0.00000000,
"xIONsupply": {
"1": 0.00000000,
"5": 0.00000000,
"10": 0.00000000,
"50": 0.00000000,
"100": 0.00000000,
"500": 0.00000000,
"1000": 0.00000000,
"5000": 0.00000000,
"total": 0.00000000
},
"keypoololdest": 1545340622,
"keypoolsize": 1001,
"paytxfee": 0.00000000,
"relayfee": 0.00010000,
"staking status": "Staking Not Active",
"errors": "This is a pre-release test build - use at your own risk - do not use for staking or merchant applications!"
}
# stop the ion regtest daemon
$ ion-cli -regtest=1 stop
ION server stopping
# start daemon in regtest modus, use existing chain if it exists, enable debug logging, enable background mode
$ iond -regtest=1 -debug=1 -daemon=1
ION server starting
# Mine 260 blocks on Regtest, bringing the chain to the PoS phase.
$ ion-cli -regtest=1 generate 260
- The same can be achieved by running the ion Qt wallet.
- The parameter `-regtest=1` can be moved to ioncoin.conf as `regtest=1`.
- Postconditions**:
- A running Regtest node.
- A chain with 260 blocks.
* Entered PoS phase * Moved past the TokenStart block height
- Related use cases**: