Skip to content

Commit

Permalink
Version 0.0.7n - install MMGen 0.9.2aug1hf, Bitcoin ABC daemon
Browse files Browse the repository at this point in the history
August 1 2017 HF support:

	Launch the desired version of bitcoind:
	- mmlive-node-start      # Bitcoin Core
	- mmlive-node-start -U   # UASF
	- mmlive-node-start -A   # Bitcoin ABC

	With ABC daemon running, transact on the BCH chain:
	- mmgen-txdo --aug1hf, mmgen-txsign --aug1hf
  • Loading branch information
mmgen committed Aug 2, 2017
1 parent 020aad7 commit 88308fc
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## ChangeLog

### v0.0.7n
+ Upgrade MMGen to aug1hf tag version
+ Install Bitcoin ABC client with disclaimer

### v0.0.7m
+ Upgrade Bitcoin Core to version 0.14.2 BIP148

Expand Down
9 changes: 4 additions & 5 deletions build_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ function setup_user() {
}
function get_bitcoind_dl_url { # sets DLDIR_URL, BITCOIND_URL, VER, ARCHIVE
VER=$1
gmsg "Finding download URL for Bitcoin Core version '$VER'"
gmsg "Finding download URL for bitcoind version '$VER'"
DLDIR_URL='https://bitcoin.org/bin/'
TEXT=$(eval "$LYNX --listonly --nonumbers --dump $DLDIR_URL")
# echo "$TEXT" > /tmp/bitcoin.org.dl.txt
Expand All @@ -839,7 +839,6 @@ function check_file_chksum {
fi
}
function retrieve_bitcoind { # retrieves to current directory
echo $VER
if echo "$VER" | egrep -q '^[0-9]+\.[0-9]+\.[0-9]+.*$'; then
echo "Latest version is $VER"
# Could have partial DL, so check sha256 sum
Expand All @@ -848,7 +847,7 @@ function retrieve_bitcoind { # retrieves to current directory
elif [ -e "$ARCHIVE" -a -z "$BITCOIND_CHKSUM" ]; then
gecho "Found locally-stored archive for version $VER"
else
gecho "Retrieving Bitcoin Core $VER from '$DLDIR_URL'"
gecho "Retrieving bitcoind $VER from '$DLDIR_URL'"
exec_or_die "$CURL -LO $BITCOIND_URL"
fi
# checksums: https://github.com/bitcoin-core/gitian.sigs
Expand All @@ -860,7 +859,7 @@ function retrieve_bitcoind { # retrieves to current directory
pause
fi
else
yecho -n "Unable to find latest version of Bitcoin Core"
yecho -n "Unable to find latest version of bitcoind"
yecho " (version number ${VER} doesn't fit pattern)."
yecho "See: $DLDIR_URL"
yecho -n "Download the latest Linux ${ARCH_BITS}-bit gzipped tar archive, place it in"
Expand All @@ -871,7 +870,7 @@ function retrieve_bitcoind { # retrieves to current directory
function unpack_and_install_bitcoind {
[ "$1" ] || die "You must specify an install prefix"
INSTALL_PREFIX=${1%/}
gmsg 'Unpacking and installing Bitcoin Core'
gmsg 'Unpacking and installing bitcoind'
tar xzf $ARCHIVE || {
rm -f $ARCHIVE
ymsg 'Archive could not be unpacked, so it was deleted. Exiting.'; die
Expand Down
40 changes: 40 additions & 0 deletions upgrade/0.0.7/upgrade-n.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
#:REV: 0.0.7n
#:DESC: Upgrade MMGen to aug1hf tag version
#:DESC: Install Bitcoin ABC client with disclaimer

set -e

function upgrade_mmgen {
echo "Upgrading MMGen to version '$VER'"
(
cd /setup/git/MMGenLive/
eval "$BUILD_SYSTEM chroot_install_mmgen_user_at_commit 'IN_MMLIVE_SYSTEM=1' 'MMGEN_COMMIT=$VER'"
)
}

VER='aug1hf'
[ -d ~mmgen/src/mmgen-$VER ] || upgrade_mmgen

VERSION='0.14.6'
SUBVERSION='-abc'
CHKSUM='9f37b8ec36a37944b016bbbf07340adb8ba644abb897b2d2e0edeb99ccf709c0'
DLDIR_URL='https://download.bitcoinabc.org/0.14.6/linux'
ARCHIVE='bitcoin-0.14.6-x86_64-linux-gnu.tar.gz'

function do_install {
echo "Installing Bitcoin ABC version '$VERSION'"
(
cd /setup/git/MMGenLive/
TARGET='chroot_install_bitcoind_archive'
eval "$BUILD_SYSTEM $TARGET 'IN_MMLIVE_SYSTEM=1' 'VER=$VERSION' 'SUBVER=$SUBVERSION' 'BITCOIND_CHKSUM=$CHKSUM' 'DLDIR_URL=$DLDIR_URL' 'ARCHIVE=$ARCHIVE'"
)
}

which 'bitcoind-abc' >/dev/null || {
do_install
echo -e "${YELLOW}To select the Bitcoin ABC client, run 'mmlive-node-start' with the '-A' switch$RESET"
echo -e "${YELLOW}This is untrusted software. No warranty is provided by MMGen.$RESET"
echo -e "${YELLOW}To minimize your risk, use MMGen only in online/offline mode.$RESET"
}
exit 0

0 comments on commit 88308fc

Please sign in to comment.