Welcome to BeerMoneyForum.com - BIGGEST MAKE MONEY FORUM ONLINE

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?
Blue
Red
Green
Orange
Voilet
Slate
Dark
  Guest viewing is limited

[TUTORIAL] ⛏ Bitcoin Stash (BSH) Merged Mining Is Now Available! ⛏

BitcoinStash

Newbie Member
LV
0
 
Joined
Oct 10, 2018
Messages
27
Reaction score
0
Points
0
Age
53
Location
Internet
Website
bstash.org
BMF Points
$0
Rating - 0%
0   0   0
Bitcoin Stash Merged Mining Guide


Overview

Bitcoin Stash is a merge mineable cryptocurrency that utilizes SHA256 for its mining algorithm. This means that it can be merge mined with other SHA256 coins like Bitcoin an Bitcoin Cash. Merge mining is a process where a miner is able to mine multiple cryptocurrencies at the same time. All that is required for a miner is to add 48 bytes of data to the coinbase of the parent block.
We will have a private testnet testing phase beginning at 11/4/18. On 11/4/18, miners will have access to Bitcoin Stash binaries (with only testnet capabilities available). They will be able to merge mine on the testnet by following the below instructions. A sample code implementation is provided in bitcoinstash_mergemining_sample.py.


Instructions

Follow the step belows to merge mine on Bitcoin Stash. Sample code implementation is provided in bitcoinstash_mergemining_sample.py.

1.Use RPC call getnewaddress() to get a new address for Bitcoin Stash (this will only need to be done once)

2.Call RPC command createauxblock() with address obtained from step 1). This will make a Bitcoin Stash block with a coinbase payment to the address.

3.From the JSON output of createauxblock(), use 'auxcoinbasedata' to obtain the data that must be inserted into the script sig of the coinbase in the parent block. To understand how this data is constructed, read the 'Constructing the Auxpow Coinbase Data' section below.

4.Start solving the parent block until you meet the encoded target threshold specified by the 'bits' field in the JSON output of createauxblock().

5.If the parent block meets the target as defined step 4, construct the auxpow header data. Submit the auxpow header data using RPC command submitauxblock() with first argument being 'hash' from output of createauxblock in step 2), the second argument is the hex string of the auxpow data. Instructions on constructing the auxpow data is shown below. If a valid auxpow header data was submitted, the merge mined block will be submitted on the Bitcoin Stash network.


Constructing the Auxpow Header Data
Auxpow header data is extra data attached to the BitcoinStash block header that links the block to the the parent block. It is composed from the below data.
Serialized coinbase transaction +
Hash of the parent block (32 bytes) +
Merkle branches (can be 0x00, if only transaction in block) +
Index in the merkle branch (4 bytes, must always be \x00\x00\x00\x00) +
Chain Merkle branch (4 bytes, can be 0x00, if no other child chain) +
Index in the chain merkle branch (4 bytes, can be \x00\x00\x00\x00 if no other child chain) +
Serialized parent block header

Constructing the Auxpow Coinbase Data
The auxpow coinbase data is data inserted into the parent block's coinbase to link the parent block to the BitcoinStash block. It is composed from the below data.
Merge Mining Header (4 bytes, must always be \xFA\xBE\x6D\x6D ) +
Root hash of Merkle Trie containing child chian (32 bytes, set to hash of Bitcoin Stash block if no other child chain) +
Merkle Trie Size, (4 bytes, set to 1 if no other child chain) +
Nonce, the nonce and the chain id of the child chain determines a pseudo random slot in the chain merkle trie (4 bytes, can be set to anything if no other child chain) +
Parent Chain Id (4 bytes, set to 210 if Bitcoin is the parent block 209 if Bitcoin Cash is parent block)

Stand Alone Mining
Stand alone mining (mining Bitcoin Stash only without using its merge mining capabilities), will also be possible through the standard RPC call getblocktemplate.


Merge Mining GitHub Link
https://github.com/bstash/BitcoinStash-MergeMining-Guide


Bitcoin Stash Wallet Binary Files (Windows & Linux)
https://github.com/bstash/BitcoinStash/releases

Bitcoin Stash Website
https://bstash.org

Bitcoin Stash Forum
https://forum.bstash.org

Bitcoin Stash Explorer
http://explorer.bstash.org
 

📢 Recommended Partners

MGID - Native Performance & Programmatic Advertising Platform MGID Team
0.00 star(s) 0 ratings
Updated
Roobet.com | Crypto’s Fastest Growing Casino 🦘 Roobet.com
0.00 star(s) 0 ratings
Updated
Duckdice.io - Top Crypto Gambling - Bitcoin Dice DuckDice.io
0.00 star(s) 0 ratings
Updated
BMFAds.com - Advertise and Monetize Your CPC, CPM, POP Traffic BMF Staff
4.00 star(s) 4 ratings
Updated

banner

REWARDS: Active Raffles


  • 🤑 Roll 3: Win 100,000 BMF Points!

    The entry period for this raffle ends in..
Back
Top Bottom

Earnings Disclaimer:  All the posts published herein are merely based on individual views, and they do not expressly or by implications represent those of BeerMoneyForum.com or its owner. It is hereby made clear that BeerMoneyForum.com does not endorse, support, adopt or vouch any views, programs and/or business opportunities posted herein. BeerMoneyForum.com also does not give and/or offer any investment advice to any members and/or it's readers. All members and readers are advised to independently consult their own consultants, lawyers and/or families before making any investment and/or business decisions. This forum is merely a place for general discussions. It is hereby agreed by all members and/or readers that BeerMoneyForum.com is in no way responsible and/or liable for any damages and/or losses suffered by anyone of you.