CirclesUBI/pathfinder2-updater

Logs shows warning in a forever loop

JacqueGM opened this issue · 2 comments

I have the pathfinder helm chart running but when sending a query the return is empty

curl -i --location --request POST 'http://pathfinder.testing.circles.garden' \
  --header 'Content-Type: application/json' \
  --data-raw '{
      "id":"875634785", 
      "method": "compute_transfer", 
      "params": {
          "from": "0x3c89A829400Ea3B49F25738A1F4015A7961D0301",
          "to": "0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c",
          "value": "5532165488225508000000",
          "max_transfers": 30,
          "iterative": false
          }
      }'

Response

 {"jsonrpc":"2.0","id":"875634785","result":{"maxFlowValue":"0","final":true,"transferSteps":[]}}%

Which I think it might be because the updater keeps throwing this warning
Warning: Address 8ce0e3f2493b0a0e71a7da7dbdac1311fb8fc5c1 doesn't have an address index. it goes through all the addresses from 0x0xxx to 0x9xx again and again

Console.WriteLine($"Warning: Address {user} doesn't have an address index.");

Hi! The updater prepares the data in the format that the pathfinder will understand. It executes a few queries to get all the balances and trust relations and then packs it together into a binary file. The warning you're getting means that not all users that appear in the trust graph have been read. It's added to the dictionary in question here:

UserAddressIndexes.TryAdd(user, _idxCounter++);

and here:
UserAddressIndexes.TryAdd(user, _idxCounter);

Can you check if this query yields all the expected user accounts?

I only get 1176 entries... which actually might be quite a low number