Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify chaincfg. #1518

Open
ChrisCates opened this issue Jan 14, 2020 · 1 comment
Open

How to modify chaincfg. #1518

ChrisCates opened this issue Jan 14, 2020 · 1 comment
Labels

Comments

@ChrisCates
Copy link

ChrisCates commented Jan 14, 2020

Hi all,

I hope you all are having a good day.
For a project, I'm working on. I need to modify chaincfg.

Ideally, I am able to migrate a btcd fork to be fully compatible with Divi. But for the time being... I just need to get chaincfg fully migrated and working properly in our atomic swaps implementation.

I need two files for the atomic swap implementation to be fully compatible with Divi.

Using chainparams.cpp as a reference to update these files. What exactly do I need to do to make this fully compatible with the Divi chain?

So far, I've modified:

genesis.go

  1. genesisCoinbaseTx (but not TxOut.PkScript)

  2. genesisHash

  3. genesisMerkleRoot

  4. genesisBlock

params.go

  1. TargetTimespan

  2. TargetTimePerBlock

  3. MinDiffReductionTime

  4. PubKeyHashAddrID

  5. ScriptHashAddrID

Please note that I am just trying to get testnet3 to work only for the time being.

Currently. When I try to interact with a Divi RPC client. I will get this error:

{
    "error": "unknown address type",
    "code": 2,
    "message": "unknown address type"
}

Thank you in advance for the help.
And, if I am able to get this working. I am going to create a guide on how to update btcd to be compatible with other Bitcoin forks.

@jakesylvestre
Copy link
Collaborator

jakesylvestre commented Mar 9, 2020

Please see #1503, I modified it there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants