Right now, this structure is created:
โโโ admin.macaroon
โโโ bitcoin
โย ย โโโ testnet
โย ย โโโ wallet.db
โโโ macaroons.db
โโโ readonly.macaroon
โโโ testnet3
โโโ bitcoin
โโโ channel.db
It's kinda confusing that there is a bitcoin/testnet and testnet3/bitcoin. I think both channel.db and wallet.db could live in <protocol>/<network>/..
The current structure is a hold-over as it's mid way between being able to support multiple chains. In a future of multiple chains, the channel.db file would be in a distinct folder as it would be shared across all other instances. In this case, it would look something like:
โโโ chain
โ โโโ bitcoin
โ โโโ testnet
โ โโโ block_headers.bin
โ โโโ ext_filter_headers.bin
โ โโโ neutrino.db
โ โโโ peers.json
โ โโโ reg_filter_headers.bin
โ โโโ wallet.db
โโโ graph
โโโ testnet
โโโ channel.db
Agreed that the current structure is confusing and sub-optimal. Before 0.4-beta is released, we want to have a set directory structure which factors in future extensions.
Perfectly understandable, just keeping this for the record.
Quick thing: does ./graph/testnet/ mean that both litecoin-testnet and bitcoin-testnet will be considered equivalent and share a db, while bitcoin-mainnet and litecoin-mainnet also share one? That's neat.
while bitcoin-mainnet and litecoin-mainnet also share one
Yep, that's the plan! Stay tuned for some news soon on the implications of this ๐
Most helpful comment
Yep, that's the plan! Stay tuned for some news soon on the implications of this ๐