Skip to content

Instantly share code, notes, and snippets.

@dexX7
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save dexX7/c2c0c1ffdc4b2fa942b0 to your computer and use it in GitHub Desktop.

Select an option

Save dexX7/c2c0c1ffdc4b2fa942b0 to your computer and use it in GitHub Desktop.
Omni Core + Auditor + BitcoindComparisonTool
# clone omnicore
~/Projects$ git clone https://github.com/OmniLayer/omnicore.git
~/Projects$ cd omnicore/
# checkout the auditor as new branch
~/Projects/omnicore$ git remote add zathras https://github.com/zathras-crypto/mastercore.git
~/Projects/omnicore$ git fetch zathras 0.0.10-Z-Auditor
~/Projects/omnicore$ git checkout -b 0.0.10-Z-Auditor-comptool zathras/0.0.10-Z-Auditor
# download the comparison tool
~/Projects/omnicore$ curl -k -L -o ./share/BitcoindComparisonTool.jar https://github.com/TheBlueMatt/test-scripts/blob/38b490a2599d422b12d5ce8f165792f63fd8f54f/pull-tests-0f7b5d8.jar?raw=true
# build omnicore *with that tool*
~/Projects/omnicore$ ./autogen.sh
~/Projects/omnicore$ ./configure --with-comparison-tool=./share/BitcoindComparisonTool.jar
~/Projects/omnicore$ make
# to run the bitcoind comparison tool
~/Projects/omnicore$ mkdir -p qa/tmp
~/Projects/omnicore$ qa/pull-tester/run-bitcoind-for-test.sh /usr/bin/java -jar ./share/BitcoindComparisonTool.jar qa/tmp/compTool 0 2>&1
# to get even heavier reorg tests
~/Projects/omnicore$ qa/pull-tester/run-bitcoind-for-test.sh /usr/bin/java -jar ./share/BitcoindComparisonTool.jar qa/tmp/compTool 1 2>&1
# and if this doesn't work for any reason, try
~/Projects/omnicore$ make check
# the logs should be in:
# ~/Projects/omnicore/.bitcoin/regtest/mastercore.log
# ~/Projects/omnicore/.bitcoin/regtest/omnicore_audit.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment