Comments (6)
Here's the raw hex of the (current) testnet4 genesis block; it's subject to change until such time as the PR is merged though hopefully it won't.
0100000000000000000000000000000000000000000000000000000000000000000000004e7b2b9128fe0291db0693af2ae418b767e657cd407e80cb1434221eaea7a07a046f3566ffff001dbb0c78170101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5504ffff001d01044c4c30332f4d61792f323032342030303030303030303030303030303030303030303165626435386332343439373062336161396437383362623030313031316662653865613865393865303065ffffffff0100f2052a010000002321000000000000000000000000000000000000000000000000000000000000000000ac00000000
from nbitcoin.
Looks like the network magic.
In the Bitcoin Core PR it's not very well commented; netmagic in chainparams.cpp is "pchMessageStart" which means the netmagic for testnet4 is 0x1c163f28.
Though note how testnet3 is defined in kernel/chainparams.cpp:
pchMessageStart[0] = 0x0b;
pchMessageStart[1] = 0x11;
pchMessageStart[2] = 0x09;
pchMessageStart[3] = 0x07;
Which is 0x0b110907 compared to NBitcoin's 0x0709110B.
This leads me to believe that Bitcoin Core and NBitcoin are using different endian notations. So the NBitcoin network magic string for testnet4 should be 0x283F161C
from nbitcoin.
Do you have any idea what 0x0709110B
represents? Seems like its the magic number? Do we know the magic number for testnet4
?
https://www.anintegratedworld.com/unravelling-the-mysterious-block-chain-magic-number/
from nbitcoin.
This leads me to believe that Bitcoin Core and NBitcoin are using different endian notations. So the NBitcoin network magic string for testnet4 should be 0x283F161C
Sooper helpful. PR incoming.
from nbitcoin.
Just curious if there was any progress on this?
from nbitcoin.
I made a PR for that, #1216, but I'm not sure what to use as vSeeds
for TestNet4
from nbitcoin.
Related Issues (20)
- Unable to create or compile to get NBitcoin.dll
- "Unknown transaction optional data" error when calling GetBlock() HOT 1
- Sign a text message with NBitcoin HOT 8
- RobiniaDocs API Explorer
- Failing to P2WPKH HOT 4
- Getting Block, Block Height, Block Hash
- Invalid PSBTInput Unknown SigHash Type
- NBitcoin > 7.0.24 - BitcoinStream.ReadWrite(ref byte[]) does not work anymore HOT 1
- This feature of taproot is not supported in .NET Framework HOT 1
- Improve SigHash support
- I cant create BIP84 Account Extended Public Key HOT 1
- How to use NBitcoin to verify historical tx transactions data๏ผ
- How to change fee and destination address in existing transaction?
- No pruneheight property on the GetBlockchainInfo RPC call
- How can i use "SendCommandAsync"?
- Get the public key given a Tx out HOT 10
- `GetDestinationAddress` returns a different address compared to the online explorers HOT 8
- ScriptCoin and Coin cannot be Serialized HOT 1
- GetTaprootFullPubKey question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbitcoin.