Cashier nodes are elected by the community and play a crucial role in establishing trust in the ecosystem. The configuration details for cashier nodes are found in cashier_config.ini, located at poker/config/cashier_config.ini. Since these nodes are elected by the CHIPS community so changes to this cashier configuration file is not allowed.
Since there isn’t any election for the cashier nodes is happened so no checks on the cashier nodes enforced either on the player or dealer side yet, so for now anyone can configure their own cashier nodes.
To add more context, here is the overview of who read this file for what purpose:
These configuration settings cannot be modified by dealer or player nodes, and any changes made to this file are ignored.
[cashier]
node-1 = { \
"pubkey": "0377653051fe9dd919ad2d70422f692a43c46ac72fcfe2dfd3302ec30dd16aaf40", \
"ip": "159.69.23.29" \
} #
node-2 = { \
"pubkey": "039ee4a07033df0add41e23ddc3865061e8eb97d719d843d5db2f3371b61a4eb34", \
"ip": "116.203.25.27" \
} #
node-3 = { \
"pubkey": "0342e186006c560fe9bdc7bc0440b6fbfa46a4a852f5d4b28d67ab712ebf2e4744", \
"ip": "159.69.23.30" \
} #
node-4 = { \
"pubkey": "03d0a6326bcf918aed07557462963953f2125a11cfcb9a7b05630f930e8e554956", \
"ip": "159.69.23.31" \
} #
The rules are not set yet, but there is a good discussion going on here. Please feel free to share your views on it. Atm, I’m(sg777) hosting few nodes as cashier nodes and using them, going forward its going to be changed.
The cashier node can be launched using either cashierd or bet. Right now, there isn’t any difference between these two utilities so you can launch cashier node using either of these two.
./bin/bet cashier <ipv4_addr>
or
./cashierd cashier <ipv4_addr>
Here ipv4_addr is the ipv4 address of the node on which you are launching the cashier node. Make sure this IP is the public IP then only the other nodes in the network will be able to connect to it.