timmattison / brick-rope

GNU General Public License v2.0
0 stars 1 forks source link

Make the block storage classes useful #2

Closed timmattison closed 10 years ago

timmattison commented 10 years ago

Right now they just store and fetch blocks but they need some more features to make them really useful

timmattison commented 10 years ago

getBlockCount() - should return the total number of blocks in the block database getLastBlockNumber() - should return the number of the last block we consider to be valid. We must have all the preceding blocks leading up to this block!

timmattison commented 10 years ago

getBlockOffset(long blockNumber) - should return the offset into the blockchain file for a specific block number

timmattison commented 10 years ago

Done as of 8295620ca91c35840ee22d7e32ad3a79c00910c8