This is an external staker designed to be used with Aion's Unity Hybrid Consensus Protocol. The staker can be used to interact with a Unity-enabled node over RPC.
The staker is largely built on top of the RPC functionality provided by the Node Test Harness.
The staker can be used directly from the terminal by launching
java -jar external_staker.jar <args>
The staker takes the following arguments when launched:
-
(required) the private key of the signing address of the staker.
-
(required) the identity address of the staker.
-
(optional)) the IP address of a Unity-enabled node accepting RPC requests. If this argument isn't provided,
127.0.0.1
is used as default. -
(optional)) the port on which this node is accepting RPC requests. If this argument isn't provided,
8545
is used as default.
Once launched, the staker repeatedly queries the node over RPC, and submits signed staking blocks. Note that it aggressively sends a signed block as soon as it produces it; the nodes must reject future blocks if they want to.