Skip to content

Instantly share code, notes, and snippets.

@dexX7
Created April 24, 2015 11:07
Show Gist options
  • Select an option

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

Select an option

Save dexX7/1bacb0b4a0aff2ff432c to your computer and use it in GitHub Desktop.
Omni Core + Auditor + Reorg tests
# 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-mempool zathras/0.0.10-Z-Auditor
# add the clearmempool command
~/Projects/omnicore$ git remote add dexx https://github.com/dexX7/bitcoin.git
~/Projects/omnicore$ git fetch dexx oc-0.10-rpc-clearmempool
~/Projects/omnicore$ git cherry-pick 4849c1d06795f33c0920e4b6664cf30bf5c2094d
~/Projects/omnicore$ git cherry-pick efe42255a78a747b7ce2dba99818e98b0c80a66c
# build omnicore
~/Projects/omnicore$ ./autogen.sh
~/Projects/omnicore$ ./configure
~/Projects/omnicore$ make
# start omnicore
~/Projects/omnicore$ mkdir -p /tmp/auditor
~/Projects/omnicore$ ./src/qt/bitcoin-qt -datadir=/tmp/auditor -server -rpcuser=bitcoinrpc -rpcpassword=pass -rpcallowip=127.0.0.1 -regtest -txindex
# open a new terminal, navigate to the omnicore dir, and prepare OmniJ
~$ cd Projects/omnicore/
~/Projects/omnicore$ git clone https://github.com/OmniLayer/OmniJ.git qa/OmniJ
~/Projects/omnicore$ cd qa/OmniJ/
# start the reorg tests
~/Projects/omnicore/qa/OmniJ$ ./gradlew :omnij-rpc:cleanTest :omnij-rpc:regTest --tests "foundation.omni.test.rpc.reorgs.*"
# or alternatively, run all tests
~/Projects/omnicore/qa/OmniJ$ ./gradlew :omnij-rpc:cleanTest :omnij-rpc:regTest
# the log files can be found in:
# /tmp/auditor/regtest/mastercore.log
# /tmp/auditor/regtest/omnicore_audit.log
# the test report can be found in:
# ~/Projects/omnicore/qa/OmniJ/omnij-rpc/build/reports/tests/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment