Create Forks
BigBang-Core edited this page May 8, 2020
·
5 revisions
First, complete the relevant operation according to the "PoW Guide", and our next operation will be based on the pow normal block output
- PoW Guide:https://github.com/bigbangcore/BigBang/wiki/PoW-Guide
- Download address of executable program (please select the latest version):
https://github.com/bigbangcore/BigBang/releases
# Key pair for spend
{
"privkey" : "514025fb4b6d6bdb15d4521d047d20ace5311fa10e2e8889adbd262f93dc673b",
"pubkey" : "14d39e3a7e7c408eceb8dbb213cfe047bed25aa1e8e317e08c65f3f577f73e2f",
"pubkeyaddress":"15wzfexznydjrsr0qwfma2ppjqs3y1krkpbdvhkme81y7wemytcaf8k28"--用作cryptonightaddress参数
}
# Key pair for PoW
{
"privkey" : "2f0d0cad44197616195558935407f9febc6028938022ce4dfc912e759c7b45f0",---私钥,用作cryptonightkey参数
"pubkey" : "e2b4371f93e98245dfdf137fe0205f21f6bef6825eab49c8cef0c25e0942a541"---公钥,用作POW挖矿mint参数
}
# Template address for the PoW mining
20g08xexyx0hakeg3sfa7ve6y3skpv19gt15mg3f784q6ejqp5a67xa7q
./bigbang stop
./bigbang -daemon
NOTE: In the windows operating system,when executing the program in your current directory, please change the ". /bigbang" command to "bigbang". Same below.
./bigbang unlockkey 14d39e3a7e7c408eceb8dbb213cfe047bed25aa1e8e317e08c65f3f577f73e2f 123456
./bigbang getpubkeyaddress 14d39e3a7e7c408eceb8dbb213cfe047bed25aa1e8e317e08c65f3f577f73e2f
15wzfexznydjrsr0qwfma2ppjqs3y1krkpbdvhkme81y7wemytcaf8k28
Get the hash address according to the specified height, and the fork we create will be based on the hash
./bigbang getblockhash 10
[
"0c06b82cf444a8b0bf02515f347afc3dd4693d36c69bb7fe94b1797f633d53c8"
]
Generate fork chain according to specific fork chain information, and return ID and branch parameter data
./bigbang makeorigin 0c06b82cf444a8b0bf02515f347afc3dd4693d36c69bb7fe94b1797f633d53c8 15wzfexznydjrsr0qwfma2ppjqs3y1krkpbdvhkme81y7wemytcaf8k28 100000000 BigBangA BA 15
{
"hash" : "557384528669a894e14afe48725ef2b243f6dba3d0735b71effc21adf3bbc783",
"hex" : "010000ff12ffe45cc8533d637f79b194feb79bc6363d69d43dfc7a345f5102bfb0a844f42cb8060c0000000000000000000000000000000000000000000000000000000000000000708001000000e10842696742616e6741e20242414301a46400000000000000a5c0e1e40000000000e62101e21d19ac52602eca9f9f70f5b43abfff29ed552b3d4f08478f50829c6c3b8c5ac78f49a251e0d1a3780dcd60470bcc4cf5fad86ea9acdbe48f1267ecff85940992880a0000000100000112ffe45c0000000000000000000000000000000000000000000000000000000000000000000000000001e21d19ac52602eca9f9f70f5b43abfff29ed552b3d4f08478f50829c6c3b8c5a00407a10f35a000000000000000000000842696742616e67410000405f48ea67d62d714e35929f864e74ccbe89bc9512c0ed8b739ee0f0f2a8c12a5fec472051a45be8175bd71b25d7b6b4c4129f790d92804f527d2da6208deaf104"
}
* Command:./bigbang addnewtemplate fork '{"redeem":"wallet address","fork":"fork chain ID returned in the previous operation"}'
./bigbang addnewtemplate fork "{\"redeem\":\"15wzfexznydjrsr0qwfma2ppjqs3y1krkpbdvhkme81y7wemytcaf8k28\",\"fork\":\"557384528669a894e14afe48725ef2b243f6dba3d0735b71effc21adf3bbc783\"}"
20c07j7pt2faqc7xspvz8c2qx1xp2zhsenx1379cjjd9xvrnph1kx8gj8
./bigbang sendfrom 20g08xexyx0hakeg3sfa7ve6y3skpv19gt15mg3f784q6ejqp5a67xa7q 20c07j7pt2faqc7xspvz8c2qx1xp2zhsenx1379cjjd9xvrnph1kx8gj8 100000 5 -d=010000ff12ffe45cc8533d637f79b194feb79bc6363d69d43dfc7a345f5102bfb0a844f42cb8060c0000000000000000000000000000000000000000000000000000000000000000708001000000e10842696742616e6741e20242414301a46400000000000000a5c0e1e40000000000e62101e21d19ac52602eca9f9f70f5b43abfff29ed552b3d4f08478f50829c6c3b8c5ac78f49a251e0d1a3780dcd60470bcc4cf5fad86ea9acdbe48f1267ecff85940992880a0000000100000112ffe45c0000000000000000000000000000000000000000000000000000000000000000000000000001e21d19ac52602eca9f9f70f5b43abfff29ed552b3d4f08478f50829c6c3b8c5a00407a10f35a000000000000000000000842696742616e67410000405f48ea67d62d714e35929f864e74ccbe89bc9512c0ed8b739ee0f0f2a8c12a5fec472051a45be8175bd71b25d7b6b4c4129f790d92804f527d2da6208deaf104
5ce764263a62c6687ea8bb8b5d12e054dfb483f1896f16fb6cbb31a4b6a6c81b
./bigbang stop
./bigbang -addfork=557384528669a894e14afe48725ef2b243f6dba3d0735b71effc21adf3bbc783 -daemon
./bigbang listfork
[
{
"fork" : "557384528669a894e14afe48725ef2b243f6dba3d0735b71effc21adf3bbc783",
"name" : "BigBangA",
"symbol" : "BA",
"isolated" : true,
"private" : false,
"enclosed" : false,
"owner" : "15wzfexznydjrsr0qwfma2ppjqs3y1krkpbdvhkme81y7wemytcaf8k28"
},
{
"fork" : "92099485ffec67128fe4dbaca96ed8faf54ccc0b4760cd0d78a3d1e051a2498f",
"name" : "BigBang Network",
"symbol" : "BBC",
"isolated" : true,
"private" : false,
"enclosed" : false,
"owner" : "1965p604xzdrffvg90ax9bk0q3xyqn5zz2vc9zpbe3wdswzazj7d144mm"
}
]
- Source Installation
- Executable Programs
- Take A Tour of BigBang
- CPoW SOLO Guide
- Create Forks
- Exchange Token Between Two Forks
- Mining by Connect to The Pool
- Miner Program
- EDPoS Vote Guide
- JSON RPC
- Command Line Tool
- TX vchdata serialization definition
- Tx signature field structure
- Multisignature
- IO Stream
- Data Stream