feat: id/depth nested bundles indexing#722
Conversation
65866a1 to
a2de08d
Compare
|
tests were working locally (the flow in the PR body), after rebasing, now it's failing on every ~arweave@2.9 client req, i didnt touch that module or adjascent ones. httpc returns 200, while gun+http2 returns 14> hb_http:get( <<"http://chain-1.arweave.xyz:1984">>, <<"/block/height/1864412">>, #{http_client => httpc} ).
{ok,#{<<"access-control-allow-origin">> => <<"*">>,
<<"body">> =>
<<"{\"replica_format\":1,\"packing_difficulty\":10,\"unpacked_chunk_hash\":\"RJqs9hV3UOv5Li4NmmPIpedOQ30FozUkaby21"...>>,
<<"content-length">> => <<"731845">>,
<<"date">> => <<"Tue, 03 Mar 2026 14:10:31 GMT">>,
<<"server">> => <<"Cowboy">>,<<"status">> => 200}}
15> hb_http:get( <<"http://chain-1.arweave.xyz:1984">>, <<"/block/height/1864412">>, #{http_client => gun, protocol => http2} ).
=== HB DEBUG ===[654119ms in <0.85.0> @ hb_http:108 / hb_http_client:39 / hb_http_client:196 / hb_http_client:856]==>
unknown_status_class: status_class: error: client_error
{error,client_error}
16> hb_http:get( <<"http://tip-1.arweave.xyz:1984">>, <<"/chunk/384493833199863">>, #{http_client => httpc} ).
{ok,#{<<"access-control-allow-origin">> => <<"*">>,
<<"body">> =>
<<"{\"data_path\":\"FvUnvHISqEj4LkcbNPDXSpuFBqEzTzhPK_z8sF4O_kUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8PA\",\"t"...>>,
<<"content-length">> => <<"65185">>,
<<"date">> => <<"Tue, 03 Mar 2026 14:11:00 GMT">>,
<<"server">> => <<"Cowboy">>,<<"status">> => 200}}
17> hb_http:get( <<"http://tip-1.arweave.xyz:1984">>, <<"/chunk/384493833199863">>, #{http_client => gun, protocol => http2} ).
=== HB DEBUG ===[27340ms in <0.85.0> @ hb_http:108 / hb_http_client:39 / hb_http_client:196 / hb_http_client:856]==>
unknown_status_class: status_class: error: client_error
{error,client_error} |
current
|
|
closing this PR as the work is continued here #734 |
about
id/depth flow:
~copycat@1.0/arweave&id=ID&depth=Ntx@1.0andans104@1.0itemsyou might see prometheus noise like
unknown_metric hb_store_arweave_requests_partition- the indexing works anyway, i tried disabling it manually locally in hb_store_arweave.erl (record_partition_metric/1), it works if disabledhow i tested it locally:
dataitem in nested bundle: https://viewblock.io/arweave/tx/81d_5S8oas728eoaIa30rKmg7xczZ68kjFFTgpfAdBI
bundle 1: https://viewblock.io/arweave/tx/hbi3lraO53m8i4bj2HGvrL7Ye0WD7bcVZ7uM4JqW5GU
bundle 2: https://viewblock.io/arweave/tx/SWFCDZeTOOVtbAvHF5t7vUev-TtEKWnh2t77ANUfwWc
response:
additionally i added bundle header guard (
invalid_bundle_header orelse HeaderSize > Size of) indownload_bundle_header/3