mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-13 11:35:52 +01:00
Change FetchBlockByHeight to do the database lookup itself instead of calling getBlkByHeight. This saves an allocation of the entire block, which it wasn't using. In OpenDB, use fetchBlockShaByHeight instead of getBlkByHeight since it only needs the sha. This saves memory on startup. ok drahn@ |
||
---|---|---|
.. | ||
dbtest | ||
block.go | ||
boundary_test.go | ||
doc.go | ||
dup_test.go | ||
insertremove_test.go | ||
internal_test.go | ||
leveldb.go | ||
operational_test.go | ||
tx.go |