New testnet v3 and developer resources

While this news is primarily of interest to developers, it’s good for the broader community to be aware of progress being made “behind the scenes.” It’s important for all BTG users and BTG investors to know that we’re constantly improving our infrastructure and environment so that development progress is well-supported, for outside developers as well as for those working on the Bitcoin Gold Project, itself.

Launched: testnet v3

The team has recently finished a testnet reset for the Bitcoin Gold ecosystem and has stood up a few new resources that are useful to developers.

A testnet is critical for developers to be able to freely experiment and trial their ideas without having to put real BTG on the mainnet at risk. We’ve established this testnet infrastructure to give developers a system to work with that will be readily available. We want all devs, from professionals to hobbyists, to be free to work without worrying about a test environment. We’ll be publishing a GitHub wiki shortly with details on how to join this public testnet.

Another notable development: this testnet uses a new state-of-the-art Difficulty Adjustment Algorithm (developed with DAA researcher zawy12). This refined algorithm should be more sensitive to rapid changes in network hashpower while being less likely to over-compensate and should reduce the impacts of large hashpower swings on the overall block find-time. We plan to incorporate this improved DAA on the Bitcoin Gold mainnet in the future. The changed DAA on the testnet has no impact on developers writing software that uses BTG.

Other Resources:

We’ve also provided a few other important resources for developers, which will also be public:

A Testnet Faucet - https://test-faucet.bitcoingold.org/

This gives developers an easy way to pick up “test coins” that can be used during development, testing, and experiments, without having to start mining and waiting to earn them. (Testnet coins cannot be bought or sold on the market.)

A Testnet Explorer - https://test-explorer.bitcoingold.org/insight

This explorer allows an easy way to observe and browse the testnet blockchain and monitor the status of the network, and it also provides a full Insight API. This means that developers can focus on their particular application, and call the Insight API to perform the actual interaction with the blockchain - just like with our live mainnet explorer, https://explorer.bitcoingold.org/

Large organizations or projects may want to stand up their own private Insight instances on testnet and mainnet, but ours will be kept public to ensure that everyone around the world has a fair chance to get involved with developing software for blockchain.

A Testnet Pool - http://testnet.pool.gold:8080

This allows developers of miner software to access a test pool, and allows volunteer miners to dedicate some hashpower support the testnet. (Note: mining on the testnet only generate testnet coins, which have no market value.)

An SPV Wallet to be released shortly

An SPV Wallet (Simplified Payment Verification), sometimes called a “Light Wallet,” greatly reduces the resource load necessary to provide wallet services. This is important for developers working on limited resources, or for those who are developing tools intended to work on low-resource systems. On the mainnet, there’s security added to the whole network each time another full node shares the full blockchain, but for development and testing, it’s nice not to have to download and parse the entire blockchain.

I’m a developer. How do I get on the new testnet?

Technical details are published on the Tesnet v3 wiki on GitHub.

Conclusion

All the testnet components described above are open to the public, and are built with open-source projects. While it should be clear that this helps make our ecosystem accessible to new developers, it’s worth noting that having this infrastructure in place also eases the project’s own development burdens! Simply put, it makes it easier to work, and makes the BTG development space more inviting to new developers.

Establishing and maintaining these testing resources is vital to the continued healthy growth and development of the code for the Bitcoin Gold, for the many projects being built for it and on it - and the many projects new developers have yet to conceive!

Laying a solid foundation,
The Bitcoin Gold Organization
#1CPU1VOTE

6 Likes

hi memtalnomad,

i’m running a testnet btg node in my mac.

the “hash” field is even different with the ${blockHash} value in the URL https://test-explorer.bitcoingold.org/insight/block/${blockHash}, and the transaction ajax is always loading…

my question is ,where can i find the missing “solution” field for genesis block, cause without the “solution” field, i can’t build the complete block header and calculate the block hash for the genesis block.

Thanks~

good day all fellow crypto friends i am not a beggar but can someone please help me with some BTG i know there is guys out there with some coins to share thank you so very much GUnyMbyiucYCPhAPAnQGu2up22JHU8CRsa thank you once again

The Genesis block doesn’t have a solution as it’s the BTC Genesis Block. Why do you want to calculate the Genesis Blockhash?

Maybe this is of any help to you: https://github.com/BTCGPU/BTCGPU/blob/530ed7c79fa7b5affd7a952ba42779d5bf58b5fc/src/chainparams.cpp#L286

2 Likes

I’ll defer to @wilson , here - he’s the developer responsible for the ElectrumG fork.

I think this is normal behavior when using an Insight Explorer. For example, check out the original Insight Explorer with Bitcoin’s Genesis block:

https://insight.bitpay.com/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f

1 Like

The “BTG fork height” on the testnetv3 is 1. It means the genesis block is still “prefork” block while the block1 is the first BTG block. So it doesn’t have a “solution” field. Also the way to serialize it (for calculating hash) is same as Bitcoin.

2 Likes

@MentalNomad
thanks, yes i found the transaction part in the btc explorer’s genesis block’s page is also loading…,but they don’t have the other problem, their ${blockHash} part in the url is the same with the hash in the page, but btg testnet genesis block’s page still has this problem.

@h4x3rotab
i understand that now. thanks

@wilson
i’m a newcomer for blockchain with some java experiences, trying to do some coding work upon bitcoinj to implement a java demo to communicate with btg peer. as it’s a great chance for me to learn the bitcoin protocol and equihash. from h4x3rotab i understand that now, and will calculate the hash in btc way before fork point.

thanks for all the nice help.

Actually we are looking for someone helping add BTG support to BitcoinJ. Would you like to have a try? We have a prize for it :stuck_out_tongue:

2 Likes