Revert "store: lower the minimum tip to 0.01 gwei (#8170)" (#8171)

This reverts commit 9631823b04.
This commit is contained in:
sh authored and GitHub committed 2026-11-13 14:15:53 +00:00
1 parent 9631823b04
commit 2a87d8dc2e
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1185,7 +1185,7 @@ reads, clears and logs its acceptance, as a community name's did:
the balance covers its limit × max fee, so each needs held about the last column. What it is
charged is gas used × the block's base fee plus tip, usually far less: at a base fee of 0.1 gwei, a
register with two links costs about 0.00065 ETH and its tip. The tip is the median of the last 10
blocks' median tips (`eth_feeHistory`), at least 0.01 gwei: reth's and geth's
blocks' median tips (`eth_feeHistory`), at least 0.05 gwei: reth's and geth's
`eth_maxPriorityFeePerGas` sample each block's cheapest transactions and answer near zero.
- An order is one commit, one acceptance relay and one register: 0.0108 ETH at the cap with two
links, 0.0036 ETH with none. The expected orders × 0.0108 ETH, plus 0.01 ETH per expected Save of
+1 -1
View File
@@ -99,7 +99,7 @@ How a request flows:
| Search handlers | Name status, price, terms, and records with link profiles; the terms text; the link preview. These handlers only read, except that a terms text fetched for the first time is stored. | [`Web/Names/Search.hs:53-154`](../src/StoreService/Web/Names/Search.hs#L53-L154), [`Names/Profiles.hs:236-274`](../src/StoreService/Names/Profiles.hs#L236-L274) |
| Poller | One loop. A pass is run every `waiting_seconds` (3) while a page holds an invoice poll, else every `idle_seconds` (60), and webhook read hints are served between passes. Invoices are settled, overdue ones expired 10 minutes past their window, late money credited, and unpaid orders deleted daily, 30 days after their invoice expired. | [`Poller.hs:62-76`](../src/StoreService/Poller.hs#L62-L76), [`Poller.hs:148-168`](../src/StoreService/Poller.hs#L148-L168), [`Poller.hs:559-598`](../src/StoreService/Poller.hs#L559-L598), [`Orders.hs:95-275`](../src/StoreService/Orders.hs#L95-L275), [`Names/LateCredits.hs:50-72`](../src/StoreService/Names/LateCredits.hs#L50-L72) |
| Names worker | A thread is started by a scan every 5 s for each order in `queued`, `committing`, `committed` or `registering`: commit, wait for the reveal, terms acceptance relay, register, and the outcome judged from chain state. A daily sweep releases the codes of code orders failed for 30 days. | [`Names/Worker.hs:115-401`](../src/StoreService/Names/Worker.hs#L115-L401), [`Names/Worker.hs:503-522`](../src/StoreService/Names/Worker.hs#L503-L522) |
| Sender | Signs with `[chain] service_key`, the only signer of that key. Per transaction: dry run, nonce, a tip of the last 10 blocks' median tip and at least 0.01 gwei, fees within `max_fee_per_gas` and within 0.01 ETH over the gas limit, EIP-1559 signature, a saved row, broadcast. Every 4 s: receipts followed to `confirmations` (default 3), an unknown transaction rebroadcast, and one unmined after 36 s replaced with higher fees when the market's fees have passed its own, within the same caps. | [`Names/Sender.hs:109-332`](../src/StoreService/Names/Sender.hs#L109-L332) |
| Sender | Signs with `[chain] service_key`, the only signer of that key. Per transaction: dry run, nonce, a tip of the last 10 blocks' median tip and at least 0.05 gwei, fees within `max_fee_per_gas` and within 0.01 ETH over the gas limit, EIP-1559 signature, a saved row, broadcast. Every 4 s: receipts followed to `confirmations` (default 3), an unknown transaction rebroadcast, and one unmined after 36 s replaced with higher fees when the market's fees have passed its own, within the same caps. | [`Names/Sender.hs:109-332`](../src/StoreService/Names/Sender.hs#L109-L332) |
| Record edits relay and lane | Owner-signed link edits, each relayed as one resolver transaction through the sender, within `record_edits_per_year` and 10 an hour per name. Pending edits are settled by the lane every 4 s. | [`Names/Records.hs:112-366`](../src/StoreService/Names/Records.hs#L112-L366), [`Web/Names/Records.hs:34-86`](../src/StoreService/Web/Names/Records.hs#L34-L86) |
| Contracts reader and chain client | One JSON-RPC client to `[chain] rpc_url`, 10 s per call, redirects refused. Typed `eth_call` reads; the name policy address, the registrar constants and the commitment ages kept once read; terms texts fetched once per hash and stored. | [`Names/Contracts.hs:147-411`](../src/StoreService/Names/Contracts.hs#L147-L411), [`Names/Chain.hs:112-305`](../src/StoreService/Names/Chain.hs#L112-L305) |
| In-memory coordination | Waiters: invoice status and payments. Phases: registration versions. Locks: one writer at a time per label hash, prepaid code and balance. Read hints: up to 256 webhook reads queued for the poller. | [`Waiters.hs:14-91`](../src/StoreService/Waiters.hs#L14-L91), [`Names/Phases.hs:15-65`](../src/StoreService/Names/Phases.hs#L15-L65), [`Names/Turns.hs:3-69`](../src/StoreService/Names/Turns.hs#L3-L69), [`Poller.hs:88-108`](../src/StoreService/Poller.hs#L88-L108) |
@@ -121,9 +121,9 @@ followInterval = 4000000
baseFeeHeadroom :: Integer
baseFeeHeadroom = 2
-- | 0.01 gwei, so quiet blocks whose median tip is near zero do not leave a transaction under every other.
-- | 0.05 gwei, so quiet blocks whose median tip is near zero do not leave a transaction under every other.
minTip :: Word64
minTip = 10_000_000
minTip = 50_000_000
-- | Nodes accept a replacement only with both fees at least 10% higher.
bumped :: Integer -> Integer