BTC Hard-Fork via C program (Linux) and How to Claim BCC?


The Bitcoin hard-forked this Month (1 Aug 2017), which is the biggest great news in the bitcoin world. The fork is the operation for process to duplicate the code except the PID. Similarly, the BCC (bitcoin cash) is the bitcoin forked. This process can be illustrated via the following C program that can be compiled and run under Linux using gcc compilers.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// https://helloacm.com/btc-hard-fork-via-c-program-linux-and-how-to-claim-bcc/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
 
int main() {
        pid_t pid;
        switch (pid = fork()) { // Bitcoin Hard-fork on 1/Aug/2017
                case -1:
                        perror("Hard Fork Failure");
                        break;
                case 0: // Child-process Bitcoin Cash (BCC)
                        printf ("%s\n", "BCC is now alive");
                        break;
                default: // Parent-process BTC
                        printf ("%s\n", "I am BTC");
                        break;
        }
        for (;;) ; // continue to grow!
}
// https://helloacm.com/btc-hard-fork-via-c-program-linux-and-how-to-claim-bcc/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
 
int main() {
        pid_t pid;
        switch (pid = fork()) { // Bitcoin Hard-fork on 1/Aug/2017
                case -1:
                        perror("Hard Fork Failure");
                        break;
                case 0: // Child-process Bitcoin Cash (BCC)
                        printf ("%s\n", "BCC is now alive");
                        break;
                default: // Parent-process BTC
                        printf ("%s\n", "I am BTC");
                        break;
        }
        for (;;) ; // continue to grow!
}

After hard-fork, the BCC and BTC diverge. But they share the same history (parent) before 1/Aug.

BCC BTC Hard-Fork via C program (Linux) and How to Claim BCC? Cryptocurrency

BCC wallet

How to Claim BCC (Bitcoin Cash)?

The BCC and BTC share the same private key, but it is always safer to transfer your existing funds from your BTC wallet to another before you put your hands on the BCC funds. Some online BTC wallets e.g. codebase and exchange sites will automatically credit the same amount of BCC to your BCC (Bitcoin Cash) wallets.

I am using the Offline Bitcoin wallet – Electrum, and here is the corresponding BCC wallet Electron Cash Wallet, which was developed by the same team. Therefore both wallets are highly compatible.

The official method to claim the BCC (Bitcoin Cash) is to export the private key of BTC wallet and re-load them into your BCC wallet, however, after the installation of BCC wallet on the same PC as BTC wallet, the funds immediately become available.

bcc-and-btc-wallet BTC Hard-Fork via C program (Linux) and How to Claim BCC? Cryptocurrency

bcc-and-btc-wallet

You may also like: 小白教程: 怎么领取 BCC (Bitcoin Cash) ?

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
470 words
Last Post: The Chess AI - Model Base or Machine Learning
Next Post: How Many Ways from A to C via B? Counting the Unique Paths Walking in a Grid

The Permanent URL is: BTC Hard-Fork via C program (Linux) and How to Claim BCC?

Leave a Reply