Code cleanup
Revert tx id counting to be retrocompatible with 2.1

- tx id counting should start from 1 rather than from 0
Merge pull request #2816 from davidegrohmann/2.2-tx-id-count-2.1-compatible

Tx id counting must start from 1