Hi marcopal,
Maybe this helps.......
Hi Jeff,
I'm trying to get my head around the brd.c code with a view to introducing
LMDB to the picocoin project.
There's a few things I don't yet get. It seems that brd no longer stores blocks in
brd.blkdb (it's commented out in code) but uses
brd.blocks instead. But, there are still attempts to write to
brd.blkdb, like calling
blkdb_add(), which I think will always fail.
So, can the blkdb.c code be removed or does it just need a tidy-up?
blkdb is required and is always used. It is the block header database. It is kept in RAM, as bitcoind does. It is
optionally stored in a file, in addition to RAM. It is
optionally regenerated from the 17+GB blockchain file, if blkdb is missing
Actually, that reminds me. I never did have a go at adding LMDB to picocoin.