Why Nostr? What is Njump?
2024-09-15 19:24:44
in reply to

mleku on Nostr: nah, i don't think you deduplicate their block storage, just think of it as a backup, ...

nah, i don't think you deduplicate their block storage, just think of it as a backup, that's the thing

btcd has a really awful database that is extremely slow, you think it's slow with bitcoind, almost 4x or more slower

you can have one as a primary, and a second one that is just a block-only and index one and use the "connect" (iirc, meaning connect only to this peer) and it will only listen for new blocks and when they arrive, update the indexes for you... the same data directory can do the same work simply by disabling that connect peer option

in fact, if you are only running it for service to other servers you don't need it to do any transaction caching at all, make it a "blocksonly" node and also there is a setting to contain how much bandwidth that uses too, i forget what it is now, but during times of ordinal spam full bitcoin nodes can use a lot of bandwidth relaying transactions, disabling them is one thing, but also limit the amount of data it uploads to other peers for their IBDs

there's a lot of neat things you can do to make a bitcoin node operate differently... the indexes aren't that big, btw, maybe around 120gb at this point for tx and address but if you are pinching for space you can keep a block only replica, i don't recommend it though, rebuilding the indexes is like 2/3rds of the IBD process
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku