Can anyone point me out, what should I do if I want some other
libp2p protocol to use a BitSwap ledger of two nodes (the score and the “debt”) as the basis for decision of communication? And also to use that the other way around, i.e.: to make my additional protocol routines able to alter the BitSwap ledger score and “debt” (on both nodes) upon the results of communication?
I guess, I have the following three options:
- to extend the current BitSwap decision strategy engine with appropriate methods to access and alter the
- to go a level higher and try to use a custom decision strategy engine (probably, the one based on the current implementation);
- to go even higher and implement a custom block exchange protocol that will be backward compatible with BitSwap.
In all cases I speak about the