mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-10 06:42:31 +00:00

* [NOD-70] Added GetBlockTemplate method to rpcclient * [NOD-70] Basic infrastructure for mining simulator * [NOD-70] Fix txFees in NewBlockTempalte: include value for fee transaction + don't set fee for coinbase = -totalFees. * [NOD-70] Added capabilities parameter to Client.GetBlockTemplate call * [NOD-70] Dirty version of mining simulator complete * [NOD-70] cleaned up mining simulator * [NOD-70] Added dockerfile to mining simulator * [NOD-70] Updated base config path of mining simulator to mining_simulator * [NOD-70] Remove error return from msgblock.AddTransaction - it never returns one * [NOD-70] Renamed r -> random * [NOD-70] Move paths initialization of mining simulator to main * [NOD-70] Cleaned up mining simulator dockerfile * [NOD-70] Add '--' to tini argument
11 lines
472 B
Plaintext
11 lines
472 B
Plaintext
1. To build docker image invoke following command from btcd root directory:
|
|
docker build -t mining_simulator -f ./mining/simulator/docker/Dockerfile .
|
|
|
|
2. To run:
|
|
a. create folder ~/.btcd/mining_simulator with the following files:
|
|
rpc.cert - certificate file that all rpc nodes accept
|
|
addresses - list of node addresses in the format [hostname]:[port]. One node per line
|
|
b. run:
|
|
docker run -v ~/.btcd:/root/.btcd -t mining_simulator
|
|
|