-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for the Aug 1 2017 UAHF ("Bitcoin Cash", "Bitcoin ABC")
Brief instructions for Linux (Windows users may adapt to fit): Make a copy of your Bitcoin data directory, including the blockchain and your tracking wallet (the blockchain must have been synced last BEFORE 12:20 UTC Aug. 1). This can be done as follows: $ mkdir ~/.bitcoin-abc $ rsync -av ~/.bitcoin/* ~/.bitcoin-abc If you messed up and synced your blockchain AFTER the HF, then do the following, after which you'll have to sync the ABC chain from scratch: $ mkdir ~/.bitcoin-abc $ cp ~/.bitcoin/{bitcoin.conf,*wallet*.dat} ~/.bitcoin-abc Download the Bitcoin ABC binary, but DON'T let it install automatically. Or alternatively, clone the source from Github and compile it yourself: Binary: https://download.bitcoinabc.org/0.14.6 Source: git clone https://github.com/Bitcoin-ABC/bitcoin-abc Install the Bitcoin ABC daemon BY HAND into your exec path as 'bitcoind-abc': $ sudo cp bitcoind /usr/local/bin/bitcoind-abc Start the daemon and let it sync the ABC chain: $ bitcoind-abc -datadir=$HOME/.bitcoin-abc -daemon Don't forget to always start the ABC daemon with the -datadir argument. Otherwise you could trash your Core blockchain! Once the HF has activated, you sign or create-sign-send transactions on the ABC chain by invoking 'mmgen-txsign' or 'mmgen-txdo' with the --aug1hf switch. All other commands, including 'mmgen-txcreate' and 'mmgen-txsend', are invoked as usual, with no additional command-line switches. Your address balances and unspent outputs will display correctly for whatever chain you're on at the moment. To switch back to the Core chain, just stop the ABC daemon and restart the Core daemon (WITHOUT the -datadir argument). After the Aug. 1 HF, Core transactions and ABC transactions will be incompatible, as they use an incompatible sighash type. This prevents transactions from being broadcast (and hence replayed) on the wrong chain. So if you use the --aug1hf switch on the Core chain, or forget to use it on the ABC chain, nothing bad will happen; your sign or send operation will just fail with an error message. The main danger is forgetting which daemon is running at the moment and therefore which chain you're on. This can be checked on Linux with the command `pgrep -a bitcoind` or on Windows by examining the task manager. In case you were wondering, all the --aug1hf switch does is perform a few sanity checks and call signrawtransaction with 'ALL|FORKID' as the 'sighashtype' argument. There's nothing more to it than that!
- Loading branch information
Showing
6 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters