In this commit, we modify the `GetPrice` method and interface to accept
the full request instead of _just_ the path. For backwards compat, we
leave the path in place, but also include the full serialized HTTP
request.
In this commit, we add the http_request_text to the `GetPrice` RPC call.
This'll contain the fully serialized HTTP request, which'll permit the
back end to check things like the set of headers or request body, which
may be useful in more fine grained pricing functions.
One example is: when proxying requests to an LLM platform provider, the
backed may want to charge more based on the length of the
context/message and/or which model is being used.
From the docs:
PreferServerCipherSuites is a legacy field and has no effect.
It used to control whether the server would follow the client's or the
server's preference. Servers now select the best mutually supported
cipher suite based on logic that takes into account inferred client
hardware, server hardware, and security.
As of Go 1.16, functionality provided in io/ioutil has been depreciated
in favour of the io or os packages. Now that Go has been
upgraded in go.mod, the linter will not pass without these changes.
Update golangci-lint: v1.18.0 --> v1.50.1
Linter was updated to fix internal panic which was probably caused by
the Golang update.
The tools directory contains helper programs for managing the health of
the codebase. The directory is based on the equivalent directory found
in the taro codebase at commit 64e9dc9ccadb9269a1985ce2ff03cfc3a83d0470
The target version of the tor.OnionStore interface methods do not accept
onion type as an argument. Further, tor V2 was depreciated in October
2021. We can therefore remove support for tor V2.
The lnd dependency is upgraded to the version currently used by taro.
The motivation behind upgrading lnd is to upgrade lnd/tor to v1.1.0
unit tests: mock signer: add missing interface methods
unit tests: mock signer: add missing interface method arguments
unit tests: mock walletkit: add missing interface method arguments
unit tests: mock lightning client: add missing interface method arguments
unit tests: mock chain notifier: add missing interface method arguments
In this commit, we start a timer if a mailbox stream is completely
un-occupied (neither read or write stream is occupied). The timer
stopped if either of the streams are occupied and is reset if both
streams are unoccupied.