We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried deserializing the block headers using the provided tests, but there was one byte left per header. https://github.com/dartcoin/dart-bitcoin/blob/master/lib/src/core/block_header.dart#L105
I'm not sure if the byte left is a 00 byte dividing the headers? Or is is the txs count? I modified it like this:
void bitcoinDeserialize(bytes.Reader reader, int pver) { version = readUintLE(reader); previousBlock = readSHA256(reader); merkleRoot = readSHA256(reader); timestamp = readUintLE(reader); difficultyTarget = readUintLE(reader); nonce = readUintLE(reader); reader.readByte(); // 00 byte }
Is this right, or is there a better place/way to do it?
The text was updated successfully, but these errors were encountered:
I could also add it here instead: https://github.com/dartcoin/dart-bitcoin/blob/master/lib/src/wire/messages/headers_message.dart#L27
Sorry, something went wrong.
No branches or pull requests
I tried deserializing the block headers using the provided tests, but there was one byte left per header.
https://github.com/dartcoin/dart-bitcoin/blob/master/lib/src/core/block_header.dart#L105
I'm not sure if the byte left is a 00 byte dividing the headers? Or is is the txs count?
I modified it like this:
Is this right, or is there a better place/way to do it?
The text was updated successfully, but these errors were encountered: