From 723a537e64eca17ad58d44b0ef5c2694cf1edf80 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 21 Jun 2021 19:27:29 +0000 Subject: [PATCH] Update 'doc/developer-notes.md' --- doc/developer-notes.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/doc/developer-notes.md b/doc/developer-notes.md index c4aa7e9c2..727f42fd8 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -1,5 +1,32 @@ -Coding -==================== +# Testing a Branch + +To test a branch called `zindexdb` with a fresh clone + +``` +git clone https://git.hush.is/hush/hush3 hush3-testing +cd hush3-testing +git checkout zindexdb +# you need 2GB RAM free per -jN +./build.sh -j2; make; make; make # this deals with build-system race condition bugs + +# we want to test a fresh sync, so backup current data +mv ~/.komodo/{HUSH3,HUSH3-backup} +mkdir ~/.komodo/HUSH3 + +# This is optional but will likely speed up sync time greatly +cp ~/.komodo/{HUSH3-backup,HUSH3}/peers.dat + +echo "zindex=1" >> ~/.komodo/HUSH3/HUSH3.conf + +# This log file is helpful for debugging more and will contain a history of the +# size of the anonset at every block height +./src/hushd &> hushd.log & +# to look at the log +tail -f hushd.log +``` + + +# Coding Various coding styles have been used during the history of the codebase, and the result is not very consistent. However, we're now trying to converge to