lbcd/database/ldb
Alex Akselrod ead39153af Fix #303 and #346 and change addrindex sort order
Fix #303 by changing the addrindex key prefix to 3 characters so that
it's easy to check length when dropping the index. To drop the old
index, check to make sure we aren't dropping any entries that end in
"sx" or "tx" as those aren't part of the addrindex. Update test to
deal with the new prefix length.

Fix #346 by changing the pointers in the mempool's addrindex map to
wire.ShaHash 32-byte values. This lets them be deleted even if the
transaction data changes places in memory upon expanding the maps.

Change the way addrindex uint32s are stored to big-endian in order to
sort the transactions on disk in chronological/dependency order.

Change the "searchrawtransactions" RPC call to return transactions
from the database before the memory pool so that they're returned in
order. This commit DOES NOT do topological sorting of the memory pool
transactions to ensure they're returned in dependency order. This may
be a good idea for a future enhancement.

Add addrindex versioning to automatically drop the old/incompatible
version of the index and rebuild with the new sort method and key
prefix.
2015-03-23 13:05:54 -04:00
..
dbtest Import btcdb repo into database directory. 2015-01-27 13:15:15 -06:00
block.go Fix #303 and #346 and change addrindex sort order 2015-03-23 13:05:54 -04:00
boundary_test.go Update btcwire path import paths to new location. 2015-02-05 15:16:39 -06:00
doc.go Import btcdb repo into database directory. 2015-01-27 13:15:15 -06:00
dup_test.go Update btcwire path import paths to new location. 2015-02-05 15:16:39 -06:00
insertremove_test.go Update btcwire path import paths to new location. 2015-02-05 15:16:39 -06:00
internal_test.go Fix #303 and #346 and change addrindex sort order 2015-03-23 13:05:54 -04:00
leveldb.go Fix #303 and #346 and change addrindex sort order 2015-03-23 13:05:54 -04:00
operational_test.go Update golang.org/x/crypto import paths to new location. 2015-03-03 21:10:38 -06:00
tx.go Fix #303 and #346 and change addrindex sort order 2015-03-23 13:05:54 -04:00