mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Problem: API returns 404 for existing empty blocks Solution: Empty blocks are not store in MongoDB because Tendermint does not notify BigchainDB about them. In case a user requests a block that is not in our MongoDB, we check if the requested height is less than or equal to latest_block_height. If that's the case, we return an empty block. If the requested height is greater than latest_block_height, then we return 404. * Address Lev's comment * address Lev and Vansh comment