-
Notifications
You must be signed in to change notification settings - Fork 0
Home
-
Installation of ns3 (https://www.nsnam.org/wiki/Installation). The project has been tested with versions 3.24 and 3.25.
-
Download rapidjson (https://github.com/miloyip/rapidjson).
-
Create a new directory named rapidjson under ns-allinone-3.xx/ns-3.xx.
-
Copy the contents of the directory include/rapidjson (from the downloaded rapidjson project in step 2) to the newly created rapidjson folder.
-
Update the ns-allinone-3.xx/ns-3.xx/src/applications/wscript.
-
Add the following lines in module.source:
'model/bitcoin.cc',
'model/bitcoin-node.cc',
'model/bitcoin-miner.cc',
'model/bitcoin-simple-attacker.cc',
'model/bitcoin-selfish-miner.cc',
'model/bitcoin-selfish-miner-trials.cc',
'helper/bitcoin-topology-helper.cc',
'helper/bitcoin-node-helper.cc',
'helper/bitcoin-miner-helper.cc' -
Add the following lines in headers.source 'model/bitcoin.h', 'model/bitcoin-node.h', 'model/bitcoin-miner.h', 'model/bitcoin-simple-attacker.h', 'model/bitcoin-selfish-miner.h', 'model/bitcoin-selfish-miner-trials.h', 'helper/bitcoin-topology-helper.h', 'helper/bitcoin-node-helper.h', 'helper/bitcoin-miner-helper.h'
-
{Please fill}