Open bonomat opened 5 years ago
I think testnet
and mainnet
are valid qualifications for the bitcoin networks. IMHO, the way bitcoind
JSON RPC express these networks should not change the way we express them in our SWAP messages.
After much debate with @thomaseizinger, my current proposal is to hold this back until we know more about client behaviour.
What we really need to do is see how the network parameter is used by the clients.
testnet
to testnet3
then we should return testnet3
.Hence the first step would be to add network verification for bitcoin on our client and see if we always do the same mapping.
Currently we are using
testnet
andmainnet
when talking about the different networks of Bitcoin. Every message between bitcoin nodes is prefixed with 4 bytes identifying the network the message is for.We want to use those 4 bytes to identify the network in our swap messages. Hints:
DoD:
testnet
with testnet3 magic bytes for bitcoin networksmainnet
with mainnet magic bytes for bitcoin networksamong others, this will need to be updated in the registry
Once this is done:
Related: https://github.com/comit-network/comit-rs/pull/1127