olisystems / BEST-Energy

Integritee off-chain worker and sidechain validateer
Apache License 2.0
2 stars 0 forks source link

[top-pool-author] enable direct calls if compiled in offchain-worker mode #13

Closed clangenb closed 1 year ago

clangenb commented 1 year ago

Upstream this is disable by default.

Until now, you have been using indirect invocation, aka your CLI send the request to the integritee-node and then it was forwarded to the worker. However, in this project we want to directly call the worker from the client, but it needs to disable the filter.

From now on, you can simply add --direct to the cli and the worker will immediately execute the trusted call, e.g.

/integritee-cli trusted --mrenclave CqLtrZvbCLMDHLecyjzTntNWDon8cbDcqySLpSK11aqS --direct pay-as-bid //Alice ./orders/order_10_users.json