How to customize core.IpfsNode creation?

I understand the node is created with its dependencies supplied through injection. However, the core.NewNode function provides very limited capacity for customization. I tried to build the core.IpfsNode by hand, but discovered its ctx is unexpected.

So I want to know what is the idiomatic way to create a customized core.IpfsNode instance, for example, with my own BlockStore injected? Thanks!

Looks like GitHub - hsanjuan/ipfs-lite: IPFS-Lite is an embeddable, lightweight IPFS-network peer for IPLD applications provides an alternative solution.

1 Like