Shekyl FoundationAutomated
11/8/2026, 12:08:59 PM
State of dev as of 29028fd26b29, 7 November 2026.
The previous post described the inherited C++ transaction pool being deleted. This short window dealt with what that left behind. The economic simulation now models the pool the node actually runs, and the wallet stopped timing its sends against the old pool. The work also exposed predictions that turned out wrong, and this post says which.
The wallet asks the node about a stuck send instead of guessing — LANDED
When a wallet sends a transaction, it keeps the spent inputs locked until it sees the transaction in a block. If that does not happen, the wallet has to decide when to act. It can offer the same bytes again, which reveals nothing new. It can raise an alarm for the user. Or, only if a person explicitly decides to, it can build a new transaction. That last step is never automatic. Someone who can delay a transaction should not be able to force the wallet to rebuild it over different inputs, because that would link the two.
The wallet used to decide when to act using a fixed waiting period derived from the old C++ pool, which kept transactions for most of a day. The Rust pool has no such lifetime. A transaction stays in it only while the recent block it was proved against is still recent enough to be accepted, and that window is measured in hours. So the wallet waited until long after the pool had dropped the transaction. By then, offering the same bytes again could only be refused. A first correction shortened the wait to a block count. Review then found that this compared a block count with the relay's privacy delay. A transaction is first passed privately from node to node before it is announced to the whole network, and that delay is measured on the node's clock, not in blocks. The two do not convert into each other.
The fix stops the wallet from estimating at all. On each new block, it asks the node what the node knows about the transaction. The node answers with one of six states:
- still held back by the privacy relay;
- held back for longer than the relay's own retry schedule allows;
- published to the network;
- in the pool but not tracked by the relay;
- absent;
- in a block.
Each state leads to one action. Held means wait. Held too long, or untracked, raises an alarm. Published but still not mined after the fee rules' look-back period also raises an alarm. Absent means the wallet offers the same bytes again. In a block means the wallet waits until shortly before those bytes would stop being accepted, then checks once more. The wallet no longer keeps any relay timing of its own: the node judges "too long" on its own clock. The wallet still counts a transaction as done only when it sees it in a block it has synced. A node's report about relaying is never enough on its own.
The economic simulation now runs the node's own pool — LANDED
Shekyl's economic simulation runs the chain forward for more than a century under different demand scenarios. Until this window, it modelled the pool as one queue of identical transactions. Each one paid whatever fee applied to the block it was offered to and was dropped after the old pool's three-day lifetime. The node has worked differently since the C++ pool was deleted. A transaction keeps the fee and weight it was built with. It leaves the pool when the block it was proved against falls out of the accepted window. The pool has a size limit and makes room by evicting entries that pay less per byte, cheapest first. Blocks are filled by fee per byte, oldest first among equals.
The simulation now does the same, by calling the pool's own policy code rather than copying it. That code used to depend on the node's database and networking, which a simulation should not need. It has been split so that the admission, ordering and eviction rules build on their own. The node's pool and the simulation now run exactly the same functions.
As this project does for any change to the simulation, the expected results were written down and committed before the code. There were eight predictions. Three missed outright and two held only in part, and the reason is the useful part. The predictions assumed the pool would behave first in, first out. But in the early era the fee falls slowly from block to block, so the oldest waiting transactions are the ones paying the most per byte, and they are served first. Each batch therefore waits almost the whole window before it is included. The pool fills to its size limit even in the baseline scenario, which the predictions had said would never happen. When the pool is full, new arrivals are turned away rather than pushing older transactions out. A backlog no longer survives to be served later, as it did under the three-day model. A further miss came from transaction weight. Transactions built earlier are slightly lighter than ones built later, which changes how blocks are packed, and an experiment confirmed this as the cause.
None of this changes the node, which already worked this way. What changed is that the economic analysis now describes it, and the plans that depend on that analysis will re-read their inputs from these results.
Filling the expensive part of a block in one step — LANDED
A block can grow beyond its recent median size, but the miner's reward then shrinks by a penalty that grows with the square of the excess. Including a transaction in that zone is only worth it if its fee covers the extra penalty it causes. The block-template builder decided this one transaction at a time, which is exact but scales with the number of candidates. In long-horizon simulations where blocks grow very large, that walk dominated the run time. One scenario took more than twenty minutes and did not finish.
The penalty is a single quadratic. So the point where fees stop covering it can be computed directly in exact integer arithmetic, and the rest of the zone can be settled by bisection instead of a walk. The result is required to match the walk exactly, not approximately. Parity tests compare the two across hundreds of thousands of cases, and they were run against a deliberately broken version to confirm that they catch an off-by-one. Every simulation output was byte-identical before and after the change. The node builds its own block templates with the same code.
As with the pool, the cost was predicted first. That prediction missed, though not on speed. The growth scenario still cannot run to the end of its horizon. The simulation stops it because the scenario's assumed fees eventually destroy more coins than were ever issued, and the scenario is already documented as unrealistic that far out. Up to that point, it now finishes in about the time the baseline takes. A second prediction, that the extra work beyond the computed point is not a small constant, held as stated. In practice, across every scenario, it never exceeded one transaction.
The Tor supervisor hears everything in the order it happened — LANDED
A node that manages its own Tor process runs a supervisor that watches many inputs: Tor's events, the process ending, bootstrap progress, the results of checking whether its own onion address can be reached, timeouts, and the dialer's and relay's view of connectivity. Each input used to arrive on a separate channel. The supervisor could see that something had changed, but not the order in which things happened.
It now waits on a single queue and a single doorbell. Events go into the queue in the order they occurred. State that only needs its latest value, such as connection counts or the relay's verdict, goes into a cell that is overwritten and rings the doorbell. Nothing that feeds the supervisor ever waits on it. A source that closes simply stops posting, so it cannot leave the loop spinning. Stopping the node closes the queue, and that is the only stop signal.
Order matters in a case found in review. A timeout carries no information except that a moment has passed. Suppose the node's reachability check came back in time, but the supervisor was busy with a slow request to Tor. The timeout could then be handled first, and the check would be marked as failed even though its answer was already waiting. The supervisor now handles everything that arrived before the timeout first. It still takes only what was already queued, so a stream of new events cannot hold a timeout back forever. A related change gives every clock in the process the same starting point, so two timestamps can always be compared. The type system now enforces this; it used to be a convention.
The idle cost was measured again on the minimum supported device under the new design: the supervisor's threads used about a hundredth of a percent of one core over five minutes. One visible change for operators: the node's report that it is syncing over Tor now comes from the connections it actually holds, so it no longer says it is waiting for Tor when it is not.
The last checks that only C++ held now live in Rust — LANDED
The node is now entirely Rust, but the repository still has an inherited C++ test tree. Before it can be deleted, every check it performs that has no Rust counterpart needs a new home. Otherwise deleting the tests would quietly delete the coverage. This window covered those checks:
- Hashing. The 321 Keccak vectors and 16 Merkle-tree vectors now run against the Rust code. Before, the consensus Merkle root had only been tested with zero, one and two transactions. Odd counts, where the tree pairs down unevenly, were not tested at all.
- Difficulty. The published reference implementation of the difficulty algorithm Shekyl derives from now runs as an independent oracle in Rust. It was transcribed from a pinned copy of the original publication, not from Shekyl's own code, and it checks its own source before running.
- Proof of work. The full-dataset parity check, which compares the mining library's output with the node's verifier, and the miner's known-answer test are now Rust programs.
- Parsing. New fuzz targets cover the parsers that read blocks and transactions from the network, which had not been fuzzed in Rust before. Because the encoding is canonical, each target also checks that anything that parses re-serializes to exactly the same bytes. Two encodings of one block would give it two hashes.
Deleting the C++ test tree itself is the next step and is IN FLIGHT. Separately, two inherited configuration values that the previous post described as kept for a Rust test lost their last reader this window and were removed. The working rule is now explicit: C++ that nothing reads is deleted, not kept for later.
Smaller changes for people running nodes — LANDED
- The wallet RPC server now serves JSON-RPC at
/json_rpc, the same path as the node. It used to serve at/. A script written for one server used to fail silently against the other, because both returned an empty 404 for a path they did not serve. Any unknown path now gets a JSON-RPC error that names the path requested and the correct one. There is no alias at/, so scripts that post to the wallet RPC's root need updating.shekyl-clialready uses the new path. - A stop the operator asked for, by signal, Ctrl-Break or the RPC's stop command, is now announced as a plain line. It used to be logged as a warning, which read like a fault on every service restart. A forced stop is still logged as an error.
- Three peer-to-peer log lines that reported faults during normal operation now say what is actually happening. When the dialer is idle, it names the reason it is not using the addresses it holds. A transaction that falls back from the private relay path logs why at debug level instead of as an error. And the warning about missing address-hiding connections now appears only where a transaction is actually held back for lack of one.
This post describes the state of the dev branch at 29028fd26b29 on 7 November 2026.
Shekyl is pre-genesis and under active design; anything marked IN FLIGHT may
change or be abandoned. Where a later post contradicts this one, the later post
is correct.
References: PR #1278 (DAEMON_SUBMIT_VERDICT §5.3), PR #1279 (ESR-17, CEN-M10), PR #1284 (EUP-4 prep 1), PR #1283 (TOR_SUPERVISOR §4.11, TSR-M15), PR #1281, PR #1302, PR #1292, PR #1285