./mainchain/src/drivechain-cli --regtest createsidechainproposal 0 "testchain" "testchain for integration test"
./mainchain/src/drivechain-cli --regtest listsidechainproposals
./mainchain/src/drivechain-cli --regtest generate 1
./mainchain/src/drivechain-cli --regtest listsidechainactivationstatus
./mainchain/src/drivechain-cli --regtest listactivesidechains
./mainchain/src/drivechain-cli --regtest generate 100
./mainchain/src/drivechain-cli --regtest listactivesidechains
ADDRESS=./testchain/src/testchain-cli --regtest getnewaddress sidechain legacy
DEPOSITADDRESS=./testchain/src/testchain-cli --regtest formatdepositaddress $ADDRESS
./mainchain/src/drivechain-cli --regtest createsidechaindeposit 0 $DEPOSITADDRESS 1 0.01
Do until deposit processes (should be at least 2 blocks):
./mainchain/src/drivechain-cli --regtest generate 1
./testchain/src/testchain-cli --regtest refreshbmm $BMM_BID
./testchain/src/testchain-cli --regtest getbalance
MAINCHAIN_ADDRESS=./mainchain/src/drivechain-cli --regtest getnewaddress mainchain legacy
REFUND_ADDRESS=./testchain/src/testchain-cli --regtest getnewaddress refund legacy
./testchain/src/testchain-cli --regtest createwithdrawal $MAINCHAIN_ADDRESS $REFUND_ADDRESS 0.5 0.1 0.1
Do until withdrawal bundle created and you see the hash on the bottom of the sidechain GUI and also on the withdrawal tab on the mainchain (should be at least 3 blocks):
./mainchain/src/drivechain-cli --regtest generate 1
./testchain/src/testchain-cli --regtest refreshbmm $BMM_BID
./mainchain/src/drivechain-cli --regtest listwithdrawalstatus 0
./mainchain/src/drivechain-cli --regtest getworkscore 0 $HASHBUNDLE
By default the mainchain should upvote withdrawal bundles that were received from our sidechain node, but votes can be set this way as well
./mainchain/src/drivechain-cli --regtest setwithdrawalvote upvote 0 $HASHBUNDLE
./mainchain/src/drivechain-cli --regtest generate 131