danicoin/src/blockchain_db/lmdb
moneromooo-monero f2986ccfc1
db_lmdb: fix bad height saved in tx data
The recent change to not keep separate track of the blockchain
height caused the reported height to jump early in the lmdb
transaction (when the block data is added to the blocks table),
rather than at the end, after everything succeeded. Since the
block data is added before the transaction data, this caused
the transaction data to be saved with a height one more than
its expected value.

Fix this by saving the block data last. This should have no
side effects.
2017-02-11 10:16:18 +00:00
..
db_lmdb.cpp db_lmdb: fix bad height saved in tx data 2017-02-11 10:16:18 +00:00
db_lmdb.h Merge pull request #1506 2017-01-15 14:43:12 -05:00