Repository navigation
feat(router): background deposit, CLI side: top up the routing balance off the prompt #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vraspar
wants to merge
57
commits into
main
Choose a base branch
from
vraspar/router-background-topup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,542
−199
Open
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
8bdae7f
feat(router): read router answers tolerantly, and skip offers by `req…
vraspar 680c7bc
feat(router): read prices and call limits from spec fields, never fro…
vraspar cecf8bb
feat(router): one routing path on the paid route (tenjin#1026, CLI half)
vraspar b0c8684
feat(router): pay the quoted routing fee under a $0.003 ceiling (tenj…
vraspar ae854cd
fix(router): make the contract fixtures match what the server sends t…
vraspar 846a874
test(router): find the permissions doc's unpaid-call line by its new …
vraspar c413b51
docs(router): drop the free path from two doctor comments
vraspar c997a04
feat(router): send `tolerant` in accepts
vraspar 04b93ad
feat(install): name the routing fee ceiling in the spend question
vraspar aa3fd92
feat(router): pin the paid route's warm form and its answer
vraspar bfe5a0f
feat(router): top up the routing channel in the background; a prompt …
vraspar 8660b5d
docs(router): say deposits are set aside in the background, at most $…
vraspar e985905
docs(router): make these fixtures the only copy, and pin the tolerant…
vraspar 800dd19
fix(router): retry a wallet_low top-up every 2 minutes at most
vraspar fce1cc2
fix(router): give the open-Bazaar discovered fixtures the specs the s…
vraspar dcfde56
Merge remote-tracking branch 'origin/vraspar/router-tolerant-contract…
vraspar 25e5a9c
docs(router): correct stale comments and docs the #532 review found
vraspar 6379a09
fix(router): small correctness fixes from the #532 review
vraspar d7a3237
test(router): fix stale test names, a vacuous test and dead helpers f…
vraspar f0bfd23
fix(pay): a spec's timeoutS never shortens the paid leg
vraspar 6d80a47
fix(router): review fixes to the top-up's backoff, log lines and test…
vraspar 8e504eb
docs(router): make the top-up docs match the code (#533 review)
vraspar 4d3503e
fix(router): fail safe to native when a dropped offer is one the line…
vraspar 01d525a
fix(router): make the warm fixtures what the top-up sends (#533 review)
vraspar 9e39f51
fix(router): only a hook leg tells a background top-up's deposit (#53…
vraspar ffb7cc3
feat(doctor): check the paid route, and the fee it quotes
vraspar a4a9b1b
fix(router): a failed top-up's notice matches a normal call's (#533 r…
vraspar 1ffc67d
fix(router): say a top-up deposit that lands after its budget (#533 r…
vraspar 298f1f3
fix(router): tenjin mcp waits for a top-up in flight before it exits …
vraspar 23a8ad9
refactor(router): keep #532 to the tolerant contract; the fee and one…
vraspar ce572d6
feat(router): pay the quoted routing fee under a ceiling, on one rout…
vraspar a6fef25
feat(install): say in the spend question that the routing payment nam…
vraspar 30f4720
Merge origin/vraspar/router-quoted-fee into vraspar/router-background…
vraspar 2b7620b
chore(router): drop server-repo issue refs from the top-up's comments…
vraspar 08914bf
docs(router): make the fixtures README and README true today (#533 re…
vraspar 8314fc7
fix(router): tell a lasting skip once, clear the backoff on an answer…
vraspar 7a98523
fix(install): spend question back to its base length; the disclosure …
vraspar 21694e1
fix(router): the stale hook line hands the person no command
vraspar 3343ea8
docs(router): stale comments and fee wording from the switch to a quo…
vraspar 530695b
Merge origin/vraspar/router-quoted-fee into vraspar/router-background…
vraspar ee3eefb
fix(router): size from the router's $0.05 deposit hint
vraspar a301c3c
Merge origin/vraspar/router-quoted-fee: the router's $0.05 deposit hint
vraspar 56962e0
fix(router): doctor refuses a wallet below the deposit floor, as the …
vraspar 0e7284b
docs(changeset): the routing deposit note names the $0.05 hint
vraspar 518ce54
Merge remote-tracking branch 'origin/vraspar/router-quoted-fee' into …
vraspar 2a8eacc
docs(changeset): release notes match the background top-up at $0.05
vraspar 3cc1893
test(router): name the hint test for what it checks
vraspar 69d0d2c
Merge remote-tracking branch 'origin/vraspar/router-quoted-fee' into …
vraspar 33ae023
docs(router): a repeated wallet_low names no balance
vraspar dea55c6
Merge remote-tracking branch 'origin/main' into vraspar/router-quoted…
vraspar 9a6e1f7
refactor(router): base the quoted fee on main, without the tolerant c…
vraspar 8a7af5f
fix(router): size the deposit from the router's hint, never the $0.25…
vraspar 27a3ced
docs(router): production's deposit hint is $0.03 until the router's u…
vraspar 8b6efca
Merge main (tolerant contract, CLI side) into the fee PR
vraspar 9eac5ad
Merge the fee PR's final head into the background deposit CLI PR
vraspar e8e8a8b
Merge main into the background deposit CLI PR
vraspar 9c6cdc7
fix(router): wait out a detached top-up payment before tenjin mcp exits
vraspar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'tenjin-cli': patch | ||
| --- | ||
|
|
||
| A prompt never carries the routing deposit any more, so a deposit no longer costs a prompt its routing hint. `tenjin mcp` sets funds aside for routing in the background, with one `warm` call to the router that is charged nothing and carries the deposit: when it starts on a channel that cannot cover a fee (a new one included), and right after a paid call leaves the channel that low. A routing call that meets one in progress waits for it inside its own time limit, then pays from the channel. Each deposit is the smallest of the router's suggested amount ($0.05 today), the wallet balance and the per-call limit, never less than ten fees and never more than $0.25, so a big wallet no longer sets aside $0.25 at once. A wallet below ten fees is told once, and the balance is read only for the top-up; after a low wallet, the next top-up is tried within 2 minutes. A router without the `warm` form gets the deposit on the next paid call for an hour, as before, and that call reads the balance. When a session ends mid top-up, `tenjin mcp` waits up to 30 seconds for it to land before it exits. The install question now says funds are set aside at most $0.25 at a time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.