Replies: 2 comments 1 reply
-
Kupo assumes the presence of a local node (and thus, use of the local client protocols) mainly for two reasons:
|
Beta Was this translation helpful? Give feedback.
-
Hmm, are the blocks not validated by the node regardless of how you get them? Regarding connection method, I think both protocols can be run over both a local socket (a file) or over the network (TCP). Though am currently unsure on whether all node-to-client and node-to-node protocols are served over both methods. Anyway, I was just looking at Kupo's code base to see if it uses the block-fetch mini-protocol, use case being just getting a single block from the node. The downside with using chain-sync for that is that I would actually need to find the block before the one I want, and then do the query. And to find the block before, I either need to have a copy of all block headers (up to the block I want) or use some external source to find that info, both rather unergonomic. :( |
Beta Was this translation helpful? Give feedback.
-
It looks like fetch block is actually implemented through local chain-sync, I wonder whether the Block-Fetch mini-protocol in cardano-node did not work as expected, or does it not add any real value? I.e I guess if the Block-Fetch mini-protocol isn't inclusive in the first block in the range then it indeed doesn't add much.
Beta Was this translation helpful? Give feedback.
All reactions