open-horizon / exchange-api

Horizon Exchange REST API Server
Apache License 2.0
11 stars 30 forks source link

Add param to not set node heartbeat on /changes route #442

Open sf2ne opened 3 years ago

sf2ne commented 3 years ago

This was originally opened by @sf2ne because we decided we can't just update the node heartbeat for every API that node creds are used. In the case of this /changes API, it is necessary for it to look at the creds to decide whether it should be updating the HB for the node or agbot.

Maybe there are scaling reasons we want the agent to be able to set option noheartbeat=true on the /orgs/{orgid}/changes route?? (Today, it updates lastHeartbeat on every call to /orgs/{orgid}/changes.)

bmpotter commented 3 years ago

Moving to Icebox unless/until we find we really need this...