<p>I solved the problem, I was reading the Nonce from the block as a 64 bit integer like in the version message instead of a 32 bit integer.</p>

CC BY-SA 3.0
2013-11-11T00:15:53.493Z
great that you answered your own question, so that others can learn from this :-)
Jonas Oestman
CC BY-SA 3.0
2013-11-10T23:19:06.337Z
2013-11-10T23:19:06.337Z
Tarantula
<p>Why I'm receiving always zero in the txn_count field of the block message after calling it with a getdata ? Is this expected ? How can I get the transactions present in a block ?</p>

<protocol><block>
Why the txn_count is zero in the block message?
Tarantula
# Why the txn_count is zero in the block message?

(Asked by: username_0 on 2013-11-10)

Why I'm receiving always zero in the txn\_count field of the block message after calling it with a getdata ? Is this expected ? How can I get the transactions present in a block ?

**Tags:** protocol, block


---

## 1 answers

### Answer by username_0 on 2013-11-10. Score: 1

I solved the problem, I was reading the Nonce from the block as a 64 bit integer like in the version message instead of a 32 bit integer.

> **Comments:**
> **username_1**: great that you answered your own question, so that others can learn from this :-)  

---

