-
Notifications
You must be signed in to change notification settings - Fork 14
RTA Build and Installation Instructions
| RTA Testing Release | 082019 |
|---|---|
RTA implements the RTA transaction validation flow as described in: https://github.com/graft-project/DesignDocuments/blob/develop/RFCs/%5BRFC-003-RTVF%5D-RTA-Transaction-Validation-Flow.md
Release includes the reference CLI apps (POS and wallet) to test the flow.
- Disqualification transactions implementation not merged yet
- RTA validation on cryptonode is shortcut temporarily
-
Follow the instructions on how to build supernode in https://github.com/graft-project/graft-ng/wiki/Supernode-Install-&-Usage-Instruction, using develop branch
-
Create directory e.g.
$HOME/graft/rta-beta
mkdir -p $HOME/graft/rta-beta-
Copy binaries
$BUILDDIR/supernode,$BUILDDIR/config.ini,$BUILDDIR/rta-pos-cli,$BUILDDIR/rta-wallet-cli,$BUILDDIR/BUILD/bin/*to$HOME/graft/rta-beta. Copy directory$BUILDDIR/graftletsto$HOME/graft/rta-beta -
run graftnoded: execute
$HOME/graft/rta-beta/graftnoded --testnet; Make sure your graftnoded synced with public testnet network: http://testnet.graft.network -
Create wallet and request funds by contacting admins in the main TG group.
-
Create wallets for supernode, PoS and Wallet
-
Setup supernode using manual: https://github.com/graft-project/graft-ng/wiki/Supernode-Install-&-Usage-Instruction#graft-supernode-configuration
10.[optional] Send stake amount to supernode's wallet
- Send some amount to the Wallet's wallet
- Make sure cryptonode and supernode running, check your local supernode with request:
curl http://localhost:28690/debug/supernode_list/1Make sure you see your supernode in the output
- Copy helper script to the directory where you copied binaries (
$BINDIR), make sure it executable (chmod a+x test_runner.py). Use this script to automaterta-wallet-cliandrta-pos-cliapps:
./test_runner.py --wallet-path <path_to_your_clients_wallet> --pos-wallet <pos_wallet_address> [[--period XX] [--supernode-address=<your_supernode_address>] [--cryptonode-address=<your_cryptonode_address>]]]period defines repeat interval in seconds, 120 seconds by default. Script will run both rta-wallet-cli and rta-pos-cli apps in parallel so they process rta transaction. Sale amount is 12.345 GRFT. It will be possible to specify sale amount in next versions.
Also you can run the same manually as described below. p.3,4,5 are optional in case you want to process it manually
- [optional] Open another terminal (or new window in tmux/screen), go to directory where you copied binaries (
$BINDIR), copy wallet files you created previously here and run "rta-wallet-cli" like this:
./rta-wallet-cli --wallet-path <your-wallet-name> --cryptonode-address localhost:28881By default it expects supernode available at localhost:28690, cryptonode's RPC at localhost:28681 (we need to explicitly specify cryptonode-address, to be fixed in next releases). It will open wallet, refresh it, print the balance and wait for a user pressed <Return> key to continue processing
- [optional] Open one more terminal (or new window in tmux/screen), pick wallet address you created for a PoS, go to directory with binaries (
$BINDIR), and run:
./rta-pos-cli --wallet-address <wallet-address-PoS> --amount <sale-amount>This will initiate the sale. Right after this switch to the terminal with "waiting" rta-wallet-cli app and press <Return>. This will process the payment.
- [optional] Next switch to the terminal with rta-pos-cli and see how Sale is processed.