ardriveapp / ardrive-cli

The ArDrive Command Line Interface (CLI) is a Node.js application for terminal-based ArDrive workflows. It also offers utility operations for securely interacting with Arweave wallets and inspecting various Arweave blockchain conditions.
GNU Affero General Public License v3.0
78 stars 14 forks source link

Ardrive CLI should honour Unix-Time for transactions in the same block #338

Open domob1812 opened 1 year ago

domob1812 commented 1 year ago

I have a public drive (drive ID 045e80ce-ab4f-449c-8548-86ce560e3a4d) which shows a difference when downloaded with the current CLI (version 1.22.0) and the old "sync" CLI. In particular, the file with ID 774e6e74-3d3a-4f48-95e4-ee53b9354e40 has a different name: presentation.pdf in the new CLI, and Talk.pdf in the old.

This file has two metadata transactions on the network: https://viewblock.io/arweave/tx/frZctZoAbr26-Y6LjZPIcokzBBspWigaKPf20PNplfg https://viewblock.io/arweave/tx/wLxCGqOBiFF_T2gtMEekR8ixVX0UObMS_YdueB0KnHQ

The first created it with name presentation.pdf, and the second renamed it to Talk.pdf. Both are confirmed in the same block, but the second has a later Unix-Time (I believe I uploaded the file in an old version of the web app and then immediately renamed it without waiting for a confirmation). Thus, I believe it should override the first one, and Talk.pdf should be the correct name (in any case that's the intent).

Note that the (current) web app handles this situation correctly, i.e. the name is also Talk.pdf on there.