Check BHD mortgage amount at specified interval and pause mining upon insufficient mortgage. The following parameters should be added in "{ }".
- Enable: Optional, default = true.
- Exec: Mandatory, must be BHD_PAUSE.
- Interval: Optional, checking interval, default = 600 seconds.
- StartThreshold: Optional, default = 1 (1=100%, 0.5=50%). Start mining when the pledge percentage reaches this value.
- StopThreshold: Optional, default = 1 (1=100%, 0.5=50%). Pause mining when the pledge percentage drops below this value.
- rpcUrl: Optional, address of wallet RPC API, default = "http://127.0.0.1:8732".
- rpcUsr: Optional, username of wallet RPC API, default = "test".
- rpcPwd: Optional, password of wallet RPC API, default = "test".
- Wallet: Mandatory, wallet receving address.
ACTIONs: [
{ Enable: true,
Exec: BHD_PAUSE,
Interval: 600,
StartThreshold: 1,
StopThreshold: 1,
rpcUrl: "http://127.0.0.1:8732",
rpcUsr: "test",
rpcPwd: "test",
Wallet: "wallet-receving-address"
}
]
Any optional parameters can be ignored to simplified as the following:
ACTIONs: [
{ Exec: BHD_PAUSE, Wallet: "wallet-receving-address" }
]
Also need to add below lines into BHD wallet's configuration file(btchd.conf).
rpcuser=test
rpcpassword=test