Closed ldeffenb closed 1 year ago
I have a manifest reference that has been updated many times (more than 10) but the Number of Updates is showing as 1. When I run the following command, I get the output shown (yes, I run on non-standard ports).
swarm-cli feed print -i osmtiles --bee-debug-api-url http://192.168.10.20:11635 -T "OSM Map" --bee-api-url http://192.168.10.20:11633 --curl -v
Chunk Reference: 165c4f37e287b406ff6d1ff2e061802610433c86552d5af9a0c94cfd6c586b7c Chunk Reference URL: http://192.168.10.20:11633/bzz/165c4f37e287b406ff6d1ff2e061802610433c86552d5af9a0c94cfd6c586b7c/ Feed Index: 000000000000000a Next Index: 000000000000000b Feed Manifest: fdfd170f73953bc262d936d3a5329b787980335dc0547032bb2a6239ebe95a76 Topic: 053822aeb5f1e905019add41b51494de5c398ce18ac3def3b4c4d531b76cb068 Feed Manifest URL: http://192.168.10.20:11633/bzz/fdfd170f73953bc262d936d3a5329b787980335dc0547032bb2a6239ebe95a76/ Number of Updates: 1
Given the "Feed Index" of "a", I think the "Number of Updates" should be 10 or 11, not 1.
I suspect the fix will be to change the 10 (decimal) to 16 (hex) in the parseInt on the following line:
https://github.com/ethersphere/swarm-cli/blob/5357df0a33d359635ec8496a69ed09278218fc27/src/command/feed/print.ts#L56
I have a manifest reference that has been updated many times (more than 10) but the Number of Updates is showing as 1. When I run the following command, I get the output shown (yes, I run on non-standard ports).
swarm-cli feed print -i osmtiles --bee-debug-api-url http://192.168.10.20:11635 -T "OSM Map" --bee-api-url http://192.168.10.20:11633 --curl -v
Given the "Feed Index" of "a", I think the "Number of Updates" should be 10 or 11, not 1.
I suspect the fix will be to change the 10 (decimal) to 16 (hex) in the parseInt on the following line:
https://github.com/ethersphere/swarm-cli/blob/5357df0a33d359635ec8496a69ed09278218fc27/src/command/feed/print.ts#L56